Graal Forums

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

hotrian 04-16-2005 03:21 AM

Gmap explosions
 
Dunno, has anyone figured it out?








Well i have ^^
this is a script that uses projectiles so #p(0) and #p(1) are from actionprojectile2
NPC Code:

for (this.x=strtofloat(#p(0));this.x>64;this.x-=64) {}
for (this.y=strtofloat(#p(1));this.y>64;this.y-=64) {}
setplayerprop #c,#v(this.x) #v(this.y);
putexplosion 1,this.x,this.y;



Did anyone already know this :O? or am i the first :rolleyes:?

Dach 04-16-2005 04:07 AM

PHP Code:

.
   
this.strtofloat(#p(0))%64;
   
this.strtofloat(#p(1))%64;
   
putexplosion 1,this.x,this.y

I never really cared to try actually.

coreys 04-16-2005 07:01 PM

Cool


All times are GMT +2. The time now is 11:20 AM.

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