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 09-03-2001, 03:14 PM
RICEJERRRY4 RICEJERRRY4 is offline
Registered User
Join Date: Jul 2001
Location: VA
Posts: 133
RICEJERRRY4 is on a distinguished road
Send a message via AIM to RICEJERRRY4
Unhappy 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------------------------------------------
__________________
Graal Nick Name:Rice
E-Mail:Forgot
Aim:Nothing5001

Reply With Quote
  #2  
Old 09-03-2001, 03:22 PM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Thumbs up 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

-Rebel95
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 03:22 PM.


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