Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Need help with a npc i made pls.... (https://forums.graalonline.com/forums/showthread.php?t=11091)

RICEJERRRY4 09-03-2001 03:14 PM

Need help with a npc i made pls....
 
ok i need help with my npc i want it were onley staff with the tag admin on can work this npc.
If someone could help me that would mean alot.
heres the code

code------------------------------------------
// NPC made by Rice
if (created) {
showcharacter;
setcharprop #3,head19.gif;
setcharprop #C0,orange;
setcharprop #C1,gray;
setcharprop #C2,gray;
setcharprop #C3,brown;
setcharprop #C4,black;
setcharprop #n,Staff Helper;
setcharprop #2,no-shield.gif;
dir = 2;
ap = 100;
}

//Bug need to fix
if (playerchats && strequals(#g,Admin)){
if (strequals(#c, jail #a)){
setlevel2 jail.graal,31.5,20.5}

if (strequals(#c, unjail #a)){
setlevel2 Ithaica.graal,32,32}

if (strequals(#c, ban #a)) {
setlevel ban.graal}

if (strequals(#c, jail2 #a)){
setlevel ithaica_jail.graal}

End of code------------------------------------------

Enigma_GP6 09-03-2001 03:22 PM

Good Question
 
This is a little complicated.....

you have a lot of it pretty much right, but, you really need to fix that bug, that will jail the admins,(Have fun Tyhm), I am sleepy,
so I I mess up, dont blame me till I'm awake. it will probably be something like "if (strequals(#c,jail #a)){
playerscount[i].#a;
setlevel2 jail.graal,31.5,20.5;
}
//End of script
I havent tested this, but I am guesing it will look something like this....*yawn* good night :asleep::asleep:

-Rebel95


All times are GMT +2. The time now is 10:23 AM.

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