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 02-01-2002, 04:46 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
Smile 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.
__________________
maximus_asinus
Reply With Quote
  #2  
Old 02-01-2002, 06:36 AM
Dustey Dustey is offline
Registered User
Join Date: Nov 2001
Location: Do You Think I Know?
Posts: 193
Dustey is on a distinguished road
Send a message via AIM to Dustey
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
__________________
And Yes I work For.... Renegade
Reply With Quote
  #3  
Old 02-01-2002, 06:44 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
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.
__________________

-=Shard IceFire=-
Reply With Quote
  #4  
Old 02-01-2002, 07:17 AM
Dustey Dustey is offline
Registered User
Join Date: Nov 2001
Location: Do You Think I Know?
Posts: 193
Dustey is on a distinguished road
Send a message via AIM to Dustey
that should work i cant test it though
__________________
And Yes I work For.... Renegade
Reply With Quote
  #5  
Old 02-01-2002, 10:22 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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 ...
}



Reply With Quote
  #6  
Old 02-01-2002, 10:29 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
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
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #7  
Old 02-01-2002, 06:58 PM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
god, I want all the p2p commands in a bag and then give them to free servers to use =D
Reply With Quote
  #8  
Old 02-02-2002, 02:32 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
Smile 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
__________________
maximus_asinus
Reply With Quote
  #9  
Old 02-02-2002, 04:34 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
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
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
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 05:41 AM.


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