Author |
Message |
blue monday Novice

Joined: Nov 04 2005 Posts: 75 Offline
|
Posted: 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 |
|
Back to top |
|
 |
Muskrat Server Help Squatter

Age:38 Joined: Aug 24 2004 Posts: 829 Location: Swamp Offline
|
Posted: Tue Jan 17, 2006 9:39 am Post subject: |
 |
|
|
|
Not unless it is an Operator of itself. |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Tue Jan 17, 2006 3:41 pm Post subject: |
 |
|
|
|
Can't you make the value negative? _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
blue monday Novice

Joined: Nov 04 2005 Posts: 75 Offline
|
Posted: 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 |
|
Back to top |
|
 |
Purge Episode I > Eposide III Jar-Jar is kool

Age:35 Gender: Joined: Sep 08 2004 Posts: 2019 Offline
|
Posted: 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]. |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: 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. |
|
Back to top |
|
 |
Muskrat Server Help Squatter

Age:38 Joined: Aug 24 2004 Posts: 829 Location: Swamp Offline
|
Posted: 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. |
|
Back to top |
|
 |
blue monday Novice

Joined: Nov 04 2005 Posts: 75 Offline
|
Posted: Tue Jan 17, 2006 8:28 pm Post subject: |
 |
|
|
|
Dont work |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Wed Jan 18, 2006 1:11 pm Post subject: |
 |
|
|
|
I meant, can't you make the credit value negative, so it gives you credits? |
|
Back to top |
|
 |
Guest
Offline
|
Posted: Sat Jan 21, 2006 2:11 pm Post subject: |
 |
|
|
|
Dont understand |
|
Back to top |
|
 |
|