Thread: Help with npc dialiogue giving an item.

Results 1 to 3 of 3
  1. #1 Help with npc dialiogue giving an item. 
    Registered Member
    Core's Avatar
    Join Date
    Sep 2007
    Posts
    4,194
    Thanks given
    11
    Thanks received
    393
    Rep Power
    1985
    Well I'm starting a new server and I added mining so I picked a spot to add the rocks and a dwarf to guide you in mining. I made him talk to you and give you a bronze pickaxe, but it just keeps giving you the bronze pickaxe. Here is the code.

    Code:
    			case 232:
    				talk3("Welcome to the mine area,", "Use this to get started on mining,", "Once you get 99 talk to me for a SkillCape.", 232);
    				addItem(1265, 1);
    				break;
    Haven't figured out the skillcape part either so if anyone know how to fix either please help me quick.
     

  2. #2  
    Ivo
    Ivo is offline
    Coding coding coding...

    Ivo's Avatar
    Join Date
    Mar 2008
    Age
    30
    Posts
    1,426
    Thanks given
    30
    Thanks received
    147
    Rep Power
    2017
    Code:
    			case 232:
                                    if (playerLevel[playerMining] <= 99) {
    				talk3("Welcome to the mine area,", "Use this to get started on mining,", "Once you get 99 talk to me for a SkillCape.", 232);
    				addItem(1265, 1);
                                    }
                                    if (playerLevel[playerMining] >= 99) {
                                    talk3("Welcome to the mine area,", "heres ur cape,", "bla bla bla bla bla.", 232);
    				addItem(####, 1);
    				break;
    I think

    [Only registered and activated users can see links. ]
     

  3. #3  
    Registered Member
    Core's Avatar
    Join Date
    Sep 2007
    Posts
    4,194
    Thanks given
    11
    Thanks received
    393
    Rep Power
    1985
    Alright your code for the skillcapes worked but it still doesn't stop giving me picks, just doesnt stop.. anyone knwo why?
     


Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •