Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-06-2006, 09:08 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
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
(Please fix putexplosion and putexplosion2 to work on the gmap!)
__________________
Reply With Quote
  #2  
Old 10-06-2006, 09:09 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Pfft, who said anything about a gmap?
__________________
Reply With Quote
  #3  
Old 10-06-2006, 09:37 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
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.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #4  
Old 10-07-2006, 01:09 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by xXziroXx View Post
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?
Reply With Quote
  #5  
Old 10-07-2006, 01:23 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
I have it working on mine before it my gmap went ca-pluey.
__________________
Deep into the Darkness peering...
Reply With Quote
  #6  
Old 10-07-2006, 01:24 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by KuJi View Post
I am pretty sure it does o.O?
I recall it working on GMAPs aswell, but I know it didnt for quite some time.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #7  
Old 10-07-2006, 02:04 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Yeah!
Reply With Quote
  #8  
Old 10-07-2006, 09:16 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Wait so it works on gmaps? :o
__________________
Reply With Quote
  #9  
Old 10-07-2006, 11:13 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
Originally Posted by xAndrewx View Post
Wait so it works on gmaps? :o
GMAPs have co-ordinates of 100+ depending on the size.
__________________
V$:CONFL16T
Reply With Quote
  #10  
Old 10-07-2006, 01:40 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Quote:
Originally Posted by WanDaMan View Post
GMAPs have co-ordinates of 100+ depending on the size.
Which is why you need functions like getMapX(player.level) and getMapY(player.level)
Reply With Quote
  #11  
Old 10-07-2006, 04:08 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
player.chat = player.x % 64 SPC player.y % 64;

w1n?
Reply With Quote
  #12  
Old 10-09-2006, 03:18 AM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
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 --; 
  }  

Reply With Quote
  #13  
Old 10-11-2006, 05:09 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Prozac View Post
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.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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