Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 11:17 PM.


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