Thread: Freezing When Gfx hits?

Results 1 to 9 of 9
  1. #1 Freezing When Gfx hits? 
    'Craig
    Guest
    Hai. Im trying to make something out of summon pkz. Fixing its many bugs is where i am starting.

    Heres one.

    When you e.g. barrage some one and they are running, the gfx or the ice block around them is on them but they keep running to where they clicked. Then they are froze there.

    Any ideas how to make it so that when the gfx hits, the player freezes?



    Thanks.

    'Craig
     

  2. #2  
    Banned

    Join Date
    Feb 2008
    Posts
    592
    Thanks given
    0
    Thanks received
    21
    Rep Power
    0
    its easy but why you want to do that?

    in rs when you use barrage on player it freeze right when you use not when the gfx touch the player.
     

  3. #3  
    'Craig
    Guest
    I know. But i didnt think it was possible to make it like that on a p server.

    Can you help me do either way?
     

  4. #4  
    Banned

    Join Date
    Dec 2006
    Age
    28
    Posts
    2,196
    Thanks given
    5
    Thanks received
    23
    Rep Power
    0
    put the "freeze = true;" or w\e at the very very top of the method e.g.

    Code:
    freeze = true;
    stillGfxOnPlayer(8x3, 1);
    sendMessage("Hairy man nipples");
     

  5. #5  
    'Craig
    Guest
    in this part?

    Code:
      if (spellID == 12891) // ice barrage (lvl 94 spell) 
    	    {
                    if (playerLevel[6] >= 94) {
                        if ((playerHasItemAmount(560, 4) == false)
                                || (playerHasItemAmount(565, 2) == false)
                                || (playerHasItemAmount(555, 6) == false)) {
                            sendMessage(
                                    "You do not have enough runes to cast this spell.");
                        } else if ((playerHasItemAmount(560, 4) == true)
                                && (playerHasItemAmount(565, 2) == true)
                                && (playerHasItemAmount(555, 6) == true)) {
                            startAnimation(1979);    
                            castOnPlayer.inCombat();
    			castOnPlayer.resetGFX(369, castOnPlayer.absX, castOnPlayer.absY);
    			//frame174(1111, 000, 000);
    			castOnPlayer.//frame174(1111, 000, 000);
                            sendMessage("You freeze the enemy!");
                            barrageTimer = 3;
    			barragesoundtimer = 4;
    			castOnPlayer.barragesoundtimer = 4;
                            barrageHit = true;
    			LoopHitDelay = 5;
                            ////frame174(1111, 050, 000); // ice cast sound
                            deleteItem(560, getItemSlot(560), 4); 
                            deleteItem(565, getItemSlot(565), 2); 
                            deleteItem(555, getItemSlot(555), 6);  
                            forceWalk(0, 0);
                            if (MageHit(playerIndex)) {
                                client p = (client) server.playerHandler.players[index];
    
                                castOnPlayer.entangle();
                                castOnPlayer.forceWalk(0, 0);
                            }
                        }
    
                    } else if (playerLevel[6] <= 93) {
                        sendMessage(
                                "You need a magic level of 94 to cast this spell.");
    
                    }
                }
    ?
     

  6. #6  
    Registered Member
    Join Date
    Jul 2008
    Posts
    430
    Thanks given
    6
    Thanks received
    29
    Rep Power
    12
    change the barrage timer...
     

  7. #7  
    'Craig
    Guest
    Quote Originally Posted by solcrystal View Post
    change the barrage timer...
    That just makes the gfx hit apear faster.

    Need it to freeze when you cast the spell or as soon as the gfx hits. Not freeze when it gets to where it clicked to

     

  8. #8  
    Registered Member
    Auruo's Avatar
    Join Date
    Mar 2008
    Age
    32
    Posts
    750
    Thanks given
    21
    Thanks received
    15
    Rep Power
    499
    Try adding
    Code:
    		castOnPlayer.teleportToX = castOnPlayer.absX;
    		castOnPlayer.teleportToY = castOnPlayer.absY;
     

  9. #9  
    'Craig
    Guest
    Quote Originally Posted by Auruo View Post
    Try adding
    Code:
    		castOnPlayer.teleportToX = castOnPlayer.absX;
    		castOnPlayer.teleportToY = castOnPlayer.absY;

    wow i love you. In a friendly and a manly way

    Works like a charm. rep++ because im feeling happy
     


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
  •