Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   help with hasright() (https://forums.graalonline.com/forums/showthread.php?t=53208)

Duwul 06-17-2004 05:33 AM

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.

-Ramirez- 06-17-2004 05:39 AM

Um... as far as I know, Stefan mentioned that being available in 3.1, which we don't have yet.

Duwul 06-17-2004 05:46 AM

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 =/

xManiamaNx 06-17-2004 06:12 AM

if (hasright(rw,WEAPONS/control-NPC)) { set client.has-rw-2-controlnpc; }

:)

Python523 06-17-2004 06:18 AM

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

-Ramirez- 06-17-2004 06:58 AM

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?

Duwul 06-18-2004 10:35 PM

Quote:

Originally Posted by xManiamaNx
if (hasright(rw,WEAPONS/control-NPC)) { set client.has-rw-2-controlnpc; }

:)


Thanks a bunch. :D

However, how do I check if a person has a certain right checked and not just folder rights?

osrs 06-19-2004 03:50 AM

Quote:

Originally Posted by Duwul
Thanks a bunch. :D

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.

xManiamaNx 06-19-2004 04:18 AM

To my knowledge there is no way to see if they have a checked right, only folder rights as osrs said.

nonis 06-19-2004 02:00 PM

Quote:

Originally Posted by xManiamaNx
if (hasright(rw,WEAPONS/control-NPC)) { set client.has-rw-2-controlnpc; }

:)

confusing :confused:

Ningnong 06-19-2004 03:34 PM

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 :)

Malinko 06-19-2004 04:09 PM

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!

Ningnong 06-20-2004 11:10 PM

Wow I really have a problem of skim-reading x.x

Sorry.

Malinko 06-20-2004 11:12 PM

That's what you get for doing...DRUGS! *Hears screaming the background*...O_o...I'll shut up.

xManiamaNx 06-20-2004 11:29 PM

if (hasright(WEAPONS/Ning/Drugs)) { disconnectplayerfordoingdrugs(); }

:)

osrs 06-21-2004 02:40 AM

I think it is an useless thing, why would anyone use it? hehe.

xManiamaNx 06-24-2004 06:41 AM

The command? Its more useful than some people may think.


All times are GMT +2. The time now is 10:53 PM.

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