Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Giving Keys (https://forums.graalonline.com/forums/showthread.php?t=21264)

lordhelmut 01-16-2002 07:12 AM

Giving Keys
 
Alright im trying to make a script so that there is a server flag such as server.people=bob,david,susan,will
and each one is an account name. Im trying to make it so that bob is the only account who can give keys and stuff. How would I make it so it checked if the player saying givekey or whatever was the same account as the first person on the list it would do the action?

MeoDea 01-16-2002 07:56 AM

I pretty sure it would be...

if (server.people[1]=bob) { code; }

Saga2001 01-16-2002 11:32 AM

hey.
helmut.
i finished the player house system, i just had to remake it cause it was bein screwy. so you have no need to.
but it would be.
to add keys:
addstring server.people,#a;
remove:
removestring server.people,#a;
see if can give key:
this.place = lindexof(server.people,#a);
if (this.place==0) {}
else {}
soooo... :-D just ask me for the playerhouse system. i have been trying to get in contact with you, but you sleep too much.

lordhelmut 01-16-2002 06:57 PM

LOL, Thanks man. I will get on today and be on from 3 till 9 prolly


All times are GMT +2. The time now is 09:50 PM.

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