Thread: [PI] shades with anims and special drops[PI]

Results 1 to 6 of 6
  1. #1 [PI] shades with anims and special drops[PI] 
    King of the North
    Lord Stark's Avatar
    Join Date
    Jan 2010
    Age
    27
    Posts
    1,071
    Thanks given
    105
    Thanks received
    41
    Rep Power
    28
    heya, this is my second npc anim/drop release i will realease more later
    link to wyverns-->[Only registered and activated users can see links. ]
    to make this better make sure you have spirit shields and sigils:O
    also this snippet to make the sigils work with the blessed spirit shield [Only registered and activated users can see links. ]
    difficulty 1/10 -its copy and paste..-


    step 1.
    open up npchandler.java
    ok search for
    Code:
    public boolean switchesAttackers
    and add this under one of the returns
    Code:
    case 1248://shades attack start -elf run1
    case 1241:
    case 1250:
    case 1246:
    what does this do?:its make the npc switch attack types.

    next search for
    Code:
    public static int getAttackEmote(int i)
    and add this
    Code:
    case 1248://shades attack start -elf run1
    case 1241:
    case 1250:
    case 1246:
    if (npcs[i].attackType == 0)
    return 1284;//shades attk end *elf
    if (npcs[i].attackType == 2)
    return 1283;
    what does this do?: it adds the attack emote to the npc for attacktype == 0 being meele
    and attacktype == 2 for being mage

    next! search for
    Code:
    public int getDeadEmote(int i)
    and add

    Code:
    case 1248://shades death start -elf run1
    case 1241:
    case 1250:
    case 1246:
    return 1287;
    what does this do?:
    this adds the death emote to the npc

    next! search for
    Code:
    public void loadSpell(int i)
    and add this
    Code:
    case 1248:
    			case 1241:
    case 1250:
    case 1246:
    			if(Misc.random(10) > 7){
    			npcs[i].projectileId = 330;
    				npcs[i].endGfx = 400;
    				npcs[i].attackType = 2;
    			startAnimation(1283, i);
    			} else {
    			startAnimation(1284, i);
    			npcs[i].attackType = 0;
    			}
    			break;
    what does this do?: this adds the spell gfx and anim.
    note this is not correct projectile id's i could not find them if you know the real ones please tell me
    now save and close npchandler.java
    and open up npcspawn.cfg/ spawn-config

    just add these
    Code:
    spawn = 1246	2464	4780	0	1	30	90	80
    spawn = 1246	2459	4772	0	1	30	90	80
    spawn = 1246	2474	4780	0	1	30	90	80
    spawn = 1246	2455	4784	0	1	30	90	80
    
    spawn = 1248	2462	4781	0	1	30	90	80
    spawn = 1248	2463	4770	0	1	30	90	80
    spawn = 1248	2473	4776	0	1	30	90	80
    spawn = 1248	2456	4786	0	1	30	90	80
    
    spawn = 1250	2465	4782	0	1	30	90	80
    spawn = 1250	2470	4774	0	1	30	90	80
    spawn = 1250	2472	4784	0	1	30	90	80
    spawn = 1250	2453	4783	0	1	30	90	80
    
    spawn = 1241	2464	4783	0	1	30	90	80
    spawn = 1241	2467	4772	0	1	30	90	80
    spawn = 1241	2473	4787	0	1	30	90	80
    spawn = 1241	2457	4787	0	1	30	90	80
    save and close your done there
    next open up npcdrops.tsm
    Code:
    #shade1
    1246:10	995:10000
    13746:1	13736:1
    #shade2
    1248:10	995:10000
    13750:1	13736:1
    #shade3
    1250:10	995:10000
    13752:1	13736:1
    #shade4
    1241:10	995:10000
    13748:1	13736:1
    ok no open commands.java and add this with the rest
    Code:
    				if (playerCommand.startsWith("spirit")) {//teletowyv
    			    c.teleX = 2463;
    			    c.teleY = 4777;
    				c.getPA().spellTeleport(2463, 4777, 0);
    				
    				c.sendMessage("each shade drops a diffrent sigil and a blessed shield");
                    c.sendMessage("<col=138>gl, and use the sigil on the shield ;o : <img=2>king elf");}
    ok now your done next step is optional
    this if you want it to be multi combat
    open player.java and find
    Code:
    public boolean inMulti()
    and add this
    Code:
    (absX >= 2449 && absX <= 2484 && absY >= 4763 && absY <= 4798) ||
    there you go!

    if you want to request something like this just ask
    here is what you are adding
    spoiler for people i respect
    [SPOIL]galkon, Cocoa, infexis, daza, SWAT, penor, clienthax, k4rn4ge, garyking, Ghost++, kenneh, coder alex, sanity, badger41, vagoo [/SPOIL]
    most epic series [email protected]!!
    [SPOIL]
    [/SPOIL]
    Reply With Quote  
     

  2. #2  
    Registered Member Santi Cazorla's Avatar
    Join Date
    Aug 2009
    Age
    24
    Posts
    1,137
    Thanks given
    258
    Thanks received
    55
    Rep Power
    7
    Not going to use, but Good Job
    Reply With Quote  
     

  3. #3  
    Extreme Donator


    Join Date
    Oct 2006
    Posts
    1,370
    Thanks given
    64
    Thanks received
    197
    Rep Power
    426
    Please change dose to does, annoys the shit out of me.

    Nonetheless, nice snippet I guess.
    [Only registered and activated users can see links. ]


    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    King of the North
    Lord Stark's Avatar
    Join Date
    Jan 2010
    Age
    27
    Posts
    1,071
    Thanks given
    105
    Thanks received
    41
    Rep Power
    28
    Quote Originally Posted by techrosh View Post
    Not going to use, but Good Job
    thanks for the positive comment did u check out my wyerns from a few weeks ago

    Quote Originally Posted by nielsje41 View Post
    Please change dose to does, annoys the shit out of me.

    Nonetheless, nice snippet I guess.
    ah, ty fixed
    spoiler for people i respect
    [SPOIL]galkon, Cocoa, infexis, daza, SWAT, penor, clienthax, k4rn4ge, garyking, Ghost++, kenneh, coder alex, sanity, badger41, vagoo [/SPOIL]
    most epic series [email protected]!!
    [SPOIL]
    [/SPOIL]
    Reply With Quote  
     

  6. #5  
    Registered Member
    jordan641's Avatar
    Join Date
    Apr 2010
    Posts
    1,809
    Thanks given
    70
    Thanks received
    128
    Rep Power
    189
    Nice job but you should rearrange the spawns so none of them walk through the walls
    Reply With Quote  
     

  7. #6  
    King of the North
    Lord Stark's Avatar
    Join Date
    Jan 2010
    Age
    27
    Posts
    1,071
    Thanks given
    105
    Thanks received
    41
    Rep Power
    28
    yea just move that one over one more spot sorry bout that
    spoiler for people i respect
    [SPOIL]galkon, Cocoa, infexis, daza, SWAT, penor, clienthax, k4rn4ge, garyking, Ghost++, kenneh, coder alex, sanity, badger41, vagoo [/SPOIL]
    most epic series [email protected]!!
    [SPOIL]
    [/SPOIL]
    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. Replies: 5
    Last Post: 08-26-2010, 12:51 PM
  2. Replies: 0
    Last Post: 03-10-2009, 08:53 PM
  3. Replies: 22
    Last Post: 05-30-2008, 03:57 AM
  4. [REQ]Dark bow special, Sara GS special[REQ]
    By rofl owned in forum Models
    Replies: 6
    Last Post: 05-04-2008, 12:11 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
  •