Thread: [PI] how to make npcs restore spec

Results 1 to 3 of 3
  1. #1 [PI] how to make npcs restore spec 
    Registered Member
    Join Date
    Dec 2012
    Posts
    37
    Thanks given
    2
    Thanks received
    0
    Rep Power
    12
    how would i make it so a npc could restore a players special attack? if their is a tutorial that i overlooked please link me
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Dec 2012
    Posts
    102
    Thanks given
    7
    Thanks received
    8
    Rep Power
    11
    My server has an npc that does that, I could take a look for you, gimme a few.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2012
    Posts
    102
    Thanks given
    7
    Thanks received
    8
    Rep Power
    11
    Ok so you just get the npc's ID, then in actionhandler.java under this:
    Code:
    	public void firstClickNpc(int npcType) {
    		c.clickNpcType = 0;
    		c.npcClickIndex = 0;
    		if (c.teleTimer > 0)
    			return;
    		switch(npcType) {
    Find your npc's case or Add this below a break; :
    Code:
     
    Case NpcID:
    c.specAmount = 10.0;
    break;
    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. Spec Npcs problem
    By Arithium in forum Help
    Replies: 7
    Last Post: 07-29-2011, 11:16 AM
  2. [Pi] making a spec restore object[pi]
    By Jilic-Matt in forum Help
    Replies: 10
    Last Post: 07-03-2011, 06:42 PM
  3. Replies: 4
    Last Post: 03-11-2011, 11:01 PM
  4. [508] Spec on npcs
    By fuzzball109 in forum Help
    Replies: 4
    Last Post: 10-03-2010, 12:43 AM
  5. Replies: 2
    Last Post: 11-09-2009, 07:40 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
  •