Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   NOT go back when hurt (https://forums.graalonline.com/forums/showthread.php?t=15966)

Vinvect 11-02-2001 04:28 AM

NOT go back when hurt
 
how do u NOT go back when u get hurt?
ive treid :
if(playerenters){
toweapons *No Go Back;
}
if(washit||wasshot||exploded||waspelt){
playerx=x;
playery=y;
sleep.1;
playerx=x;
playery=y;
sleep.1;
}
and stuf leik that....

Poogle 11-02-2001 04:31 AM

Re: NOT go back when hurt
 
Wrong commands lol washit is for NPC

grim_squeaker_x 11-02-2001 04:32 AM

NPC Code:
if (playerenters) toweapons -EEK You aren't moving when you get hurt.;
if (playerhurt) {
playerhurtdx=0;
playerhurtdy=0;
}


I don't know if that actually works though.

btedji 11-02-2001 05:14 AM

record the playershearts and if the hearts go lower then freezeplayer

TDO2000 11-02-2001 06:38 AM

Quote:

Originally posted by btedji
record the playershearts and if the hearts go lower then freezeplayer
I thinks Grims way is much more effective *laying down on the floor an praying to the great grim*

Faheria_GP2 11-02-2001 08:12 AM

if (timeout) {
if (strequals(#m,hurt)) {
playerhurtdx=0;
playerhurtdy=0;
}
timeout=.05;
}

now get on your feet and pray to *ME*

Xaviar 11-03-2001 02:25 AM

Quote:

Originally posted by Faheria_GP2
if (timeout) {
if (strequals(#m,hurt)) {
playerhurtdx=0;
playerhurtdy=0;
}
timeout=.05;
}

now get on your feet and pray to *ME*

Why would we bow to that? #1, you ripped off Grim's...And #2, that eats alot more processor time than it needs to


All times are GMT +2. The time now is 10:22 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.