Thread: [PI]Npc Appears when equipped a item

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35
  1. #1 [PI]Npc Appears when equipped a item 
    Registered Member Devil's Avatar
    Join Date
    Jun 2010
    Posts
    243
    Thanks given
    7
    Thanks received
    6
    Rep Power
    0
    How would go about making a npc appear in the map when that person has equipped a item and then disappear when they take it off but only appear for that person that equipped the item. Please help thanks will repp and thanks.


    Join now : http://buzz.igg.com/igg/2929543 and play for free on one of their games! 25 million are registered for you to make friends along the way.
    Reply With Quote  
     

  2. #2  
    Registered Member Devil's Avatar
    Join Date
    Jun 2010
    Posts
    243
    Thanks given
    7
    Thanks received
    6
    Rep Power
    0
    bump


    Join now : http://buzz.igg.com/igg/2929543 and play for free on one of their games! 25 million are registered for you to make friends along the way.
    Reply With Quote  
     

  3. #3  
    There's only 1Day2Die
    1Day2Die's Avatar
    Join Date
    Oct 2012
    Posts
    467
    Thanks given
    22
    Thanks received
    33
    Rep Power
    8
    is it even posible?....

    wearitem.java

    if (i==itemid) {
    spawn = 336 2339 3185 0 0 0
    }

    and

    import data.cfg.spawn-config;

    maby ?
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Apr 2012
    Posts
    123
    Thanks given
    51
    Thanks received
    17
    Rep Power
    13
    hmmm very nice question ill check if i cant make it work
    and trty to get back on you but... if anybody know if its even possible..

    Reply With Quote  
     

  5. #5  
    Registered Member Recursion's Avatar
    Join Date
    Feb 2010
    Posts
    638
    Thanks given
    0
    Thanks received
    29
    Rep Power
    41
    It's definitely possible! I did it on my server last Easter for an event I created. Wasn't PI though, so I don't know what to tell you there, all I can say is that YES, it's possible.
    Reply With Quote  
     

  6. #6  
    Father Of Lies


    Join Date
    May 2012
    Age
    26
    Posts
    1,216
    Thanks given
    267
    Thanks received
    289
    Rep Power
    242
    Quote Originally Posted by Bridpkz Dennis View Post
    is it even posible?....

    wearitem.java

    if (i==itemid) {
    spawn = 336 2339 3185 0 0 0
    }

    and

    import data.cfg.spawn-config;

    maby ?
    No lol.
    import the npchandler class
    if (i==itemid) {
    NpcHandler.spawnNpc(c, npcType, x, y, heightLevel, WalkingType, HP, maxHit, attack, defence, true, false) {
    }
    just change everything like heightlevel walking type etc to the actual itegers.
    Do you want it to spawn under you or behind you?
    Reply With Quote  
     

  7. #7  
    There's only 1Day2Die
    1Day2Die's Avatar
    Join Date
    Oct 2012
    Posts
    467
    Thanks given
    22
    Thanks received
    33
    Rep Power
    8
    jake, thats just what i said? the coords were an example..
    Reply With Quote  
     

  8. #8  
    Registered Member Script's Avatar
    Join Date
    Apr 2010
    Posts
    293
    Thanks given
    26
    Thanks received
    74
    Rep Power
    47
    Quote Originally Posted by jake.bellotti View Post
    No lol.
    import the npchandler class
    if (i==itemid) {
    NpcHandler.spawnNpc(c, npcType, x, y, heightLevel, WalkingType, HP, maxHit, attack, defence, true, false) {
    }
    just change everything like heightlevel walking type etc to the actual itegers.
    Do you want it to spawn under you or behind you?
    No, he meant to make it spawn personally for the player with the item. It's like the ring on runescape from desert's treasure which let's you see ghosts in specific places. It has to do something with updating npc
    Reply With Quote  
     

  9. #9  
    Super Donator

    Batukka's Avatar
    Join Date
    Oct 2011
    Posts
    2,433
    Thanks given
    86
    Thanks received
    342
    Rep Power
    496
    if(wearId){
    Server.npcHandler.spawnNPC( );
    }
    Reply With Quote  
     

  10. #10  
    Registered Member Devil's Avatar
    Join Date
    Jun 2010
    Posts
    243
    Thanks given
    7
    Thanks received
    6
    Rep Power
    0
    Thanks, but it only works when I have 2 items and equip one after another for some reason and it will just keep spawning if i keep equiping the item and wont disappear when I unequip the item, is there a method for removeing a spawn?


    Join now : http://buzz.igg.com/igg/2929543 and play for free on one of their games! 25 million are registered for you to make friends along the way.
    Reply With Quote  
     

Page 1 of 4 123 ... LastLast

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. Replies: 14
    Last Post: 10-15-2012, 09:49 AM
  2. Item appears as un-armed?
    By firecapez in forum Help
    Replies: 2
    Last Post: 08-13-2012, 09:36 AM
  3. when you die an equipped item unequips (pi)
    By VestaZcape in forum Help
    Replies: 0
    Last Post: 02-29-2012, 12:16 AM
  4. Item's Are Black When Equipped
    By .Optimum in forum Help
    Replies: 13
    Last Post: 04-02-2011, 08:32 AM
  5. Character and Equipped item Clipping
    By Zmancool in forum Help
    Replies: 1
    Last Post: 01-29-2011, 08:19 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •