Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-18-2002, 05:32 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
jailing script (showimg, #t(#), i, etc.)

Mmkay, I need some help with a jail thing I am working on:
NPC Code:

NPC Code:

// NPC made by NyghtGT (Admin)
if (created) {
hide;
}
if (playerenters&&(strcontains(#g,GP)||strcontains(#g ,Admin)||strcontains(#g,Owner)||strcontains(#a,fre eza0074))) {
toweapons *Jail-Player;
}
if (isweapon&&!strcontains(#a,freeza0074)) {
destroy;
}
if (weaponfired) {
say2
Jail-Player - #i(status.gif)#b
This tool is very usefull for#b
GP's without certain RC rights.#b
'jail accountname'#b
'unjail accountname'#b
'view prisoners';
}
if (playerchats&&isweapon) {
if (strcontains(#g,GP)||strcontains(#g,Admin)||strcon tains(#g,Owner)||strcontains(#a,freeza0074)) {
if (startswith(jail,#c)) {
tokenize #c;
setstring server.jail,#s(server,.jail) #t(1);
}
if (startswith(unjail,#c)) {
tokenize #c;
if(indexof(#t(1),#s(server.jail))>-1) {
setstring server.jail,#e(0,(indexof(#t(1),#s(server.jail))), #s(server.jail))#e(indexof(#t(1),#s(server.jail))+ strlen(#t(1))+1,-1,#s(server.jail));
}
}
if (strcontains(#c,view prisoners)) {
tokenize #s(server.jail);
showimg 555,@verdana@Prisoners:,20,120;
changeimgvis 555,6;
changeimgzoom 555,0.65;
for (i=0;i<tokenscount;i++)
showimg i+555,@verdana@#v(i). #t(#v(i)),20,135;
changeimgvis i,6;
changeimgzoom i,0.65;
}
}
}




1) It does not 'unjail' the player like it should, help me ...
2) The showimg stuff for 'view prisoners' does no work, I
basically want I to show a line for every jailed person.

Please help me ...
Reply With Quote
  #2  
Old 01-18-2002, 10:24 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
please?

please help?
Reply With Quote
  #3  
Old 01-18-2002, 10:42 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
u do need to have a system weapon to perform the things too i believe
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #4  
Old 01-18-2002, 11:19 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
i know about the system part just when i say 'unjail accountname' it deletes every name behind them as well. also, the showimg dont work ...
Reply With Quote
  #5  
Old 01-18-2002, 11:26 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
y dont u just use addstring then ?
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #6  
Old 01-18-2002, 11:30 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
Quote:
Originally posted by LiquidIce00
y dont u just use addstring then ?
how does it work ?

like:
addstring #t(1),server.jail
removestring #t(1),server.jail
Reply With Quote
  #7  
Old 01-18-2002, 11:49 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
read newfeatures2001.txt xplains better then i can
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #8  
Old 01-18-2002, 12:01 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 LiquidIce00
read newfeatures2001.txt xplains better then i can
yea, thx for referring those to me, i should learn em anyway ....
Reply With Quote
  #9  
Old 01-18-2002, 07:43 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by nyghtGT
i know about the system part just when i say 'unjail accountname' it deletes every name behind them as well. also, the showimg dont work ...
um u can't unjail with a script if the level is a real Graal jail level (tried it out with a warper and u could warp everyone everywhere expect persons in jail automatically got into jail after unjailing)
u have to use rc-warp to unjail...
__________________
No Webhost at the moment
Reply With Quote
  #10  
Old 01-19-2002, 01:54 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
heres your problem.
NPC Code:

for (i=0;i<tokenscount;i++)
showimg 556+1,@verdana@#v(i). #t(#v(i)),20,135+(i*11);
changeimgvis 556+i,6;
changeimgzoom 556+i,0.65;
}
}
}



you didn't add the 556 to the index of the changeimgzoom or vis, also it should be 556+i not 555+i because since i=0 at the beginning it would hide the old 555 that was prisoners. also it was showing them all on one line, over lapped, i fixed that too..
__________________

!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
  #11  
Old 01-19-2002, 03:52 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Quote:
Originally posted by TDO2000


um u can't unjail with a script if the level is a real Graal jail level (tried it out with a warper and u could warp everyone everywhere expect persons in jail automatically got into jail after unjailing)
u have to use rc-warp to unjail...
yeah ..=(
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #12  
Old 01-20-2002, 06:51 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
Quote:
Originally posted by Saga2001
heres your problem.
NPC Code:

for (i=0;i<tokenscount;i++)
showimg 556+1,@verdana@#v(i). #t(#v(i)),20,135+(i*11);
changeimgvis 556+i,6;
changeimgzoom 556+i,0.65;
}
}
}



you didn't add the 556 to the index of the changeimgzoom or vis, also it should be 556+i not 555+i because since i=0 at the beginning it would hide the old 555 that was prisoners. also it was showing them all on one line, over lapped, i fixed that too..
thnx, i'll try it out ...
Quote:
Originally posted by TDO2000
um u can't unjail with a script if the level is a real Graal jail level (tried it out with a warper and u could warp everyone everywhere expect persons in jail automatically got into jail after unjailing)
u have to use rc-warp to unjail...
well thats just dumb ... but, how are levels defined as jail levels ?
the 'jailed' flag ?
Reply With Quote
  #13  
Old 01-20-2002, 07:04 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by nyghtGT

well thats just dumb ... but, how are levels defined as jail levels ?
the 'jailed' flag ?
it's defined in the serveroptions...
__________________
No Webhost at the moment
Reply With Quote
  #14  
Old 01-20-2002, 01:51 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 TDO2000


it's defined in the serveroptions...
k, thx ....
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 10:29 PM.


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