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
--------------------------------------------------------------------------------
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]
try this 1 (http://www.plop.nl/ptokaxbots/Plop/word_replacer_1.1p.lua).
it has a dirty bypase for commands from other scripts, and only sends the procest data when something changed during the proces.
plop
Lol where was I when (reading) this thread ... sry for recommending crazybot .. it doesnt do what you need .. :)