PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: HardstyleBaBy on 25 January, 2005, 00:23:52

Title: rightclick command to a bot......
Post by: HardstyleBaBy on 25 January, 2005, 00:23:52
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?  ?(
Title:
Post by: HardstyleBaBy on 28 January, 2005, 03:25:37
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
Title:
Post by: TTB on 28 January, 2005, 15:50:01
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?
Title:
Post by: HardstyleBaBy on 30 January, 2005, 05:30:59
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
Title:
Post by: ??????Hawk?????? on 30 January, 2005, 06:26:04
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??????
Title:
Post by: Tom on 30 January, 2005, 14:16:06
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?
Title: Hangman bot
Post by: jadehenry04 on 30 January, 2005, 14:59:21
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!!
Title:
Post by: jadehenry04 on 30 January, 2005, 16:36:45
soz but that dont make no sense to me i aint very good at understanding scripts or wat eva it was lol!
Title:
Post by: jadehenry04 on 30 January, 2005, 18:15:58
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!!!
Title:
Post by: jadehenry04 on 30 January, 2005, 19:40:02
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 ? :)
Title:
Post by: jadehenry04 on 30 January, 2005, 19:44:05
does any one know how to put ASCII on to right clicks?
Title: Thank you
Post by: Tom on 30 January, 2005, 20:57:02
QuoteOriginally posted by Mutor
the rest was for Tom

 Thank you very much, Mutor!
Title:
Post by: jadehenry04 on 30 January, 2005, 21:32:52
woo hoo mutor were u at???
Title:
Post by: HardstyleBaBy on 07 February, 2005, 23:58:34
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