PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: -PT-B2S on 07 April, 2005, 01:22:32

Title: RIGHT CLICK script
Post by: -PT-B2S on 07 April, 2005, 01:22:32
i wanna know if there is any script of right click that i can put my own commands. i saw there is one to robocop and another to trivia, but i want one that i can configure. i've tried to edit the other ones i saw, but unsuccessfuly. It mus be in LUA 5 !!! thnks :)
Title:
Post by: Tw?sT?d-d?v on 07 April, 2005, 07:38:44
QuoteOriginally posted by -PT-B2S
i wanna know if there is any script of right click that i can put my own commands. i saw there is one to robocop and another to trivia, but i want one that i can configure. i've tried to edit the other ones i saw, but unsuccessfuly. It mus be in LUA 5 !!! thnks :)


What commands are you trying to  add??
Title:
Post by: -PT-B2S on 07 April, 2005, 14:44:42
What commands are you trying to  add??
[/QUOTE]

i wanna add ptokax commands and some few more commands, from other bots, like a trigger
i only want the complete script with just one exeple of command line. the rest i will do. thnks :)
Title:
Post by: jiten on 07 April, 2005, 14:55:34
Check this (http://board.univ-angers.fr/thread.php?threadid=3668&boardid=26&sid=512cc09a6ec5fd8c1df7b7c56af53980).
Title: RIGHT CLICK script
Post by: -PT-B2S on 07 April, 2005, 15:13:21
i'm gonna try that one :) thmks :D

any more?
Title:
Post by: Tw?sT?d-d?v on 07 April, 2005, 18:36:21
inbuild commands are allready in robocop ,but here's my game commands

customCMDs = function(user) --// You can put your custome commands here
user:SendData("$UserCommand 1 3 "..xMenu.."\\JUMBLE\\START ANAGRAMS$<%[mynick]> a.start|")
user:SendData("$UserCommand 1 3 "..xMenu.."\\JUMBLE\\STOP ANAGRAMS$<%[mynick]> a.stop|")
user:SendData("$UserCommand 1 3 "..xMenu.."\\JUMBLE\\DISPLAY PHRASE$<%[mynick]> a.phrase|")
user:SendData("$UserCommand 1 3 "..xMenu.."\\JUMBLE\\ANAGRAMS SCORES$<%[mynick]> a.scores|")
        user:SendData("$UserCommand 1 3 "..xMenu.."\\TRIVIA GAME\\START GAME$<%[mynick]> !triviamain||")
        user:SendData("$UserCommand 1 3 "..xMenu.."\\TRIVIA GAME\\STOP GAME$<%[mynick]> !trivstop||")
        user:SendData("$UserCommand 1 3 "..xMenu.."\\TRIVIA GAME\\SKIP$<%[mynick]> !trivskip||")
        user:SendData("$UserCommand 1 3 "..xMenu.."\\TRIVIA GAME\\GAME HINT$<%[mynick]> !trivhint||")
        user:SendData("$UserCommand 1 3 "..xMenu.."\\TRIVIA GAME\\GAME HELP$<%[mynick]> !trivhelp||")
        user:SendData("$UserCommand 1 3 "..xMenu.."\\TRIVIA GAME\\RESET SCORES$<%[mynick]> +trivscorereset||")
        user:SendData("$UserCommand 1 3 "..xMenu.."\\TRIVIA GAME\\TOP 100 SCORES$<%[mynick]> !trivscore||")
        user:SendData("$UserCommand 1 3 "..xMenu.."\\TRIVIA GAME\\TOP 10 PLAYER STATS$<%[mynick]> !trivstats||")
        user:SendData("$UserCommand 1 3 "..xMenu.."\\TRIVIA GAME\\YOUR OWN SCORE$<%[mynick]> !trivmyscore||")
user:SendData("$UserCommand 1 3 "..yMenu.."\\HUB CONFIG$<%[mynick]> !hconfig|")
        user:SendData("$UserCommand 1 3 "..yMenu.."\\HUB STATS$<%[mynick]> !hstat|")
        user:SendData("$UserCommand 1 3 "..xMenu.."\\NUMBERS GAME\\START GAME$<%[mynick]> !numstart||")
        user:SendData("$UserCommand 1 3 "..xMenu.."\\NUMBERS GAME\\STOP GAME$<%[mynick]> !numstop||")
        user:SendData("$UserCommand 1 3 "..xMenu.."\\NUMBERS GAME\\GAME HELP$<%[mynick]> !numhelp||")
        user:SendData("$UserCommand 1 3 "..xMenu.."\\NUMBERS GAME\\RESET SCORES$<%[mynick]> !numbersscorereset||")
        user:SendData("$UserCommand 1 3 "..xMenu.."\\NUMBERS GAME\\TOP 100 SCORES$<%[mynick]> !numscore||")
        user:SendData("$UserCommand 1 3 "..xMenu.."\\NUMBERS GAME\\TOP 10 PLAYER STATS$<%[mynick]> !numstats||")
        user:SendData("$UserCommand 1 3 "..xMenu.."\\NUMBERS GAME\\YOUR OWN SCORE$<%[mynick]> !nummyscore||")
       

end
Title:
Post by: -PT-B2S on 08 April, 2005, 00:49:49
i dont want a robocop right click. i want a right click to put my own commands :S does somebody knows one?
Title: ?
Post by: -PT-B2S on 11 April, 2005, 17:30:29
nobody?
Title:
Post by: Dessamator on 11 April, 2005, 17:39:59
the reason noone answers u, is because there must b at least 10 scripts that do that, if you search the forum, im sure ull find it!!
Title:
Post by: ConejoDelMal on 11 April, 2005, 21:03:44
well, i've been searching and trying to use some that i found, and i also couldnt adapt it to my needs... i think i'm searching more or less the same as him.. a right click script with commands according to the profile, and with no other options.. a really simple right click script.

So please, if you know one, point us to it.... i really cant find it  :(
Title:
Post by: Cêñoßy†ê on 11 April, 2005, 21:37:13
Something like this?
BotName = "MyBot"
xMenu = "MyBot_Rightclick"

function NewUserConnected(user,data)
user:SendData("\t\t"..BotName.." menu enabled, right click hub tab for commands.")
UserCmds(user)
if user.bOperator then
OpCmds(user)
end
end

OpConnected = NewUserConnected

function UserCmds(user)             -- Commands for all users
user:SendData("$UserCommand 1 3 "..xMenu.."\\Sample$<%[mynick]> !command|")
end

function OpCmds(user)               -- Commands for all ops
user:SendData("$UserCommand 1 3 "..xMenu.."\\Sample2$<%[mynick]> !command||")

if (user.iProfile == 0) then        -- Commands for master
user:SendData("$UserCommand 1 3 "..xMenu.."\\Sample3$<%[mynick]> !command||")
end
end
Title:
Post by: ConejoDelMal on 11 April, 2005, 21:55:54
it's exaclty something like this that isnt working for me.... cant understand why, but thx for the answer..
Title:
Post by: ConejoDelMal on 13 April, 2005, 06:27:40
thx for the reply Mutor, but for now i got something really simple already, i will check it out better when i get more time  :))
Title: rightclik
Post by: (NL)waarom on 13 April, 2005, 09:19:21
I think you mean something like this
---------------------------------------------------

--Fun-Menu rightclicker
Bot = "funklik"   -- your main bot here
SendComm = 1    -- Send user command [right click] "1"=yes "0"=no
fMenu = "-=( Fun-Menu )=-" -- funMenu Name

SetTo = {
 
Title:
Post by: -PT-B2S on 17 April, 2005, 23:42:54
i will try this one. thnks :)