Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-30-2001, 04:09 AM
Death_Sythe Death_Sythe is offline
Registered User
Join Date: Aug 2001
Location: PA:USA
Posts: 81
Death_Sythe is on a distinguished road
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
__________________
Trunks
Manatra2001 Owner
GP Asst. Chief on Sanstrata
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:59 PM.


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