Server Help

Bot Questions - Tm_mer again (buy.ini)

blue monday - Mon Jan 16, 2006 7:06 pm
Post subject: Tm_mer again (buy.ini)
Yeah I am making a item to convert points into creds. I can get it to take the points away fomr the player but it wont add creds to the player.Can i bot tell itself commands?


[Item13]
Name=Point exchange
Value=0
Description=Exchanges points for credits.
PrivAction0=
PubAction0=!cgive %name%:500
SpecialPoints=-4000
Muskrat - Tue Jan 17, 2006 9:39 am
Post subject:
Not unless it is an Operator of itself.
Cyan~Fire - Tue Jan 17, 2006 3:41 pm
Post subject:
Can't you make the value negative?
blue monday - Tue Jan 17, 2006 5:46 pm
Post subject:
Cyan~Fire wrote:
Can't you make the value negative?


Can't I? It takes points away but ill try making the bot a Op of itself
Purge - Tue Jan 17, 2006 6:05 pm
Post subject:
Yeah, you should make the bot OP of itself since it needs to do !cgive.

Also, since it's PubAction, make sure the bot reads public commands by making DisablePubCommands=0 in MERVBot.ini, under [Misc].
Bak - Tue Jan 17, 2006 7:34 pm
Post subject:
I don't think the bot can send itself commands... but I'm not 100% sure.
Muskrat - Tue Jan 17, 2006 7:58 pm
Post subject:
I believe it can, put me->access = OP_Owner; in the EnterArena Event and then use sendPrivate(me,...);. Of course, there is almost always a better way to do it than sending itself a command.
blue monday - Tue Jan 17, 2006 8:28 pm
Post subject:
Dont work
Cyan~Fire - Wed Jan 18, 2006 1:11 pm
Post subject:
I meant, can't you make the credit value negative, so it gives you credits?
Anonymous - Sat Jan 21, 2006 2:11 pm
Post subject:
Dont understand
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group