Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   findLevel, not gmap :O (https://forums.graalonline.com/forums/showthread.php?t=134259955)

12171217 07-25-2010 11:19 PM

findLevel, not gmap :O
 
Is there a way to make findLevel return the actual level instead of the gmap the player's on?

cbk1994 07-25-2010 11:30 PM

I usually put this into a player class:

PHP Code:

public function getPreciseLevelName() {
  if (
this.level.name.ends(".gmap")) {
    return 
this.level.getmappartfile(this.xthis.y);
  }
  
  return 
this.level.name;



12171217 07-26-2010 02:03 AM

Thanks!

iSlayer 07-26-2010 03:35 AM

I asked Downsider for help and he said he couldn't script, then he put his UN scripting tag on and he said it was impossible to remove the classic hearts

cbk1994 07-26-2010 04:06 AM

Quote:

Originally Posted by iSlayer (Post 1589604)
I asked Downsider for help and he said he couldn't script, then he put his UN scripting tag on and he said it was impossible to remove the classic hearts

Scripters are not your personal slaves. If you have a question and actually want to learn to script, post it in the scripting section or find a mentor. It sounds to me like you're begging scripts instead of learning to write them yourself.

12171217 07-26-2010 09:52 AM

Quote:

Originally Posted by cbk1994 (Post 1589610)
Scripters are not your personal slaves. If you have a question and actually want to learn to script, post it in the scripting section or find a mentor. It sounds to me like you're begging scripts instead of learning to write them yourself.

Indeed, I'm sick of people asking me how to do something every five seconds.

Crow 07-26-2010 10:00 AM

Quote:

Originally Posted by 12171217 (Post 1589643)
indeed, i'm sick of people asking me how to do something every five seconds.

+1


All times are GMT +2. The time now is 05:07 PM.

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