Thread: ice spells freeze, npc's

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1 ice spells freeze, npc's 
    rukia
    Guest
    Purpose: to mkae ice spells freeze npc's in place

    Server Base: p16 should work on all tho

    Difficulty: 1/10

    Assumed Knowledge: copy + paste/ctrl +f

    credits: this is 100% me, i dont remember seeing it anywere else=\

    ANTI-LEECH

    ok to get started go into your NPCHandler.java and search for

    Code:
            npcs[NPCID].RandomWalk = false;
    right under it add this:

    Code:
        if((npcs[NPCID].npcType != 2745 && npcs[NPCID].npcType != 3777 && npcs[NPCID].npcType != 3778 && npcs[NPCID].npcType != 3779 && npcs[NPCID].npcType != 3780 ) && npcs[NPCID].Frozentimer == 0) {//R
    once again search for

    Code:
            npcs[NPCID].RandomWalk = false;
    and under that one also put

    Code:
       if((npcs[NPCID].npcType != 2745 && npcs[NPCID].npcType != 3777 && npcs[NPCID].npcType != 3778 && npcs[NPCID].npcType != 3779 && npcs[NPCID].npcType != 3780 ) && npcs[NPCID].Frozentimer == 0) {//U
    after that search for:

    Code:
    		for (int i = 0; i < maxNPCs; i++) {
    			if (npcs[i] != null) {
    				if (npcs[i].actionTimer > 0) {
    					npcs[i].actionTimer--;
    				}
    right under it add this:

    Code:
    				if (npcs[i].Frozentimer > 0) {
    					npcs[i].Frozentimer--;//K
    				}
    now save your npchandler and exit out
    next open up your NPC.java and search for

    Code:
    	public boolean RandomWalk;
    directly under it add

    Code:
    	public int Frozentimer = 0;//IA
    save that and exit that

    now to make it to were the spells freeze, open up your client.java search for magic on npc

    then search for , ice rush, ice burst, ice blitz, and ice barrage

    under each of those spells you should see something like this

    Code:
    		if(magicID == 12891) {// ice barrage
        			if(playerLevel[6] >= 94) {
    			stillgfx(369, EnemyY2, EnemyX2);
    			stillgfx(366, absY, absX);
    			hitDiff = 0 + misc.random(30);
    			teleportToX = absX;
    			teleportToY = absY;
    	        addSkillXP((52*hitDiff), playerMagic);
                setAnimation(1979);
    			} else {
    				sendMessage("You do need a magic level of 94 to cast this spell");
    			}
    		}
    under the

    Code:
    			teleportToX = absX;
    			teleportToY = absY;
    add

    Code:
    			server.npcHandler.npcs[npcIndex].Frozentimer = #;
    under each of the ice spells and there u have it save and compile and enjoy

    also were the # is change that to the number of seconds u want the spell to hold the npc so if u want 20 sec replace # with 20 me like rep
     

  2. #2  
    my rep is h4x0r3d


    Join Date
    Dec 2006
    Posts
    1,760
    Thanks given
    10
    Thanks received
    8
    Rep Power
    207
    This is actually good. All the other "frozen" timers didnt work. I think this is legit lol. If my source doesn't have working frozenTimers ill add this one

    EDIT: Oh wait, it's only for npc's
    Quote Originally Posted by super_ View Post
    this is shit. you are shit. gtfo retard.
     

  3. #3  
    rukia
    Guest
    i have great one for casting on players to ill post if meanys dont talk crap about my 2nd tut
     

  4. #4  
    Rukin1


    Rukin1's Avatar
    Join Date
    Apr 2007
    Age
    28
    Posts
    5,003
    Thanks given
    228
    Thanks received
    229
    Discord
    View profile
    Rep Power
    4179
    added to my server
     

  5. #5  
    rukia
    Guest
    hope you like it thnx for comments
     

  6. #6  
    moparknows
    Guest
    Hey this is pretty good thanx
     

  7. #7  
    ....huh?

    Edge's Avatar
    Join Date
    Apr 2007
    Age
    27
    Posts
    1,103
    Thanks given
    3
    Thanks received
    2
    Rep Power
    329
    Doesn't work, gives me 3 errors
     

  8. #8  
    rukia
    Guest
    post the errors and ic an help its been working for other people
     

  9. #9  
    Dead S1lence
    Guest
    Nice Tut, Rep+
     

  10. #10  
    Donator


    Join Date
    Jul 2007
    Age
    28
    Posts
    146
    Thanks given
    12
    Thanks received
    3
    Rep Power
    135
    Nice! i would use but im a compleate nub to prive servers!
    I thought what I'd do was, I'd pretend I was one of those deaf-mutes. That way I wouldn't have to have any goddam stupid useless conversations with anybody. If anybody wanted to tell me something, they'd have to write it on a piece of paper and shove it over to me. They'd get bored as hell doing that after a while, and then I'd be through with having conversations for the rest of my life.
     

Page 1 of 3 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. Instant Freeze - Ice Spells
    By Savy` in forum Help
    Replies: 7
    Last Post: 04-19-2010, 07:47 PM
  2. How long do these spells freeze you for?
    By Ecstasy in forum Help
    Replies: 3
    Last Post: 08-14-2009, 06:07 AM
  3. making ice spells not re freeze
    By pure barrage in forum Tutorials
    Replies: 1
    Last Post: 05-08-2008, 06:41 PM
  4. Ice spells freeze npcs like real rs
    By rukia in forum Tutorials
    Replies: 14
    Last Post: 09-06-2007, 01:26 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
  •