Thread: [Delta] Quick question.

Results 1 to 4 of 4
  1. #1 [Delta] Quick question. 
    Registered Member
    Join Date
    Apr 2010
    Posts
    25
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    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.
    Reply With Quote  
     

  2. #2  
    Registered Member Zevole's Avatar
    Join Date
    Sep 2010
    Posts
    164
    Thanks given
    0
    Thanks received
    17
    Rep Power
    10
    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.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2010
    Posts
    25
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    ^ Common sense but I was wondering what the code would actually look like.

    Thanks for helping tho
    Reply With Quote  
     

  4. #4  
    Registered Member Recursion's Avatar
    Join Date
    Feb 2010
    Posts
    638
    Thanks given
    0
    Thanks received
    29
    Rep Power
    41
    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.");
    }
    }
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Quick Question
    By D R O in forum Help
    Replies: 0
    Last Post: 11-21-2010, 03:39 AM
  2. Quick Question
    By Onyx in forum Help
    Replies: 7
    Last Post: 04-29-2009, 05:14 AM
  3. quick delta question
    By Vox' in forum Help
    Replies: 8
    Last Post: 03-12-2009, 07:28 AM
  4. a quick question?
    By Eminem™ in forum Help
    Replies: 6
    Last Post: 11-01-2008, 03:52 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •