Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help on a script (https://forums.graalonline.com/forums/showthread.php?t=35104)

Dustey4Ever 08-05-2002 09:57 AM

Help on a script
 
Why will this only work once and then stop working?
NPC Code:

if (created) {
setshape 1,32,32;
this.apos = {1.5,0, -0.5,1.5, 1.5,4, 3.5,1.5};
this.x = playerx;
this.y = playery;
this.dir = playerdir;
}
if (playertouchsme) {
toweapons weapon_Dagger;
}
if (weaponfired){
hitobjects 0.5,this.x+this.apos[this.dir*2],
this.y+this.apos[this.dir*2+1];
freezeplayer .4;
setani sword,wbow1.png;
}


thx

Kyle_2002 08-05-2002 09:59 AM

It's working fine for me.

Dustey4Ever 08-05-2002 10:00 AM

Quote:

Originally posted by Kyle_2002
It's working fine for me.
It works repeative?

Kyle_2002 08-05-2002 10:05 AM

Yeah.
Tell me what happens for you?

Dustey4Ever 08-05-2002 10:17 AM

Quote:

Originally posted by Kyle_2002
Yeah.
Tell me what happens for you?

o nm it works now ;)

Kyle_2002 08-05-2002 10:18 AM

haha, was there even a problem?

zorakid2001 08-07-2002 01:26 AM

It doesnt work!! it hurts baddys only noce!!!!!!!!!


All times are GMT +2. The time now is 03:53 AM.

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