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 01-29-2002, 02:56 AM
wicky111 wicky111 is offline
Registered User
Join Date: Dec 2001
Location: Northern Ireland =D
Posts: 18
wicky111 is on a distinguished road
Question Scripting query

I Need help on this script for a jail
This is it so far:
if(playersays(index,jail #a)){


thats all i can do!
Im really stuck on this!
Reply With Quote
  #2  
Old 01-29-2002, 03:05 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 will become famous soon enough
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
playersays doesn't work nemore, try using playerchats or strequals
__________________
Reply With Quote
  #3  
Old 01-29-2002, 04:02 AM
amonrabr amonrabr is offline
Scripter
Join Date: Nov 2001
Location: Brazil
Posts: 374
amonrabr is on a distinguished road
-

try to use:
if (playerchats&&startswith(jail,#c)){
setstring server.jail,#e(4,-1,#c);
setplayerprop #c,;}
if (strequals(server.jail,#a)){sleep 0.5;setlevel jail........
setstring server.jail,;}

or use tokens
if (playerchats&&startswith(jail,#c)){
tokenize #c;
setstring server.jail,#t(2);
......
Reply With Quote
  #4  
Old 01-31-2002, 02:27 AM
wicky111 wicky111 is offline
Registered User
Join Date: Dec 2001
Location: Northern Ireland =D
Posts: 18
wicky111 is on a distinguished road
Thanks!

You guys are the first people to post an answer that doesnt talk c*** to me!
Thanks very much!
Reply With Quote
  #5  
Old 01-31-2002, 09:30 PM
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
try this
NPC Code:

if (playerchats) {
tokenize #c;
if (tokenscount==2&&strequals(#t(0),/jail)) {
addstring server.jailed,#t(1);
setplayeprop #c, ; }
if (tokenscount==2&&strequals(#t(0),/unjail)) {
if (lindexof(#t(1),server.jailed)>=0) {
deletestring server.jailed,lindexof(#t(1),server.jailed);
} else { say2 #t(1) isn't in jail; }
setplayerprop #c, ;
}
}



thats a pretty simple script, you will have to write a script that will jail the player (should be server side)
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #6  
Old 02-01-2002, 08:33 PM
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
Quote:
Originally posted by wicky111
Thanks!

You guys are the first people to post an answer that doesnt talk c*** to me!
Thanks very much!
lol I don't believe you have to sensor the word "crap"...it's not even a bad word.
__________________

-=Shard IceFire=-
Reply With Quote
  #7  
Old 02-02-2002, 01:08 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
except turnips, right?
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #8  
Old 02-02-2002, 02:44 AM
wicky111 wicky111 is offline
Registered User
Join Date: Dec 2001
Location: Northern Ireland =D
Posts: 18
wicky111 is on a distinguished road
lol

CRAP
CRAP
CRAP

see Uncle Shard_IceFire
Im learning well


Shard_IceFire Iz Da BOMB
He swear without sensor!!!
Reply With Quote
  #9  
Old 02-02-2002, 02:52 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 will become famous soon enough
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
mhmm
__________________
Reply With Quote
  #10  
Old 02-02-2002, 04: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
Quote:
Originally posted by wicky111
lol

CRAP
CRAP
CRAP

see Uncle Shard_IceFire
Im learning well


Shard_IceFire Iz Da BOMB
He swear without sensor!!!
i can tell that you are a mature person
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #11  
Old 02-02-2002, 09:29 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
its like we went to an old folks home. look at this maturity!
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #12  
Old 02-02-2002, 10:13 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 will become famous soon enough
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
arg, imagine what Graal would be like if there was no rules...lol
__________________
Reply With Quote
  #13  
Old 02-02-2002, 12:06 PM
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
Quote:
Originally posted by TDK_RC6
try this
NPC Code:

if (playerchats) {
tokenize #c;
if (tokenscount==2&&strequals(#t(0),/jail)) {
addstring server.jailed,#t(1);
setplayeprop #c, ; }
if (tokenscount==2&&strequals(#t(0),/unjail)) {
if (lindexof(#t(1),server.jailed)>=0) {
deletestring server.jailed,lindexof(#t(1),server.jailed);
} else { say2 #t(1) isn't in jail; }
setplayerprop #c, ;
}
}



thats a pretty simple script, you will have to write a script that will jail the player (should be server side)
'tokenscount' is not always 100% realible, but then very
few commands are.
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 08:58 PM.


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