Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-31-2006, 06:56 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
hasright() usage

How exactly is hasright() used?
I've been playing around with it, and the only way I got it to return true was hasright("rw",folder);
However, it always returns true, even if I give it an imaginary folder. I don't have */*, */*/*, and so on.
Reply With Quote
  #2  
Old 02-02-2006, 03:50 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Yen
How exactly is hasright() used?
I've been playing around with it, and the only way I got it to return true was hasright("rw",folder);
However, it always returns true, even if I give it an imaginary folder. I don't have */*, */*/*, and so on.
Are you attempting to use it clientside, or serverside?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #3  
Old 02-02-2006, 08:07 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Serverside
Reply With Quote
  #4  
Old 02-03-2006, 12:39 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Are you escaping the / in */* ?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #5  
Old 02-03-2006, 01:01 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Why would you need to escape /?
Reply With Quote
  #6  
Old 02-03-2006, 01:10 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
O-o No I'm not.
Maybe I should try player.hasright() :/
Reply With Quote
  #7  
Old 02-03-2006, 09:24 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Rick
Why would you need to escape /?
Not sure about in the new engine, but the old engine always interpreted /* as the start of a comment block when I tried hasright(rw, */*);
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #8  
Old 02-03-2006, 10:16 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
...

why are you leaving your strings naked?!

PHP Code:
hasright("rw""*/*"); 
!!!!
Reply With Quote
  #9  
Old 02-05-2006, 11:10 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Rick
...

why are you leaving your strings naked?!

PHP Code:
hasright("rw""*/*"); 
!!!!
Quote:
Originally Posted by ApothiX
Not sure about in the new engine, but the old engine always interpreted /* as the start of a comment block when I tried hasright(rw, */*);
>:P
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
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 01:18 AM.


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