hi , im very lost wen it comes to scripts i was using this one b4 i moved over to new ptokak just wanted to know if anyone could convert it to work with the new software.....
botname="Hang"
function DataArrival(user, data)
data=strsub(data,1,strlen(data)-1)
s,e,cmd,arg = strfind(data,"%b<>%s+(%S+)%s+(%S+)")
if (cmd=="!hang") then
if not (arg==nil) then
local tmp = GetItemByName(arg)
if (tmp==nil) then
SendToAll(botname,""..user.sName.." tries to hang "..arg..", but he/she smacks them in the head!")
end
if not (tmp==nil) then
SendToAll(botname, ""..user.sName.." throw's a rope round "..arg.." neck, and hangs them from the hub rafters!!:)")
end
return 1
end
end
end
would be very gratefull if someone can help
thanxs
:P
QuoteOriginally posted by k3?M?T?
hi , im very lost wen it comes to scripts i was using this one b4 i moved over to new ptokak just wanted to know if anyone could convert it to work with the new software.....
:P
Try this =
botname="Hang"
function ChatArrival(user, data)
data=string.sub(data,1,string.len(data)-1)
s,e,cmd,arg = string.find(data,"%b<>%s+(%S+)%s+(%S+)")
if (cmd=="!hang") then
if not (arg==nil) then
local tmp = GetItemByName(arg)
if (tmp==nil) then
SendToAll(botname,""..user.sName.." tries to hang "..arg..", but he/she smacks them in the head!")
end
if not (tmp==nil) then
SendToAll(botname, ""..user.sName.." throw's a rope round "..arg.." neck, and hangs them from the hub rafters!!:)")
end
return 1
end
end
end
ta bud ill ave a try get back to you :P
thats sorted it bud thanx greatly appreiated