I understand that to check the exact guild a pc is on you use the command.
if guild($n) == XXX
Is there a list of what XXX can be ? as i cannot get the command to work
Duranamir
checking a PC's guild.
This does not currently work for me (see Mob 14514) which always trigger the third option even though the PC should trigger example A below. The program always goes to C .
Duranamir.
Edit. I put your program excerpt into "code" tags to make it more readable.
Code: Select all
>speech_prog guild thief thieves~
if quest(5,4,$n) == 0
if class($n) == Rogue
if guild($n) == Thieves
sayto $n Choice A
mpmset $n quest 5 4 1
else
if guild($n) == Bards
sayto $n Choice B
mpmset $n quest 5 4 1
else
mpmset $n quest 5 4 1
sayto $n Choice C
endif
else
sayto $n No idea what you are talking about.
endif
else
sayto $n No idea what you are talking about.
endif
~
Duranamir.
Edit. I put your program excerpt into "code" tags to make it more readable.
- Japcil
- Sword Grand Master
- Posts: 1143
- Joined: Fri Jun 17, 2005 5:32 pm
- Location: Golden Oaks
- Contact:
Code: Select all
>speech_prog guild thief thieves~
if quest(5,4,$n) == 0
if class($n) == Rogue
if guild($n) == Thieves
sayto $n Choice A
mpmset $n quest 5 4 1
else
if guild($n) == Bards
sayto $n Choice B
mpmset $n quest 5 4 1
else
mpmset $n quest 5 4 1
sayto $n Choice C
endif
endif
else
sayto $n No idea what you are talking about.
endif
endif
~