Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Prevent Hurting Continued.... (https://forums.graalonline.com/forums/showthread.php?t=10746)

Death_Sythe 08-30-2001 04:09 AM

Prevent Hurting Continued....
 
The person who made up the first script is alittle buggy, you dont set this. scripts that is soemthing that is auto set when you use this.on=0 and this.on=1. So here is the non buggy system for it.

// NPC made by Trunks
if (playertouchsme) {toweapons Invincable;
}
if (weaponfired&&!this.on=1) {
this.on=1;
setplayerprop #c,On.;
}
else
if (weaponfired&&this.on=1) {
this.on=0;
setplayerprop #c,Off.;
}
while (this.on=1) {
if (playerhearts<playerfullhearts) {
playerhearts=playerfullhearts;
}
}

So that is the perfect system for it

entravial 08-30-2001 04:14 AM

Uhh... lmao... perfect my azz... use this...

if (weaponfired){this.mode=abs(this.mode-1);}
if (playerhurt && this.mode=1){playerhearts=playerfullhearts;}

Tada! Anti lag, and anti space XD

Sheesh, you people and your long scripts :-P

As Kaimetsu (WE LOVE YOU KAIMETSU!! XD) says... not in these exact words, but smaller is better! Or is that a car commercial backwards? *shrug* The world may never know

[edit]
Just what is that else in your script for anyway? Plus the while is not neccesary really...
[/edit]

entravial 08-30-2001 04:35 AM

*sighs*

Hey, wait a moment...

YOU HELPED SOMEBODY!!!!

*looks around totally expecting to see frozen fires bursting from the ground*

Death_Sythe 08-30-2001 04:43 AM

oh well...
 
It was a try though!

entravial 08-30-2001 04:46 AM

Death Sythe... from XOne? o.o

Death_Sythe 08-30-2001 04:55 AM

nope...
 
I am really Trunks the owner of Manatra2001 I bought another P2P account sense my cell424 account dont work on the fourms.

AlexH 08-30-2001 05:10 AM

Kaimetsu always helps people
he never makes full scripts for people
but if your stuck he'll explain how to do it and if hes in a good mood he may even show you how to do it


All times are GMT +2. The time now is 05:23 PM.

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