Make a command called "ags" and have the code make sure they have 200 of that certain token and then delete them and add the item that they purchased it isn't that hard, but if you need help let me know by private message.
|
I know some of you may be mad that somebody asked for help on deltascape, but I was only wondering something not too hard.
How would I go about making people require a certain item id, champions tokens to be exact, before spawning a certain item.
For example I could write a code that made it so you can't spawn the best items. Then I want to make it some how require a certain amount of champion's tokens for a certain item.
For example ags for 200 tokens...get it?
Anyways if anybody could help with any bit at all I'd greatly appreciate it. Thanks.
Make a command called "ags" and have the code make sure they have 200 of that certain token and then delete them and add the item that they purchased it isn't that hard, but if you need help let me know by private message.
^ Common sense but I was wondering what the code would actually look like.
Thanks for helping tho
Been awhile since I touched delta.. lol
Basically, you will need to do something like this:
Code:if command.equalsIgnoreCase("Ags") { if championTokens >= 200 { addItem (agsitemid, 1); removeAmount (championTokens, 200); sendMessage ("You exchange 200 champion tokens for an Armadyl Godsword!"); } else { sendMessage ("You need at least 200 champion tokens for an Armadyl Godsword."); } }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |