word replacer script problem
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

word replacer script problem

Started by owen, 02 November, 2004, 16:09:31

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

owen

Dis script blocks the others currently running scripts,both Robocop and other scripts do not work.In case the script is turned out otherwise everything runs properly.Cas somebody please give an advice where d foult is? thnx.
code:--------------------------------------------------------------------------------
--//NaughtyASs Cook Bot v1.06 fixed by Phatty
--//Does things with words lol :p

Bot = "!crazy"
function Main()
   frmHub:RegBot(Bot)
end
 
badtable = {

["twat"]="bread",
["cunt"]="dish washer",
["bastard"]="cook-book",
["fucker"]="chief",
["fucking"]="cooking",
["fuck"]="cook",
["arsehole"]="microwave",
["arse"]="microchip",
["clit"]="tomato",
["cock"]="banana",
["tosser"]="baker",
["bitch"]="teaspoon",
["shit"]="mcdonald's manager",
["crap"]="chocolate",
["pissed"]="diluted",
["piss"]="orange juice",
["shagging"]="boiling",
["shag"]="sauce",
["cum"]="water",
["spunk"]="juice",
["asshole"]="fridge-freezer",
["ass"]="oven",
["slut"]="grape-fruit",
["dick"]="sausage",
["fanny"]="pie",
["whore"]="hotdog",
["wanker"]="i'm a wanker",
["slag"]="i'm a slag",

}

function DataArrival(user,data)
   if strsub(data, 1, 1) == "<" then
   for i,v in badtable do
         data=gsub(data, i, v)
      --data, x,y = gsub(data, "%b"..i, v)
      end
   SendToAll(data)
   return 1
   end
end
--------------------------------------------------------------------------------

Herodes

#1
the scripts in Ptokax run in alphabetical order ...
rename the script so that it runs after the Robocop script ..

also there is a better version of this bot ...

CrazyBot by plop. ..[http://www.plop.nl/ptokaxbots/Plop.php]grab it here[/url]

plop

try this 1.
it has a dirty bypase for commands from other scripts, and only sends the procest data when something changed during the proces.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Herodes

Lol where was I when (reading) this thread ... sry for recommending crazybot .. it doesnt do what you need ..  :)

SMF spam blocked by CleanTalk