rightclick command to a bot......
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

rightclick command to a bot......

Started by HardstyleBaBy, 25 January, 2005, 00:23:52

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HardstyleBaBy

Hi all,

Im trying to add rightclickcommands for my hub games to the rightclicker of robocop.
Now that works all fine, exept of the commands that are sended to the bot in the userlist instead of in mainchat.

How can i make that? if its possible?  ?(

HardstyleBaBy

ok, here is my script:

-- # RightClicker for RoboCopv9.0c
-- # Made by Optimus & TiMeTrAVelleR
-- # USE SCRIPT AT YOUR OWN RISK, IT MAY NOT BE COMPATIBLE WITH ALL CLIENTS

assert(dofile("tbl/scriptlevel.tbl"),"tbl/scriptlevel.tbl not found")
assert(dofile("tbl/inbuildlevel.tbl"),"tbl/inbuildlevel.tbl not found")

sMenu = "]-[?R???R?"

SendTo = { --> 1=on/0=off
[0] = 1,   -- Masters
[1] = 1,   -- Operators
[2] = 1,   -- Vips
[3] = 0,   -- Regs
[4] = 1,   -- Moderator
[5] = 1,   -- NetFounder
[-1] = 0,  -- Users
}

-- End Editable Settings --

function NewUserConnected(user)
   if (SendTo[user.iProfile]==1) then
      user:SendData("$UserCommand 255 7 |") user:SendData("$UserCommand 0 3 |")
      GetRightClick(user, ScriptLevel, ScriptCmds) GetRightClick(user, InbuildLevel, InbuildCmds) customCMDs(user)
      user:SendData(" Enhanced Right Click Support for [RoboCop] is available!")
   end
end

OpConnected=NewUserConnected

function GetRightClick(user, table1, table2)
   for cmd,_ in table1 do
      if table1[cmd][user.iProfile] == 1 then
         for value,command in table2 do
            if cmd == value then user:SendData(command) end
         end
      end
   end
end

function customCMDs(user) --// You can put your custome commands here
   user:SendData("$UserCommand 1 3 "..sMenu.."\\Guestbook\\Post a Message$<%[mynick]> +addgb %[line:Message]||")
   user:SendData("$UserCommand 1 3 "..sMenu.."\\Guestbook\\Read the Guestbook$<%[mynick]> +showgb||")
   user:SendData("$UserCommand 1 3 "..sMenu.."\\Guestbook\\Clear the Guestbook$<%[mynick]> +cleargb||")
   user:SendData("$UserCommand 1 3 "..sMenu.."\\Tic-Tac-Toe\\Invite this User$<%[mynick]> /pm -=[TicTacToe]=- invite %[nick]||")
   user:SendData("$UserCommand 1 3 "..sMenu.."\\Hub-Game\\Start het woordmix spel$<%[mynick]> +start||")
   user:SendData("$UserCommand 1 3 "..sMenu.."\\Hub-Game\\Stop het woordmix spel$<%[mynick]> +stop||")
   user:SendData("$UserCommand 1 3 "..sMenu.."\\Hub-Game\\Bekijk de hint$<%[mynick]> +hint||")
   user:SendData("$UserCommand 1 3 "..sMenu.."\\Hub-Game\\Bekijk de variant$<%[mynick]> +variant||")
   user:SendData("$UserCommand 1 3 "..sMenu.."\\Hub-Game\\Bekijk de actuele scores$<%[mynick]> +scores||")
   user:SendData("$UserCommand 1 3 "..sMenu.."\\Hub-Game\\Bekijk jou score$<%[mynick]> +mijnscore||")
   user:SendData("$UserCommand 1 3 "..sMenu.."\\Joke-Bot\\Make Joke$<%[mynick]> +joke||")
end

ScriptCmds = {
["kick"]="$UserCommand 1 3 "..sMenu.."\\KICK/BAN\\Kick User$<%[mynick]> !kick %[nick] %[line:Reason]||",   -- kick
["ban"]="$UserCommand 1 3 "..sMenu.."\\KICK/BAN\\Ban User$<%[mynick]> !ban %[nick] %[line:Reason]||",   -- ban
["nameban"]="$UserCommand 1 3 "..sMenu.."\\KICK/BAN\\Nameban User$<%[mynick]> !nameban %[nick] %[line:Reason]||",   -- nameban
["timeban"]="$UserCommand 1 3 "..sMenu.."\\KICK/BAN\\Timeban User$<%[mynick]> !timeban %[nick] %[line:hr:mn] %[line:Reason]||",   -- timeban
["kill"]="$UserCommand 1 3 "..sMenu.."\\KICK/BAN\\Kill User $<%[mynick]> !kill %[nick] %[line:Reason]||",   -- kill
["warn"]="$UserCommand 1 3 "..sMenu.."\\KICK/BAN\\Warn User$<%[mynick]> !warn %[nick] %[line:Reason]||",   -- warn
["flood"]="$UserCommand 1 3 "..sMenu.."\\KICK/BAN\\Flood User$<%[mynick]> !flood %[nick] %[line:Nr] %[line:Reason]||",   -- flood
["hconfig"]="$UserCommand 1 3 "..sMenu.."\\SETTING\\Hub Config$<%[mynick]> !hconfig||",   -- hconfig
["hstat"]="$UserCommand 1 3 "..sMenu.."\\SETTING\\Hub Statics$<%[mynick]> !hstat||",   -- hstat
["info"]="$UserCommand 1 3 "..sMenu.."\\INFO\\User Info$<%[mynick]> !info %[nick]||",   -- info
["mass"]="$UserCommand 1 3 "..sMenu.."\\OTHER\\Mass Message$<%[mynick]> !mass %[line:Message]||",   -- mass
["banner"]="$UserCommand 1 3 "..sMenu.."\\OTHER\\Send Banner$<%[mynick]> !banner %[line:Advert]||",   -- banner
["sendhubad"]="$UserCommand 1 3 "..sMenu.."\\OTHER\\Send Advertise mesage$<%[mynick]> !sendhubad %[line:main/pm]||",   -- sendhubad
["talk"]="$UserCommand 1 3 "..sMenu.."\\OTHER\\Talk Whitout Nick$<%[mynick]> !talk %[line:Message]||",   -- talk
["online"]="$UserCommand 1 3 "..sMenu.."\\OTHER\\Online Check User/Ip$<%[mynick]> !online %[line:nick/ip]||",   -- online
["offline"]="$UserCommand 1 3 "..sMenu.."\\OTHER\\Offline Message To User$<%[mynick]> !offline %[nick] %[line:Message]||",   -- offline
["watch"]="$UserCommand 1 3 "..sMenu.."\\OTHER\\Watch a User$<%[mynick]> !watch %[nick]||",   -- watch
["watchoff"]="$UserCommand 1 3 "..sMenu.."\\OTHER\\Watch Off$<%[mynick]> !watchoff||",   -- watchoff
["getwatch"]="$UserCommand 1 3 "..sMenu.."\\OTHER\\Show Watchers$<%[mynick]> !getwatch||",   -- getwatch
["cmdspy"]="$UserCommand 1 3 "..sMenu.."\\OTHER\\Set CommandSpy on/off$<%[mynick]> !cmdspy %[line:on/off]||",   -- cmdspy
["topkickers"]="$UserCommand 1 3 "..sMenu.."\\NORMAL\\Show Topkickers$<%[mynick]> !topkickers||",   -- topkickers
["tophubbers"]="$UserCommand 1 3 "..sMenu.."\\NORMAL\\Show TopHubbers$<%[mynick]> !tophubbers||",   -- tophubbers
["sminslots"]="$UserCommand 1 3 "..sMenu.."\\SETTING\\Set Script Minslots$<%[mynick]> !sminslots %[line:user/reg/vip/op/mod/master/founder] %[line:slots]||",   -- sminslots
["smaxslots"]="$UserCommand 1 3 "..sMenu.."\\SETTING\\Set Script Maxslots$<%[mynick]> !smaxslots %[line:user/reg/vip/op/mod/master/founder] %[line:slots]||",   -- smaxslots
["smaxhubs"]="$UserCommand 1 3 "..sMenu.."\\SETTING\\Set Script Max Hubs$<%[mynick]> !smaxhubs %[line:user/reg/vip/op/mod/master/founder] %[line:hubs]||",   -- smaxshubs
["sratio"]="$UserCommand 1 3 "..sMenu.."\\SETTING\\Set Script Slots/Hubs Ratio$<%[mynick]> !sratio %[line:user/reg/vip/op/mod/master/founder] %[line:slots]||",   -- sratio
["slimiter"]="$UserCommand 1 3 "..sMenu.."\\SETTING\\Set Script Bandwidth Limiter$<%[mynick]> !slimiter %[line:user/reg/vip/op/mod/master/founder] %[line:limiter]||",   -- slimiter
["sminshare"]="$UserCommand 1 3 "..sMenu.."\\SETTING\\Set Script MinShare$<%[mynick]> !sminshare %[line:user/reg/vip/op/mod/master/founder] %[line:share] %[line:mb/gb]||",   -- sminshare
["redirect"]="$UserCommand 1 3 "..sMenu.."\\SETTING\\Set Redirect Address$<%[mynick]> !redirect %[line:Host /Ip]||",   -- redirect
["addredirect"]="$UserCommand 1 3 "..sMenu.."\\REDIRECT\\Add new url to redirect list$<%[mynick]> !addredirect %[line:Url/Ip]||",
["delredirect"]="$UserCommand 1 3 "..sMenu.."\\REDIRECT\\Delete url from redirect list$<%[mynick]> !delredirect %[line:Url/Ip]||",
["showredirect"]="$UserCommand 1 3 "..sMenu.."\\REDIRECT\\Show all redirect addresses$<%[mynick]> !showredirect||",
["hubprotect"]="$UserCommand 1 3 "..sMenu.."\\SETTING\\Set Hub Protect on/off$<%[mynick]> !hubprotect %[line:on/off]||",   -- hubprotect
["getblocked"]="$UserCommand 1 3 "..sMenu.."\\OTHER\\Show Blocked Users$<%[mynick]> !getblocked||",   -- getblocked
["massblocked"]="$UserCommand 1 3 "..sMenu.."\\OTHER\\Mass Message Blocked Users$<%[mynick]> !massblocked %[line:Message]||",   -- massblocked
["regreg"]="$UserCommand 1 3 "..sMenu.."\\REGISTER\\Reg User$<%[mynick]> !regreg %[nick] %[line:Password]||",   -- regreg
["regvip"]="$UserCommand 1 3 "..sMenu.."\\REGISTER\\Reg Vip$<%[mynick]> !regvip %[nick] %[line:Password]||",   -- regvip
["upgrade"]="$UserCommand 1 3 "..sMenu.."\\REGISTER\\Upgrade Reg User$<%[mynick]> !upgrade %[nick] %[line:reg/vip/op/mod/master/founder]||",   -- upgrade
["getpass"]="$UserCommand 1 3 "..sMenu.."\\REGISTER\\Get Password User$<%[mynick]> !getpass %[nick]||",   -- getpass
["resethstat"]="$UserCommand 1 3 "..sMenu.."\\SETTING\\ResetCounters$<%[mynick]> !resethstat||",   -- resethstat
["clear"]="$UserCommand 1 3 "..sMenu.."\\LOG\\Clear Nick$<%[mynick]> !clear %[nick]||",   -- clear
["showkicklog"]="$UserCommand 1 3 "..sMenu.."\\LOG\\ShowKicklog$<%[mynick]> !showkicklog||",   -- showkicklog
["showbanlog"]="$UserCommand 1 3 "..sMenu.."\\LOG\\ShowBanlog$<%[mynick]> !showbanlog||",   -- showbanlog
["showwarnlog"]="$UserCommand 1 3 "..sMenu.."\\LOG\\ShowWarnlog$<%[mynick]> !showwarnlog||",   -- showwarnlog
["rules"]="$UserCommand 1 3 "..sMenu.."\\NORMAL\\Rules$<%[mynick]> !rules||",   -- rules
["network"]="$UserCommand 1 3 "..sMenu.."\\NORMAL\\Show hubs in network$<%[mynick]> !network||",   -- network
["faq"]="$UserCommand 1 3 "..sMenu.."\\NORMAL\\Show faq about DC++$<%[mynick]> !faq||",   -- faq
["myip"]="$UserCommand 1 3 "..sMenu.."\\NORMAL\\Your-Info\\Show your currently IP number$<%[mynick]> !myip||",   -- myip
["myinfo"]="$UserCommand 1 3 "..sMenu.."\\NORMAL\\Your-Info\\Show all your aviable Info$<%[mynick]> !myinfo||",   -- myinfo
["regme"]="$UserCommand 1 3 "..sMenu.."\\NORMAL\\Register Yourself$<%[mynick]> !regme %[line:Password]||",   -- regme
["repass"]="$UserCommand 1 3 "..sMenu.."\\NORMAL\\Your-Info\\Change your own password$<%[mynick]> !repass %[line:New Pass]||",   -- repass
["showreg"]="$UserCommand 1 3 "..sMenu.."\\NORMAL\\Show users from selected profile$<%[mynick]> !showreg %[line:reg/vip/op/mod/master/founder]||",   -- showreg
["away"]="$UserCommand 1 3 "..sMenu.."\\NORMAL\\Away-Status\\Set away message$<%[mynick]> !away %[line:Message]||",   -- away
["back"]="$UserCommand 1 3 "..sMenu.."\\NORMAL\\Away-Status\\Back after an away$<%[mynick]> !back||",   -- back
["getaways"]="$UserCommand 1 3 "..sMenu.."\\NORMAL\\Away-Status\\Show all away messages$<%[mynick]> !getaways||",   -- getaways
["report"]="$UserCommand 1 3 "..sMenu.."\\NORMAL\\Report User to all OP's in PM$<%[mynick]> !report %[nick] %[line:Message]||",   -- report
["myhubtime"]="$UserCommand 1 3 "..sMenu.."\\NORMAL\\Your-Info\\Shows Youre Online Time in Hub$<%[mynick]> !myhubtime||",   -- myhubtime
["help"]="$UserCommand 1 3 "..sMenu.."\\NORMAL\\Help Commands$<%[mynick]> !help||",   -- help
["inbuild"]="$UserCommand 1 3 "..sMenu.."\\NORMAL\\Show Inbuild Commands$<%[mynick]> !inbuild %||",   -- inbuild
}
InbuildCmds = {
["drop"]="$UserCommand 1 3 "..sMenu.."\\INBUILD\\Drop User$<%[mynick]> !drop %[nick]||",   -- drop
["gag"]="$UserCommand 1 3 "..sMenu.."\\INBUILD\\Gag User$<%[mynick]> !gag %[nick]||",   -- gag
["ungag"]="$UserCommand 1 3 "..sMenu.."\\INBUILD\\UnGag User$<%[mynick]> !ungag %[nick]||",   -- ungag
["banip"]="$UserCommand 1 3 "..sMenu.."\\INBUILD\\BanIp User$<%[mynick]> !banip %[line:Ipnumber]||",   -- banip
["unban"]="$UserCommand 1 3 "..sMenu.."\\INBUILD\\Unban User$<%[mynick]> !unban %[nick] %[line:nick/ip]||",   -- unban
["nickban"]="$UserCommand 1 3 "..sMenu.."\\INBUILD\\Nickban User$<%[mynick]> !nickban %[nick] %[line:Reason]||",   -- nickban
["getbanlist"]="$UserCommand 1 3 "..sMenu.."\\INBUILD\\GetBanlist$<%[mynick]> !getbanlist||",   -- getbanlist
["topic"]="$UserCommand 1 3 "..sMenu.."\\INBUILD\\Change the Hub Topic (Not TD4)$<%[mynick]> !topic %[line:Topic]||",   -- topic
["restart"]="$UserCommand 1 3 "..sMenu.."\\SETTING\\Restart Hub$<%[mynick]> !restart||",   -- restart
["restartscripts"]="$UserCommand 1 3 "..sMenu.."\\SETTING\\Restart Scripts$<%[mynick]> !restartscripts||",   -- restartscripts
}



Sorry, didnt know how to do the code: thing. ;)

TTB

Hi,

the code thing is with {CODE} and {/CODE} where {} should be [].

And the script you posted, is this script working (you like to add some commands?), what doesn't work?
TTB

(? ?.??.-> Admin @ Surfnet hubs <-.??.???)

HardstyleBaBy

yes it works fine, exept if i wanna send a command that has to be sent to the bot like a pm

then i dont get it to work, the rest of is works fine for me  8)

user:SendData("$UserCommand 1 3 "..sMenu.."\\Tic-Tac-Toe\\Invite this User$<%[mynick]> /pm -=[TicTacToe]=- invite %[nick]||")


this line i was trying to let the rightclicker send a pm command to a bot

??????Hawk??????

hi m8  

Tic-Tac-Toe  has main chat commands  ..  no need to pm it

heres what i use

user:SendData("$UserCommand 1 3 ! ! Xsthetic Fun ! !\\tic-tac-toe\\Invite To Play$<%[mynick]> invite %[nick] tic-tac-toe|")
	user:SendData("$UserCommand 1 3 ! ! Xsthetic Fun ! !\\tic-tac-toe\\Help$<%[mynick]> help tic-tac-toe|")


??????Hawk??????

Tom

QuoteOriginally posted by Mutor
Assuming -=[TicTacToe]=- is the bots name, try these...

For use on userlist menu:

user:SendData("$UserCommand 1 2 "..sMenu.."\\Tic-Tac-Toe\\Invite this User$To: -=[TicTacToe]=- From: %[mynick] $<%[mynick]> invite %[nick]||"


and this for hub tab (or both):

user:SendData("$UserCommand 1 1 "..sMenu.."\\Tic-Tac-Toe\\Invite this User$To: -=[TicTacToe]=- From: %[mynick] $<%[mynick]> invite %[line:Nick]||"

And what is for use in the search menu, if you click in the search menu onto some user?

jadehenry04

is there a hangman bot for ptokax ? or is there any other game bots apart from trivia, anagram and number i got them but want sum new one !! plz reply if u know! MUST BE FOR PTOKAX!!

jadehenry04

soz but that dont make no sense to me i aint very good at understanding scripts or wat eva it was lol!

jadehenry04

oh right well i take it ya cant get hangman then part for y-hub :::::( cos i got the latest xthetics thing and it aint there!!!

jadehenry04

kool cheers. my email- jadehenry@blueyonder.co.uk

or u can cum into my hub- jadeshideaway.no-ip.info and pm [FUN][??]J??? would be great if you would be able to do either one soon as possible id need ur help to set it up cos im not very good at these sort of things ? :)

jadehenry04

does any one know how to put ASCII on to right clicks?

Tom

QuoteOriginally posted by Mutor
the rest was for Tom

 Thank you very much, Mutor!

jadehenry04

woo hoo mutor were u at???

HardstyleBaBy

#13
Ok, well it did not work, i tried all the commands for tic-tac-toe on this page but none worked,
mostly i got disconnected in my own hub when using the command.

But i already gave up hehe, i now use the botdescription script. so users can see how they can play it :P

but thanx for help, and sorry for replaying so late hehe

SMF spam blocked by CleanTalk