Thread: Anger Weapon Rack

Results 1 to 2 of 2
  1. #1 Anger Weapon Rack 
    Registered Member
    Join Date
    May 2012
    Posts
    335
    Thanks given
    43
    Thanks received
    10
    Rep Power
    15
    i want to make it so when you click the Anger Weapon Rack. It will send you a list of options of which 1 you want to buy. but i also want it to cost holy waters to purchase 1.



    Thanks for reading (:
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Sep 2011
    Posts
    2,730
    Thanks given
    1,150
    Thanks received
    907
    Rep Power
    668
    Quite a little bit of work there, but I'll tell you what you need to do.

    This is assuming you're using PI.

    First, you need to go to Actionhandler and send the options of each weapon. This can easily be copied with any teleporting method.

    You must then make the buttons work by going to ClickingButtons. You must have it check if they have the required amount of holy waters to purchase an item.

    Here's random samples.

    Code:
    case OBJECT_ID:
    sendOption("Anger Mace", etc. etc. etc. etc.);
    dialogueAction = ID;
    break;
    Code:
    if (c.getItems().playerHasItem(HOLY_WATER_ID, AMOUNT)) {
    c.getItems().deleteItem(HOLY_WATER_ID, AMOUNT);
    c.getItems().addItem(ANGER_WEAPON_ID, AMOUNT);
    c.sendMessage("You've purchased an anger weapon.");
    }
    I would help via more specifics but I don't have my base codes with me, sorry.

    EDIT: Also apologies for no conventions. Just typed this up right now.
    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. Weapon Rack
    By Kobarz in forum Help
    Replies: 0
    Last Post: 03-19-2012, 02:23 AM
  2. How I deal with my anger
    By Rayzer in forum Humor
    Replies: 5
    Last Post: 12-09-2011, 04:35 AM
  3. anger rack
    By x coder chase x in forum Help
    Replies: 7
    Last Post: 10-30-2011, 11:19 AM
  4. .Anger
    By Flow in forum Showcase
    Replies: 15
    Last Post: 08-08-2009, 04:26 PM
  5. Anger.
    By Flow in forum Showcase
    Replies: 29
    Last Post: 07-26-2009, 02:56 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
  •