Server Help

Bot Questions - TW MER /!buy <item> doesn't work? What is wrong?

KomodoDragon - Tue Sep 13, 2005 8:30 am
Post subject: TW MER /!buy <item> doesn't work? What is wrong?
Well I said I was using TW MER and it seemed to be working. Well It was partially. The default setting worked, whick only included buying points for 6000 creds. However, when I finally figured out the right format to list the store items that is when the problems started.

I can get the store inventory to list with the /!buy command, however when I go to buy and item from the store nothing happens. So I have included the buy.ini file for everyones perusal. If there is something wrong please let me know!

Quote:

[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=6000



# ^---------------- Item value in credits
[Item1]
# ^----------------- Up to 256 items

Name=repel

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

Description=Gives you one Repel

# ^---------- Description in the list

Value=500



# ^---------------- Item value in credits
[Item2]
# ^----------------- Up to 256 items



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

Description=Gives you on Burst

# ^---------- Description in the list


Value=500



# ^---------------- Item value in credits
[Item3]
# ^----------------- Up to 256 items


Name=gun

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


Description=Gives you a Gun upgrade

# ^---------- Description in the list


Value=550



# ^---------------- Item value in credits
[Item4]
# ^----------------- Up to 256 items


Name=bomb

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


Description=Gives you a Bomb upgrade

# ^---------- Description in the list


Value=600



# ^---------------- Item value in credits
[Item5]
# ^----------------- Up to 256 items


Name=thrust

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


Description=Gives you a Thrust upgrade

# ^---------- Description in the list


Value=300



# ^---------------- Item value in credits
[Item6]
# ^----------------- Up to 256 items


Name=decoy

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


Description=Gives you an extra Decoy

# ^---------- Description in the list


Value=300



# ^---------------- Item value in credits
[Item7]
# ^----------------- Up to 256 items


Name=rocket

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


Description=Gives you an extra Rocket

# ^---------- Description in the list

Value=325



# ^---------------- Item value in credits
[Item8]
# ^----------------- Up to 256 items

Name=brick

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

Description=Gives you an extra Brick
Description=Gives you an extra Portal
# ^---------- Description in the list

Value=450



# ^---------------- Item value in credits
[Item9]
# ^----------------- Up to 256 items

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


Description=Gives you an extra Portal
# ^---------- Description in the list


Value=375


# ^---------------- 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=4
# ^--------- 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


Here is the credits.ini file too:

Quote:

# If negative, then credits are taken away
# The absolute maximum for credits is 2147483648 and mimimum is -2147483649

[Credits]
CanGoNegative=true
# Do credits stop decreasing at 0

SoccerGoalEnemy=-1000
SoccerGoalTeam=1000

FlagVictoryTeam=6000
FlaVictoryEnemy=-2500

Kill=10
TeamKill=-500
Killed=0
TeamKilled=0

AnyPrize=0
Prize-28=0
# ^----- -28 to 28
# Overrides AnyPrize for that number

Cyan~Fire - Tue Sep 13, 2005 8:46 pm
Post subject:
Except for the points, all of the buying actions can be accomplished through the [Cost] settings in the arena config (.cfg file). I'd suggest using that and not a bot.

About the points, I have no clue why it isn't working. The bot just doesn't reply? Can you see if the bot used the *points command on the console? Does anything happen at all?
KomodoDragon - Wed Sep 14, 2005 6:53 am
Post subject:
I tried the *points command ingame, and zip.... It didn't even know I typed the command I don't think!

icon_confused.gif
Cyan~Fire - Wed Sep 14, 2005 3:53 pm
Post subject:
Were you/is the bot logged in as sysop?

And anyway, buying points seems rather silly to me. You get credits for kills/goal but you also get points for kills/goals. Why not just get more points in the first place?
KomodoDragon - Wed Sep 14, 2005 5:16 pm
Post subject:
I think I have the bot as a smod....guess that could be the problem? icon_confused.gif
Quan Chi2 - Wed Sep 14, 2005 5:17 pm
Post subject:
i just make my own buy bot
Purge - Wed Sep 14, 2005 11:12 pm
Post subject:
KomodoDragon wrote:
I think I have the bot as a smod....guess that could be the problem? icon_confused.gif


Yeah, *points is a sysop command.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group