Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   my messed up script (https://forums.graalonline.com/forums/showthread.php?t=61073)

excaliber7388 09-07-2005 11:46 PM

my messed up script
 
:rolleyes:
another script problem, this is for offline now, but I will put it online. I want the GFX crosshair appear at the mouse, and move with it. But it only appears, it doesn't follow, >_< what's wrong?

NPC Code:
//NPC made By Excaliber
if(playerenters){
toweapons Fireball
}
if(weaponfired){
set shooting;timeout=.05;
if(shooting && timeout && isweapon){
showimg 300,dr-crosshairs.png,mousex,mousey;
timeout=.05;}
if(shooting && mousedown && leftmousebutton){
hitobjects 1,mousex,mousey;
unset shooting
}
}


Riot 09-08-2005 12:12 AM

You have everything in the weaponfired event... You cannot do that and get the results you expected.

excaliber7388 09-08-2005 12:15 AM

thanks, it works now XD, is there any way to hide the mouse while this is happening?

Ajira 09-08-2005 12:44 AM

setcursor ,;

excaliber7388 09-08-2005 02:19 AM

doesn't work x_x it says that the expected format is setcursor real;

Ajira 09-08-2005 03:21 AM

Quote:

Originally Posted by excaliber7388
doesn't work x_x it says that the expected format is setcursor real;

Oh, then they changed it. Then just put setcursor ;

excaliber7388 09-08-2005 03:28 AM

nope, anyway, it's not important, this is by biggest problem right now anyway
http://forums.graalonline.com/forums...ad.php?t=60975
:D


All times are GMT +2. The time now is 01:54 AM.

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