Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   I have a script in here that needs some fixin, it is for a jailing and unjailing syst (https://forums.graalonline.com/forums/showthread.php?t=1634)

cell424 04-21-2001 08:10 PM

Ok now I am making a new jailing and unjailing script for my system NPC for my PW, and I need some help with it..right now I ahve the main format done now I need it to be able to jail other people jsut not your self here is the script I have so far.If you can help me fix this plz then!

// NPC made by Trunks (Owner)
hide;
if (playerenters && strtofloat(#s(gotjailingsystem))<10) {setstring gotjailingsystem,10;toweapons *Jailing System;}
if (weaponfired){}

//Jailing && Unjailing//
if ((strequals(#g,Owner) || strequals(#g,Co-Owner) || strequals(#g,Admin)) && playersays(unjail)) {
setstring unjailmode,unjail;
}
if ((strequals(#g,Owner) || strequals(#g,Co-Owner) || strequals(#g,Admin)) && playersays(jail)) {
setstring jailmode,jail;
}
if (strequals(#s(jailmode),jail) && weaponfired && strequals(#a,#c) && (
strequals(#g,Owner) ||
strequals(#g,Co-Owner) ||
strequals(#g,Admin) ||
strequals(#g,PW Projects Team))
)
setlevel2 gppolice3.graal,24,12;

if (strequals(#s(unjailmode),unjail) && weaponfired && strequals(#a,#c) && (
strequals(#g,Owner) ||
strequals(#g,Co-Owner) ||
strequals(#g,Admin) ||
strequals(#g,PW Projects Team))
)
unset jailed;setlevel onlinestartlocal.graal;







All times are GMT +2. The time now is 03:46 PM.

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