i have ptokax 0.3.3.0 build 17.03 but the profiles of robocop 10.01e don't run!
why?can u solve my problem?
thanks
ptokax rulez! :D
- IMPORTANT:
Install the provided Profiles.xml but before you do that you need to close your hub. Other it will not work.
1.) You can find the Robocop Profiles.xml file in folder script/profiles/PtokaX 16.07 or higher.
2.) Put the Robocop Profiles.xml file in folder ptokaxprogramfolder/cfg/
3.) your done, start up your hub
-----------------------------------------------------------------------------------------------------------------------
If you are still having problems running robocop.exe then download microsoft frameworks 1.1 SP1.
Install the version in the language your windows is
http://www.microsoft.com/downloads/details.aspx?FamilyID=262d25e3-f589-4842-8157-034d1e7cf3a3&displaylang=en
thanks i haven't put the profile in the folder cfg but only in the ptokax folder as with the old ptokax!
an other question...this new ptokax is lighter than the build 15.18 ?
QuoteOriginally posted by -Slash-
thanks i haven't put the profile in the folder cfg but only in the ptokax folder as with the old ptokax!
an other question...this new ptokax is lighter than the build 15.18 ?
With a 256k in upload you stand 100 users in more without problems ... c ya
i've modded some scripts lua4 to lua5 and they yesterday ran without robocop...instead when i load robocop some of these script don't run...
why?
thanks
QuoteOriginally posted by -Slash-
i've modded some scripts lua4 to lua5 and they yesterday ran without robocop...instead when i load robocop some of these script don't run...
why?
thanks
What are this scripts?
scripts like chat history or in&out phrase sender
i converted it looking that
|
|
|
V
;User conversion definition file for PSPad editor
[Description]
;name for Left to Right conversion
ForwardName=LUA 4 to 5
;name for Right to Left conversion
BackwardName=LUA 5 to 4
;ignore char case
ForwardIgnoreCase=0
BackWardIgnoreCase=0
;CharTab=0 - convertor will use string replacement from [Conversion] section
;CharTab=1 - convertor will use conversion table from
section
CharTab=0
;expresion from|expresion to
[Conversion]
;functions
DataArrival|ChatArrival
;stringstuff
strfind|string.find
strsub|string.sub
gsub|string.gsub
strchar|string.char
strbyte|string.byte
strlen|string.len
strlower|string.lower
strrep|string.rep
strupper|string.upper
format|string.format
;tablestuff
tinsert|table.insert
tremove|table.remove
concat|table.concat
foreach|table.foreach
foreachi|table.foreachi
getn|table.getn
sort|table.sort
setn|table.setn
;mathstuff
abs|math.abs
acos|math.acos
asin|math.asin
atan|math.atan
atan2|math.atan2
ceil|math.ceil
cos|math.cos
deg|math.deg
exp|math.exp
floor|math.floor
log|math.log
log10|math.log10
max|math.max
min|math.min
mod|math.mod
pow|math.pow
rad|math.rad
sin|math.sin
sqrt|math.sqrt
tan|math.tan
frexp|math.frexp
ldexp|math.ldexp
random|math.random
randomseed|math.randomseed
pi|math.pi
;osstuff
date|os.date
execute|os.execute
clock|os.clock
remove|os.remove
HI -Slash-
welcome
SlasH
HeHE
noooooo
an other slash!!!!
oh my god!!!
here it'is too small for 2 slash!!!
muahahah
'm joking :P
NICE TO MEET 'U!!!
marylin could u look what don't work at this script please?
PS:i'm italian,arent' u?
-- Script by LadyToastKill and nightblade
--nome bot tra doppi apici
BotName="•Ricordi...•"
--aggiornare il valore qui sotto mettendo il numero di mess presenti nel file memories.txt + n
memoriesline=13
-- tempo che deve trascorrere tra un mess e l'altro in minuti
TimeSpanInMinutes = 1
--comandi
Command1="!parla"
Command2="!zitto"
trigall=1
function Main()
SetTimer(TimeSpanInMinutes*60000)
StartTimer()
end
function GetCommand(message)
s,e,command=string.find(message,"(%S+)")
return command
end
function GetOneParam(message)
s,e,param1=string.find(message,"%S+%s(.*)")
return param1
end
function ChatArrival(curUser, data)
if( string.sub(data, 1, 1) == "<" ) then
status=string.sub(data,1,string.len(data)-1)
a,b,cmd = string.find( status, "%b<>%s+(%S+)" )
if cmd==Command1 and curUser.bOperator then
curUser:SendData(BotName,"Io parlo quanto mi pare e piace capito???")
trigall=1
StartTimer()
return 1
elseif cmd==Command2 and curUser.bOperator then
curUser:SendData(BotName, "Muto sono, capisti?")
trigall=0
StopTimer()
return 1
elseif cmd=="!memories" and trigall==1 and curUser.bOperator then
countline=1
numberline=math.math.random(1,memoriesline)
readfrom("memories.txt")
while 1 do
line = read()
if line == nil then
break
end
if countline==numberline then
SendToAll(BotName,line)
break
end
countline=countline+1
end
readfrom()
end
data=string.sub(data,1,string.len(data)-1)
s,e,message = string.find( data, "%b<>%s+(.*)")
command=GetCommand(message)
if command=="!addmemories" and curUser.bOperator then
text=GetOneParam(message)
if text~=nil then
local file=openfile("memories.txt","a")
write(file,text.."\n")
closefile(file)
SendToAll(BotName,"Aggiunta nuova memories... Chi sar? il fortunato???")
curUser:SendPM(BotName,"Memories aggionato..")
return 1
else
curUser:SendPM(BotName,"Hai cannato qualcosa la sintassi corretta : !addmemories frase")
end
end
end
end
function OnTimer()
if trigall==1 then
countline=1
numberline=math.math.random(1,memoriesline)
readfrom("memories.txt")
while 1 do
line = read()
if line == nil then
break
end
if countline==numberline then
SendToAll(BotName,line)
break
end
countline=countline+1
end
readfrom()
end
end
I'm Italian DUDE ;)
-- Script by LadyToastKill and nightblade
-- nome bot tra dopmath.pi apici
-- Fixed bug with addmemories and loadfile by 6Marilyn6Manson6
BotName="[ITA]MeMories"
--aggiornare il valore qui sotto mettendo il numero di mess presenti nel file memories.txt + n
memoriesline=13
-- tempo che deve trascorrere tra un mess e l'altro in minuti
TimeSpanInMinutes = 1
--comandi
Command1="!parla"
Command2="!zitto"
trigall=1
function Main()
frmHub:RegBot(BotName)
SetTimer(TimeSpanInMinutes*60000)
StartTimer()
end
function GetCommand(message)
s,e,command=string.find(message,"(%S+)")
return command
end
function GetOneParam(message)
s,e,param1=string.find(message,"%S+%s(.*)")
return param1
end
function ChatArrival(curUser, data)
if( string.sub(data, 1, 1) == "<" ) then
status=string.sub(data,1,string.len(data)-1)
a,b,cmd = string.find( status, "%b<>%s+(%S+)" )
if cmd==Command1 and curUser.bOperator then
curUser:SendData(BotName,"Io parlo quanto mi pare e piace capito???")
trigall=1
StartTimer()
return 1
elseif cmd==Command2 and curUser.bOperator then
curUser:SendData(BotName, "Muto sono, capisti?")
trigall=0
StopTimer()
return 1
elseif cmd=="!memories" and trigall==1 and curUser.bOperator then
countline=1
numberline=math.random(1,memoriesline)
readfrom("memories.txt")
while 1 do
if line == nil then
break
end
if countline==numberline then
SendToAll(BotName,line)
break
end
countline=countline+1
end
readfrom()
end
data=string.sub(data,1,string.len(data)-1)
s,e,message = string.find( data, "%b<>%s+(.*)")
command=GetCommand(message)
if command=="!addmemories" and curUser.bOperator then
text=GetOneParam(message)
if text~=nil then
local file=io.open("memories.txt","a")
file:write(text.."\n")
file:close()
SendToAll(BotName,"Aggiunta nuova memories... Chi sar? il fortunato???")
curUser:SendPM(BotName,"Memories aggionato..")
return 1
else
curUser:SendPM(BotName,"Hai cannato qualcosa la sintassi corretta : !addmemories frase")
end
end
end
end
function OnTimer()
if trigall==1 then
countline=1
numberline=math.random(1,memoriesline)
local handle = io.open("memories.txt","r")
while 1 do
if line == nil then
break
end
if countline==numberline then
SendToAll(BotName,line)
break
end
countline=countline+1
end
handle:close()
end
end
try this... post error c ya
mmmm
there's a problem with the readfrom
memories.lua:103: attempt to call global `readfrom' (a nil value)
QuoteOriginally posted by -Slash-
mmmm
there's a problem with the readfrom
memories.lua:103: attempt to call global `readfrom' (a nil value)
Script have 101 lines ^^
yes but.... (il mio script ? fatto un rigo si e uno no...nun te lo so scrive in inglese :P) i will delete the unnecessary spaces and tell u what is the line :D
QuoteOriginally posted by -Slash-
yes but.... (il mio script ? fatto un rigo si e uno no...nun te lo so scrive in inglese :P) i will delete the unnecessary spaces and tell u what is the line :D
Post your script of 103 lines or plus ;)
ther's one error becaure is repeated 3 times the world math. ---> math.math.math.random(1,memoriesline)
it is my LONG script ;)
-- Script by LadyToastKill and nightblade
-- nome bot tra dopmath.pi apici
-- Fixed bug with addmemories and loadfile by 6Marilyn6Manson6
BotName="[ITA]MeMories"
--aggiornare il valore qui sotto mettendo il numero di mess presenti nel file memories.txt + n
memoriesline=13
-- tempo che deve trascorrere tra un mess e l'altro in minuti
TimeSpanInMinutes = 1
--comandi
Command1="!parla"
Command2="!zitto"
trigall=1
function Main()
frmHub:RegBot(BotName)
SetTimer(TimeSpanInMinutes*60000)
StartTimer()
end
function GetCommand(message)
s,e,command=string.find(message,"(%S+)")
return command
end
function GetOneParam(message)
s,e,param1=string.find(message,"%S+%s(.*)")
return param1
end
function ChatArrival(curUser, data)
if( string.sub(data, 1, 1) == "<" ) then
status=string.sub(data,1,string.len(data)-1)
a,b,cmd = string.find( status, "%b<>%s+(%S+)" )
if cmd==Command1 and curUser.bOperator then
curUser:SendData(BotName,"Io parlo quanto mi pare e piace capito???")
trigall=1
StartTimer()
return 1
elseif cmd==Command2 and curUser.bOperator then
curUser:SendData(BotName, "Muto sono, capisti?")
trigall=0
StopTimer()
return 1
elseif cmd=="!memories" and trigall==1 and curUser.bOperator then
countline=1
numberline=math.random(1,memoriesline)
readfrom("memories.txt")
while 1 do
if line == nil then
break
end
if countline==numberline then
SendToAll(BotName,line)
break
end
countline=countline+1
end
readfrom()
end
data=string.sub(data,1,string.len(data)-1)
s,e,message = string.find( data, "%b<>%s+(.*)")
command=GetCommand(message)
if command=="!addmemories" and curUser.bOperator then
text=GetOneParam(message)
if text~=nil then
local file=io.open("memories.txt","a")
file:write(text.."\n")
file:close()
SendToAll(BotName,"Aggiunta nuova memories... Chi sar? il fortunato???")
curUser:SendPM(BotName,"Memories aggionato..")
return 1
else
curUser:SendPM(BotName,"Hai cannato qualcosa la sintassi corretta : !addmemories frase")
end
end
end
end
function OnTimer()
if trigall==1 then
countline=1
numberline=math.random(1,memoriesline)
local handle = io.open("memories.txt","r")
while 1 do
if line == nil then
break
end
if countline==numberline then
SendToAll(BotName,line)
break
end
countline=countline+1
end
handle:close()
end
end
OPs sorry for error
dont' worry
but there is the error to line 103 "readfrom" i can't individualize it...
QuoteOriginally posted by -Slash-
dont' worry
but there is the error to line 103 "readfrom" i can't individualize it...
Use [ CODE] and [ /CODE] without space and post your script with error
i've posted before
QuoteOriginally posted by -Slash-
i've posted before
Use code... in this mode .... don't find line 103 ;)
ptokax tell that the error is ------>> readfrom("memories.txt")
it seems impossible...memories.txt already exist!
mmmm
but the "readfrom" from lua4 to lua5 is the same or it needs to be written in a diffrent way?
like gsub--->string.gsub