Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Old ''classic'' Graal (https://forums.graalonline.com/forums/showthread.php?t=69209)

xAndrewx 10-06-2006 09:08 PM

Old ''classic'' Graal
 
I'm kinda tired of this new age Graal, let's bring back putexplosion and make them work on the GMAP!
Who's with me :cool:
(Please fix putexplosion and putexplosion2 to work on the gmap!)

Crono 10-06-2006 09:09 PM

Pfft, who said anything about a gmap?

xXziroXx 10-06-2006 09:37 PM

While we're at it lets bring back GS1 as main scripting language!1!!!1!!1

No but seriously, putexplosion could easily by scripted.. but I dont really see a reason for why it wasnt made to work on GMAPs.

KuJi 10-07-2006 01:09 AM

Quote:

Originally Posted by xXziroXx (Post 1226842)
While we're at it lets bring back GS1 as main scripting language!1!!!1!!1

No but seriously, putexplosion could easily by scripted.. but I dont really see a reason for why it wasnt made to work on GMAPs.

I am pretty sure it does o.O?

Angel_Light 10-07-2006 01:23 AM

I have it working on mine before it my gmap went ca-pluey.

xXziroXx 10-07-2006 01:24 AM

Quote:

Originally Posted by KuJi (Post 1226929)
I am pretty sure it does o.O?

I recall it working on GMAPs aswell, but I know it didnt for quite some time.

excaliber7388 10-07-2006 02:04 AM

Yeah! :D

xAndrewx 10-07-2006 09:16 AM

Wait so it works on gmaps? :o

WanDaMan 10-07-2006 11:13 AM

Quote:

Originally Posted by xAndrewx (Post 1227060)
Wait so it works on gmaps? :o

:noob: GMAPs have co-ordinates of 100+ depending on the size.

Twinny 10-07-2006 01:40 PM

Quote:

Originally Posted by WanDaMan (Post 1227108)
:noob: GMAPs have co-ordinates of 100+ depending on the size.

Which is why you need functions like getMapX(player.level) and getMapY(player.level)

KuJi 10-07-2006 04:08 PM

player.chat = player.x % 64 SPC player.y % 64;

w1n?

Prozac 10-09-2006 03:18 AM

slighlty more helpful than one line is a working script here, that every server should come with anyways:

PHP Code:

//#CLIENTSIDE
function onWeaponFired() { 
  if (
player.bombs 0) { 
  
setani("lay"""); 
  
freezeplayer(0.2); 
  if (
isOnMap) { 
  
temp.px player.- (64 getMapX(player.level)) + 0.5 vecx(player.dir)*2
  
temp.py player.- (64 getMapY(player.level)) + 0.5 vecy(player.dir)*2
  
putBomb(1temp.pxtemp.py); 
  } 
  else { 
  
putbomb(1,player.vecx(player.dir)*2player.0.5 vecy(player.dir)*2); 
   } 
  
player.bombs --; 
  }  



ApothiX 10-11-2006 05:09 AM

Quote:

Originally Posted by Prozac (Post 1228195)
slighlty more helpful than one line is a working script here, that every server should come with anyways:

PHP Code:

//#CLIENTSIDE
function onWeaponFired() { 
  if (
player.bombs 0) { 
  
setani("lay"""); 
  
freezeplayer(0.2); 
  if (
isOnMap) { 
  
temp.px player.- (64 getMapX(player.level)) + 0.5 vecx(player.dir)*2
  
temp.py player.- (64 getMapY(player.level)) + 0.5 vecy(player.dir)*2
  
putBomb(1temp.pxtemp.py); 
  } 
  else { 
  
putbomb(1,player.vecx(player.dir)*2player.0.5 vecy(player.dir)*2); 
   } 
  
player.bombs --; 
  }  



Don't think you need the whole isOnMap check. I thought getMapX/Y returned 0 if they weren't on a gmap.


All times are GMT +2. The time now is 10:25 PM.

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