Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Dragon (https://forums.graalonline.com/forums/showthread.php?t=13421)

Aknts 09-30-2001 01:44 PM

Dragon
 
funnylink-
NPC Code:
// NPC made by Funnylink
if (playerenters) {
}
if (playertouchsme) {toweapons Dragon
}
if (weaponfired&&!dragon) {
set dragon;
replaceani idle,dragon_idle;
replaceani walk,dragon_walk;
replaceani hurt,dragon_idle;
replaceani sword,dragon_attack;
replaceani push,dragon_fire;
replaceani sleep,dragon_idle;
replaceani swim,dragon_idle;
replaceani lava,dragon_idle;
replaceani pull,dragon_idle;
replaceani hurt,dragon_idle;
sleep 1;
}
if (weaponfired&&dragon) {
unset dragon;
replaceani walk,walk;
replaceani hurt,hurt;
replaceani sword,sword;
replaceani push,push;
replaceani sleep,sleep;
replaceani swim,swim;
replaceani lava,lava;
replaceani pull,pull;
replaceani idle,idle;
replaceani hurt,hurt;
sleep 1;
}


i made this but it jus wont let me hert when fire is used and i need it so a makes fire come out thankx

G_yoshi 09-30-2001 01:56 PM

Re: Dragon
 
Quote:

Originally posted by Aknts
funnylink-
NPC Code:
// NPC made by Funnylink
if (playerenters) {
}
if (playertouchsme) {toweapons Dragon
}
if (weaponfired&&!dragon) {
set dragon;
replaceani idle,dragon_idle;
replaceani walk,dragon_walk;
replaceani hurt,dragon_idle;
replaceani sword,dragon_attack;
replaceani push,dragon_fire;
replaceani sleep,dragon_idle;
replaceani swim,dragon_idle;
replaceani lava,dragon_idle;
replaceani pull,dragon_idle;
replaceani hurt,dragon_idle;
sleep 1;
}
if (weaponfired&&dragon) {
unset dragon;
replaceani walk,walk;
replaceani hurt,hurt;
replaceani sword,sword;
replaceani push,push;
replaceani sleep,sleep;
replaceani swim,swim;
replaceani lava,lava;
replaceani pull,pull;
replaceani idle,idle;
replaceani hurt,hurt;
sleep 1;
}


i made this but it jus wont let me hert when fire is used and i need it so a makes fire come out thankx

btw, you might want to check your code there.
replaceani hurt,dragon_idle; should be replaceani hurt,dragon_fire; or replaceani hurt,dragon_attack;

Also, Graal's engine uses animation detection and executes the hurt part of the attack when the player swings his/her sword (my limited knowledge).

Bhala 09-30-2001 08:32 PM

Re: Re: Dragon
 
Quote:

Originally posted by G_yoshi
Also, Graal's engine uses animation detection and executes the hurt part of the attack when the player swings his/her sword (my limited knowledge).
your right...which really sux when you think your baddy is hurting the player but then you find out that its doing jack...& jack wasnt happy about that....:p


All times are GMT +2. The time now is 07:05 AM.

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