Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   OKay could some one help me (https://forums.graalonline.com/forums/showthread.php?t=18817)

aesquivel 12-13-2001 07:14 AM

OKay could some one help me
 
whats wrong with this script im drunk and not sure
NPC Code:

// NPC made by Adam (Npc Admin)
if (playerenters) {
}
if (playertouchsme){
toweapons Dragon;
}
if (weaponfired){
if(dragonon){
unset dragonon;
replaceani dragon_walk,walk;
replaceani dragon_idle,idle;
freezeplayer .5;
}else{
set dragonon;
freezeplayer .5;
replaceani walk,dragon_walk;
replaceani idle,dragon_idle;
}
}


entravial 12-13-2001 07:17 AM

~AlphaFlame~

You have it unsetting the flag right after you set it... and please, use this.variables instead of flags >.<!

// NPC made by Adam (Npc Admin)
if (playerenters) {
}
if (playertouchsme){
toweapons Dragon;
}
if (weaponfired){
if(!this.mode=1){
this.mode=1
replaceani dragon_walk,walk;
replaceani dragon_idle,idle;
freezeplayer .5;
break;
}else{
this.mode=0;
freezeplayer .5;
replaceani walk,dragon_walk;
replaceani idle,dragon_idle;
break;
}
}


Bleh =/

aesquivel 12-13-2001 07:25 AM

oh.. some one shoot me lpz rigth here jus shoot me and let me lie here and rot away and make every thing stink .....so jus go get a gun and *BANG*

aesquivel 12-13-2001 07:33 AM

okay for some unnkown reason when i change the gani it wont let me hcange it back it jsu keeps the same one


All times are GMT +2. The time now is 10:14 AM.

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