Graal Forums

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

darkriders_p2p 02-01-2002 04:46 AM

addjury
 
Hey is there a way I can make a jury thing where a GP says "account" in spot (1-6) it would add a string or flag to that account so they don't physically have to go in and edit the flaglist?
This is for a non-p2p.

Dustey 02-01-2002 06:36 AM

with scripting u can do almost anything.... here is howi would do it make 6-7 npcs where u want the playerto go then use get player...

here i will start u off

Quote:

if (playerchats&&strcontains(#c,Add Jury To 1)&&strequals(#g,GP)) {
tokenize #c;
thats as far as i feel like going... cus im lazy... and no one else bothered to help.. maybe someone will post cus ur at the top... its nice if u post part of ur script if im wrong up there with my idea tell me

Shard_IceFire 02-01-2002 06:44 AM

Well here is what I would do (not sure if it would work):
NPC Code:

//here is the chatting script
if (playerchats&&startswith(addjury,#c)) {
tokenize #c;
if (strequals(#t(1),1)) {
setstring server.jury1,#t(2);
}
if (strequals(#t(1),2)) {
setstring server.jury2,#t(2);
}
//repeat the above for multiple jury members
}

//here an example NPC for a jury entrance
if (playertouchsme) {
if (strequals(#a,#s(server.jury1)) {
playery-=1;
}
}


That was totally off the top of my head...sorry if it doesn't help.

Dustey 02-01-2002 07:17 AM

that should work i cant test it though

nyghtGT 02-01-2002 10:22 AM

Re: addjury
 
Quote:

Originally posted by darkriders_p2p
Hey is there a way I can make a jury thing where a GP says "account" in spot (1-6) it would add a string or flag to that account so they don't physically have to go in and edit the flaglist?
This is for a non-p2p.

Just for your knowledge, you could use:
NPC Code:

NPC Code:
 
with (getplayer()) {
// ANd have the things needed to be changed for
// the player in here ...
}




TDK_RC6 02-01-2002 10:29 AM

Re: Re: addjury
 
Quote:

Originally posted by nyghtGT

Just for your knowledge, you could use:
NPC Code:

NPC Code:
 
with (getplayer()) {
// ANd have the things needed to be changed for
// the player in here ...
}




he said no p2p believe

lordhelmut 02-01-2002 06:58 PM

god, I want all the p2p commands in a bag and then give them to free servers to use =D

darkriders_p2p 02-02-2002 02:32 AM

thanks
 
I made something like that but I had a few errors,I made it startswith(#c,addjury) but thats backwards,and I made server flags,this way is alot easier :D

TDK_RC6 02-02-2002 04:34 AM

you could use a system weapon like -JurySystem or something and call a timeout in it, like:

if (isweapon) { timeout=.1; }
if (timeout) {
if (lindexof(#a,server.jury)>=0&&(!strequals(#L,juryl evel.nw)||playerx<23||playerx>18||playery>30||play ery<20)) {
setlevel2 jurylevel.nw,20,24; }
timeout=.1;
}

that should send the player to the jury seats


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

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