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 06-17-2004, 05:33 AM
Duwul Duwul is offline
Registered User
Join Date: Nov 2003
Posts: 105
Duwul is on a distinguished road
help with hasright()

I tried searching on this, but I guess it doesn't work for old threads. Can someone please explain to me how this function works? All help is appreciated.
__________________
-Ajira
Liek, omigosh.
<3 DoomsDay.
Reply With Quote
  #2  
Old 06-17-2004, 05:39 AM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Um... as far as I know, Stefan mentioned that being available in 3.1, which we don't have yet.
__________________
Kat
Reply With Quote
  #3  
Old 06-17-2004, 05:46 AM
Duwul Duwul is offline
Registered User
Join Date: Nov 2003
Posts: 105
Duwul is on a distinguished road
Quote:
Originally Posted by -Ramirez-
Um... as far as I know, Stefan mentioned that being available in 3.1, which we don't have yet.
I remember using it before, but haven't for a while, and it worked on the most recent version. I forgot how it works though =/
__________________
-Ajira
Liek, omigosh.
<3 DoomsDay.
Reply With Quote
  #4  
Old 06-17-2004, 06:12 AM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
if (hasright(rw,WEAPONS/control-NPC)) { set client.has-rw-2-controlnpc; }

__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

Reply With Quote
  #5  
Old 06-17-2004, 06:18 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally Posted by -Ramirez-
Um... as far as I know, Stefan mentioned that being available in 3.1, which we don't have yet.
Which Stefan are YOU talking to
Reply With Quote
  #6  
Old 06-17-2004, 06:58 AM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally Posted by Duwul
I remember using it before, but haven't for a while, and it worked on the most recent version. I forgot how it works though =/
Oh, I assumed (such an evil thing most of the time) that it was only in 3.1 due to a post Stefan made a little while ago.


Quote:
Originally Posted by Python523
Which Stefan are YOU talking to
Who said I talked to him?
__________________
Kat
Reply With Quote
  #7  
Old 06-18-2004, 10:35 PM
Duwul Duwul is offline
Registered User
Join Date: Nov 2003
Posts: 105
Duwul is on a distinguished road
Quote:
Originally Posted by xManiamaNx
if (hasright(rw,WEAPONS/control-NPC)) { set client.has-rw-2-controlnpc; }


Thanks a bunch.

However, how do I check if a person has a certain right checked and not just folder rights?
__________________
-Ajira
Liek, omigosh.
<3 DoomsDay.

Last edited by Duwul; 06-18-2004 at 10:48 PM..
Reply With Quote
  #8  
Old 06-19-2004, 03:50 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally Posted by Duwul
Thanks a bunch.

However, how do I check if a person has a certain right checked and not just folder rights?
I think you can check folder rights only with this current gscript engine.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #9  
Old 06-19-2004, 04:18 AM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
To my knowledge there is no way to see if they have a checked right, only folder rights as osrs said.
__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

Reply With Quote
  #10  
Old 06-19-2004, 02:00 PM
nonis nonis is offline
Registered User
nonis's Avatar
Join Date: May 2004
Posts: 19
nonis is on a distinguished road
Quote:
Originally Posted by xManiamaNx
if (hasright(rw,WEAPONS/control-NPC)) { set client.has-rw-2-controlnpc; }

confusing
Reply With Quote
  #11  
Old 06-19-2004, 03:34 PM
Ningnong Ningnong is offline
Registered User
Ningnong's Avatar
Join Date: Nov 2002
Location: < -- way
Posts: 262
Ningnong is on a distinguished road
Its simple.

Its simply checking for which folder right you have.

1st part:
rw - The person can read and write to that folder.

r - The person can only read the contents of the folder.

The second part is just the route to the folder. i.e. Levels/guilds.

Also: In malinko's post you don't have to set a flag, thats only an example
__________________
Former Global Scripting Team Member


Reply With Quote
  #12  
Old 06-19-2004, 04:09 PM
Malinko Malinko is offline
Unholy Nation
Join Date: Mar 2004
Location: Massachusetts, U.S.A.
Posts: 1,782
Malinko is on a distinguished road
Send a message via AIM to Malinko
Quote:
Originally Posted by Ningnong
Also: In malinko's post you don't have to set a flag, thats only an example
I didn't post in this thread? I think you meant that xManiamaNx =o!
Reply With Quote
  #13  
Old 06-20-2004, 11:10 PM
Ningnong Ningnong is offline
Registered User
Ningnong's Avatar
Join Date: Nov 2002
Location: < -- way
Posts: 262
Ningnong is on a distinguished road
Wow I really have a problem of skim-reading x.x

Sorry.
__________________
Former Global Scripting Team Member


Reply With Quote
  #14  
Old 06-20-2004, 11:12 PM
Malinko Malinko is offline
Unholy Nation
Join Date: Mar 2004
Location: Massachusetts, U.S.A.
Posts: 1,782
Malinko is on a distinguished road
Send a message via AIM to Malinko
That's what you get for doing...DRUGS! *Hears screaming the background*...O_o...I'll shut up.
Reply With Quote
  #15  
Old 06-20-2004, 11:29 PM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
if (hasright(WEAPONS/Ning/Drugs)) { disconnectplayerfordoingdrugs(); }

__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

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 02:24 PM.


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