View Single Post
  #4  
Old 07-25-2005, 05:30 AM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
Donation box... function onPlayerChats() { check that their chat starts with something like /donate. If so, have it check that they have enough money to donate. If they do, increase a server string, db npc string, or a this.string. A this.string should be avoided though, as it would get reset if the level is updated. After increasing the string, decrease their money count. It would be a good iidea to check that they are donating an amount that is > 0. Withdrawing is the oppodite of donating, but with an added account check so only certain people can withdraw.

Shop Till would also be similar, but it would have to add weapons to players when it removes the money from them.
__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

Reply With Quote