Server Help

Bot Questions - Buybot

Anonymous - Tue Aug 14, 2007 3:12 pm
Post subject: Buybot
I have a plugin for a mervbot called tm_mer. It has the commands for credit awarding like .cgive, .ctake, and .cget. There is also a buy.ini but only has 1 buy option. Here's the .ini...
Code: Show/Hide
[Item0]
#    ^----------------- Up to 256 items

Name=points
#    ^----------------- What this will be called. !buy points in this case

Description=Gives you 6000 points
#           ^---------- Description in the list

Value=3500
#     ^---------------- Item value in credits

# Macros you can use:
#   %name%   - Name of player
#   %points% - Points of player
#   %squad%  - Squad of player
#   %freq1%  - Freq of player. "(Private freq)" said if private
#   %freq2%  - Freq of player. Private freqs are said
#   %param%  - What the user typed after the item name(In "!buy arena This is an arena message", %param% would be "This is an arena message")

PrivAction0=*points +6000
PrivAction1=You got 6000 points!
#         ^------------ Up to 10 actions
#           ^---------- What to private message to player

PubAction0=%name% just got 6000 points!
#        ^------------- Up to 10 actions
#          ^----------- What to say publically

SpecialAction0=0
#            ^--------- Up to 10 actions
#              ^------- 0  -> Nothing
#                       1  -> Say carried flags in private
#                       2  -> Say uncarried flags in private
#                       3  -> Say all flags in private
#                       4  -> Say carried flags in public
#                       5  -> Say uncarried flags in public
#                       6  -> Say all flags in public
#                       7  -> Say carried flags to team
#                       8  -> Say uncarried flags to team
#                       9  -> Say all flags to team
#                       10 -> Say friendly player locations in private
#                       11 -> Say enemy player locations in private
#                       12 -> Say all player locations in private
#                       13 -> Say friendly player locations in public
#                       14 -> Say enemy player locations in public
#                       15 -> Say all player locations in public
#                       16 -> Say friendly player locations to team
#                       17 -> Say enemy player locations to team
#                       18 -> Say all player locations to team
#                       19 -> NOT USED
#                       20 -> Scorereset team
#                       21 -> Scorereset enemies
#                       22 -> NOT USED
#                       23 -> NOT USED
#                       24 -> Shipreset team
#                       25 -> Shipreset enemies
#                       26 -> NOT USED
#                       27 -> NOT USED

SpecialPoints=0
# How many points to give/take from player

Is there anyway I can add more !buy options to the list?
Jonus - Tue Aug 14, 2007 3:18 pm
Post subject:
[Item0]
# ^----------------- Up to 256 items

Just add more items?
[item1]
[item2]
[item3]
Maverick - Tue Aug 14, 2007 3:20 pm
Post subject:
Please read through the explanation of the .ini first before asking :/
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group