Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-05-2007, 02:10 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
gmap location

Is there an variable saying what gmap you are on, or a function to check what gmap you are on?

for example

PHP Code:
if (isonGmap("overworld"))
  
seteffect(0000.1);
else
  if (
isonGmap("cave"))
    
seteffect(0000.5); 
Is there a function or variable which can help me do this?
__________________
Reply With Quote
  #2  
Old 04-05-2007, 02:47 PM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
I think you can work magic with pos(), I've seen it done before
Reply With Quote
  #3  
Old 04-05-2007, 03:09 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Rapidwolve View Post
I think you can work magic with pos(), I've seen it done before
Only if the gmap format has "_" in it :]
Some gmap format are like "overworldab-01.nw" or "overworlda5.nw" etc..
__________________
Reply With Quote
  #4  
Old 04-05-2007, 03:24 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
Reading player.level serverside tells you what gmap you are on. The other option is found in player.gmap.name clientside
Reply With Quote
  #5  
Old 04-05-2007, 03:31 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Twinny View Post
Reading player.level serverside tells you what gmap you are on. The other option is found in player.gmap.name clientside
Just what I needed!
It has a small delay, but that won't stop me

Thanks
__________________
Reply With Quote
  #6  
Old 04-05-2007, 03:37 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 Chompy View Post
Just what I needed!
It has a small delay, but that won't stop me

Thanks
The clientside method has no delay
Reply With Quote
  #7  
Old 04-05-2007, 03:49 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
PHP Code:
player.level.name 
serverside, returns the gmap name.
Just thought I'd add this
Reply With Quote
  #8  
Old 04-05-2007, 04:41 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Twinny View Post
The clientside method has no delay
Has a little delay with big gmaps :[
__________________
Reply With Quote
Reply


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 07:50 PM.


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