PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: odyny on 02 July, 2004, 07:41:11

Title: i must help--- preciso d ajuda =/ -------
Post by: odyny on 02 July, 2004, 07:41:11
well......i advise......I DONT SPEAK ENGLISH VERY WELL =/
hehe....so.....im from brazil...i have make my hub....manga and animes hub......buttt....i having difficults with some scrpits......i need the !help comand..........with comands.....like ?rules.......?ops...........?team...........i think im doing stupid questions.....but i must help....so ......im here...asking for you....

bom...vo pedi a mesma coisa em portgues..quem sabe assim tenhu mais chances q alguem responda
eu so do brasil.....e to tendo algumas dificuldades com scriptts  ?( .....eu preciso....d alguns comandos basicos.....e os poucos coomandos q eu tenhu.....quando digito !help
eles nao aparecem =/.....bom.....tenhu certeza q sao pedidos meio idiotas :( .......masssssss.......eu nao arrumei esses scripts  X(  entaum.....to aki.....me d um suporte ae  :)) ....vlwwzzzzz
Title:
Post by: [NL]trucker on 02 July, 2004, 11:02:13
wich script your using m8?

if i understand you right you need/want help to adjust your help with some commands.

try this script.

make a dir docs in scriptfolder and put there the files.


-- Jason 0.7, by Phatty
-- Jason 0.1 wrote on 5th October 2k3
-- You can add ur own files
-- For example make a file named help.txt in the docs folder and then type in main !show help
-- ATM you cant make files with spaces like....Friday the 13th.txt <<< this will not work, but will add soon :)
-- Don't forget to make a folder named docs inside script folder
-- Added no such file error
-- Added who-to now, !show   =  example !show pmme test
-- There is pmme, me, or all
-- Added !lock
-- Added !version
-- Added self prefix
-- Fixed 1 line read only
-- Few little changed and tweaks

-- Show pmme, all, allpm, me

Bot = "J┼?ı??"
Version = "0.7"

mcmd="#"

Blacklist={}

function Main()
frmHub:RegBot(Bot)
end

function WhileRead(user,data)
while 1 do
line = read("*a")
if line == nil then
user:SendData(Bot,"I know of no such file")
break
end
if to == "me" then
user:SendData(Bot,line)
elseif to == "all" then
SendToAll(Bot,line)
elseif to == "all" then
SendPmToAll(Bot,line)
elseif to == "allpm" then
user:SendPM(Bot,line)
else
user:SendPM(Bot,line)
end
readfrom()
return 1
end
end

function LockOut(user)
if arg == "on" then
user:SendData(Bot,"You have blacklisted: "..to)
Blacklist[to]=1
buser = GetItemByName(to)
buser:SendPM(Bot,"You have been blacklisted")
return 1
elseif arg == "off" then
user:SendData(Bot,"You have removed "..to.." from the blacklist")
Blacklist[to]=nil
buser = GetItemByName(to)
buser:SendPM(Bot,"You have been removed from the blacklist")
return 1
end
end


function DataArrival(user,data)
if strsub(data, 1, 1) == "<" then
data=strsub(data,1,strlen(data)-1)
s,e,cmd,to,arg = strfind(data,"%b<>%s+(%S+)%s+(%S+)%s+(%S+)")

if cmd == mcmd.."show" then
if Blacklist[user.sName]==nil then
readfrom("docs/"..arg..".txt")
WhileRead(user,data)
return 1
else
user:SendData(Bot,"I am denying you access to this command")
return 1
end
elseif cmd == mcmd.."lock" and user.bOperator then
LockOut(user)
return 1
elseif cmd == mcmd.."version" then
s,e,cmd = strfind(data,"%b<>%s+(%S+)")
user:SendData(Bot,"I am Jason "..Version..", by Phatty")
return 1
end
end
end

Title:
Post by: Herodes on 02 July, 2004, 18:41:10
try looking at this thread ...  (http://board.univ-angers.fr/action.php?action=getlastboard&threadid=2024)
Title:
Post by: odyny on 03 July, 2004, 07:56:35
QuoteOriginally posted by [NL]trucker
wich script your using m8?

if i understand you right you need/want help to adjust your help with some commands.

try this script.

make a dir docs in scriptfolder and put there the files.


=[
when i do what you said......it happen
hummm              

Syntax Error: function arguments expected;
last token read: `=' at line 20 in string "code:----------------------------------------------------------..."

when i put your script this error apear......what is wrong? .....
Title:
Post by: odyny on 03 July, 2004, 08:04:01
QuoteOriginally posted by Herodes
try looking at this thread ...  (http://board.univ-angers.fr/action.php?action=getlastboard&threadid=2024)

when i load robocop scripts it appear:
Lua@    ?[????A

i dont know what about is it =\
well....i do what i have seen some days ago....i copy the profile .......but still happen it......i have installed again ptokaX but dont work too......dont exist another way to i fixed scripts like ?ops....?team.....and other comands into the  comando !help ?????
i have tryed channel bot 5.1.......5.2.......4.something how i dont remember...............but DONT WORK!!!!
i almost abandoned my hub......too hard =\

thanx the help....and sorry the english =]
Title:
Post by: Herodes on 03 July, 2004, 21:42:44
btw ChannelBot 5.2 has a translation in Brazilian ...

I am sure thats it not that hard since many ppl have managed to get it working ...
The readme helps a lot ... don't forget that it needs two files (.dll) to be placed in your  system folder ....

good luck  :D
Title:
Post by: ((UKSN))shad_dow on 03 July, 2004, 23:40:34
QuoteOriginally posted by odyny
 when i load robocop scripts it appear:
Lua@  ?[????A

i dont know what about is it =\



it means its compiled so u can edit it , any way robocop has a exe , run it nad look for the prifix setting and change it to ! , then click save ,  then  in main chat type  !restartscripts

robocop will restart and u should have !help etc

yours
shad