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.
|
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
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.
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?
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");
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."); } }
change the barrage timer...
Try addingCode:castOnPlayer.teleportToX = castOnPlayer.absX; castOnPlayer.teleportToY = castOnPlayer.absY;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |