Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-23-2001, 02:19 PM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
Script Question

I have a NPC weapon but i need this. I want it so someone with the guild tag (WarriorofLight) who says healer gets the weapon called healer. but if someone doesnt have the tag it warps them to jail.graal can anyone help?
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #2  
Old 06-23-2001, 02:48 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool basically

basically go like this

if(strequals(#g,WarriorofLight)){
//do whatever
}else{
setlevel2 jail.graal,30,30;
}
__________________
Thanks,
-KJL
Reply With Quote
  #3  
Old 06-23-2001, 05:05 PM
Guest
Posts: n/a
should be like this...

if (strequals(#g,Warrioroflight)&&strequals(#c,healer )) {
toweapons Healer;
else {setlevel bannedforevern00b.graal;
}
}
Reply With Quote
  #4  
Old 06-23-2001, 06:03 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Yakuzo, this is how Graal would view that:
NPC Code:
if (strequals(#g,Warrioroflight)&&strequals(#c,healer  )) {
toweapons Healer;
else {
setlevel bannedforevern00b.graal;
}
}


And since there is no if before the else in this case you would just get a syntax error... A better version is this:
NPC Code:
if (playerchats&&!(isweapon)&&strequals(#c,healer)) {
if (strequals(#g,Warrioroflight)) toweapons Healer;
else setlevel2 jail.graal,32,32;
}

__________________

Reply With Quote
  #5  
Old 06-23-2001, 06:20 PM
Yakuna2001 Yakuna2001 is offline
Registered User
Yakuna2001's Avatar
Join Date: Jun 2001
Location: England U.K
Posts: 940
Yakuna2001 is on a distinguished road
Send a message via AIM to Yakuna2001
Quote:
Originally posted by grim_squeaker_x
Yakuzo, this is how Graal would view that:
NPC Code:
if (strequals(#g,Warrioroflight)&&strequals(#c,healer  )) {
toweapons Healer;
else {
setlevel bannedforevern00b.graal;
}
}


And since there is no if before the else in this case you would just get a syntax error... A better version is this:
NPC Code:
if (playerchats&&!(isweapon)&&strequals(#c,healer)) {
if (strequals(#g,Warrioroflight)) toweapons Healer;
else setlevel2 jail.graal,32,32;
}

yep, hes got the idea
__________________

-Manager of the UnholyNation PlayerWorld-
UnholyNation Forums
Reply With Quote
  #6  
Old 06-23-2001, 10:37 PM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
what does the isweapon statement do??
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #7  
Old 06-23-2001, 11:48 PM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
No wonder your servers not up

Babylon
Reply With Quote
Reply


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 08:33 AM.


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