Greetings Scripters
I have this trigguie and i wanted to make it more human..
Here in this script the trigs are only in one word, i wanted if it's possible to the trigguie answer to some phrases..
First see the script then see want i want please:
botname = "master"
arrWord = {
"hub","no-ip",".com","www.","http:",
}
trigall=1
trigs = {
["ferias"]={
"Vais de f?rias [USER]???",
"F?rias....por favor n?o escrevam essa palavra na minha presen?a...",
"Bem [USER]...N?o me podes levar contigo?? ;)",
"..ent?o aproveita bem essas f?rias..!"
},
["f?rias"]={
"Vais de f?rias [USER]???",
"F?rias....por favor n?o escrevam essa palavra na minha presen?a...",
"Bem [USER]...N?o me podes levar contigo?? ;)",
"..ent?o aproveita bem essas f?rias..!"
},
["boa noite"]={
"Boa noite [user].",
"Boas noites [user]",
"Ol? [USER].Sejas bem aparecido...",
"..com este calor?!?!?"
},
["boas noites"]={
"Boa noite [USER].",
"Boas noites [USER]"
},
["boa tarde"]={
"Boa tarde [USER].",
"Boas tardes [USER]"
},
["boas tardes"]={
"Boa tarde [USER].",
"Boas tardes [USER]"
},
["bom dia"]={
"Bom dia [USER].",
"Bons dias [USER].",
"???? [USER] est?s bem???Se fosse bom dia estaria na minha caminha..."
},
["bons dias"]={
"Bom dia [USER].",
"Bons dias [USER].",
"???? [USER] est?s bem???Se fosse bom dia estaria na minha caminha..."
},
["ip permitido"]={
"[USER], se estivesses com aten??o ? msg de entrada saberias que estamos em testes.",
"USER], andas com a cabe?a no ar n?o ??!?"
},
permitido={
"[USER], se estivesses com aten??o ? msg de entrada saberias que estamos em testes.",
"[USER], andas com a cabe?a no ar n?o ??!?"
},
master={
"Que queres [USER], deixa-me estar aqui sossegadito",
"Esse gajo n?o est? c?...sa?u faz 10 min. ;)",
"Bem [USER]...daqui a pouco n?o tenho nome...diz l?",
"Aqui estou...diz coisas"
},
buu={
"Que susto [USER], olha o meu cora??ozito...",
"lol....queres ver que me assustaste!!!lol",
"Bem [USER]...secalhar pensas que n?o dou por tu entrares!?!?!?",
},
[" ola"]={
"[USER], que cumprimento rafeiro ? esse??",
"...e l? vem outro com o ol?...",
},
[" ol?"]={
"[USER], que cumprimento rafeiro ? esse??",
"...e l? vem outro com o ol?...",
},
["jantar do friends"]={
"[USER], essa conversa ? de longa data!!!",
"...pois..n?o se mostrem interessados que ser? organizado!!!?!?!?",
},
[":)"]={
"[USER], est?s a concorrer para as estatisticas???",
"hehehehe...bonecos...tb sei fazer!! ('.')",
},
[";)"]={
"[USER], est?s a concorrer para as estatisticas???",
"hehehehe...bonecos...tb sei fazer!! O_o",
},
["porque me kikaram"]={
"[USER]...supostamente tinhas l? o motivo...",
"De certo fizeste algo que n?o devias [USER].",
"[USER] est?s bom da cabe?a???",
"Decis?es de OP's e das bot's n?o se contestam!!!"
},
["do meu kick"]={
"[USER]...supostamente tinhas l? o motivo...",
"De certo fizeste algo que n?o devias [USER].",
"[USER] est?s bom da cabe?a???",
"Decis?es de OP's e das bot's n?o se contestam!!!"
},
["porque fui kikado"]={
"[USER]...supostamente tinhas l? o motivo...",
"De certo fizeste algo que n?o devias [USER].",
"[USER] est?s bom da cabe?a???",
"Decis?es de OP's e das bot's n?o se contestam!!!"
},
convencido={
"hehehehe, [USER]...convencido ou n?o, o que importa ? que te d? um bailarico que s? lendo...",
"Convencido era ? dois anos..agora diz-se Realista! ;)",
"...e pronto...l? est?o eles de novo..."
}
}
function Main()
--frmHub:RegBot(botname)
end
function DataArrival(user, data)
status=strsub(data,1,strlen(data)-1)
-- parse the command
s,e,cmd = strfind( status, "%b<>%s+(%S+)" )
if (cmd=="!calado") then
trigall=0
SendToAll(botname, " ...s? estava a manter o Friends mais vivinho :(( ")
return 1
elseif (cmd=="!fala") then
trigall=1
SendToAll(botname, " Pois...agora j? me chamas..")
return 1
end
if( strsub(data, 1, 1) == "<" ) then
-- get the msg only using regular expression
s,e,msg = strfind(data, "%b<>([%a ]+)")
-- look in the table
if trigall==1 then
for key, value in trigs do
for key2, value2 in value do
if( strfind( strlower(msg), key) ) then
else break
end
if( strfind( strlower(msg), "!me") ) then
t="**"..user.sName
data=gsub (msg, "!me", t, 1 )
end
if (strsub(data,1,1) == "<" and not user.bOperator) then
data = strsub(data,1,strlen(data)-1)
for i=1, getn(arrWord) do
if (strfind(data, arrWord)) then
local s,e,talk = strfind(data, "%b<>%s+(.+)")
SendPmToOps(sBot, "<"..user.sName.."> ("..user.sIP..") disse no Main: "..talk)
return 0
end
end
end
if (strsub(data,1,5) == "$To: " and not user.bOperator) then
data = strsub(data,1,strlen(data)-1)
for i=1, getn(arrWord) do
if (strfind(data, arrWord)) then
local s,e,to = strfind(data, "$To:%s+(%S+)")
local s,e,talk = strfind(data, "%b<>%s+(.+)")
SendPmToOps(sBot, "<"..user.sName.."> ("..user.sIP..") disse em PVT ao User "..to.." o seguinte: "..talk)
return 0
end
end
end
SendToAll( data ) -- send the original data
SetTimer(1800)
StartTimer()
answer, x = gsub(value[random(1,getn(value))], "%b[]", user.sName)
return 1; -- tell the hub we have processed the data
end
end
end
end
function OnTimer()
SendToAll( botname, answer ) -- send bot's answer
StopTimer()
end
end
Now, this script have three comands:
!calado witch i've changed from !quiet
!fala witch i've changed from !talk
!me
Can you guys do something about this??
I wanted for example, the trigguie answers to some phrases, like:
!shows the place around
- Witch it could make an answer in pvt showing something
!Reveal the Friends Hub
- Witch it could make an answer im main chat revealing something
I know that exists a script to this but i want it in my trigguie script, not only in word cmd but also in phraese cmd...
Can you do this??
If you don't understand, please ask for more tips, and i'll try to explain it more..
Thanks
monnie
Greetings
I was trying here something..but..can't do it..
Help me ..
To this trigguie i want to join one kick after x number of fired trigs,
I want this:
Set up a number of fired trigs;
Then if not user.operator then one point up..so the variable goes up one point..and when it reachs a x number defined by me disconnects the user.
Also need the disconnect msg..
Thanks
monnie
Greetings
I know this is must people hollidays, but does anyone can help me out???
Thanks
monnie