mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-04 08:28:49 +01:00
179 lines
4.2 KiB
Text
179 lines
4.2 KiB
Text
#5400
|
|
Thief Guildguard - 5459~
|
|
0 q 100
|
|
~
|
|
* Check the direction the player must go to enter the guild.
|
|
if %direction% == south
|
|
* Stop them if they are not the appropriate class.
|
|
if %actor.class% != thief
|
|
return 0
|
|
%send% %actor% The guard humiliates you, and blocks your way.
|
|
%echoaround% %actor% The guard humiliates %actor.name%, and blocks %actor.hisher% way.
|
|
end
|
|
end
|
|
~
|
|
#5401
|
|
Mage Guildguard - 5456~
|
|
0 q 100
|
|
~
|
|
* Check the direction the player must go to enter the guild.
|
|
if %direction% == north
|
|
* Stop them if they are not the appropriate class.
|
|
if %actor.class% != magic user
|
|
return 0
|
|
%send% %actor% The guard humiliates you, and blocks your way.
|
|
%echoaround% %actor% The guard humiliates %actor.name%, and blocks %actor.hisher% way.
|
|
end
|
|
end
|
|
~
|
|
#5402
|
|
Cleric Guildguard - 5457~
|
|
0 q 100
|
|
~
|
|
* Check the direction the player must go to enter the guild.
|
|
if %direction% == south
|
|
* Stop them if they are not the appropriate class.
|
|
if %actor.class% != cleric
|
|
return 0
|
|
%send% %actor% The guard humiliates you, and blocks your way.
|
|
%echoaround% %actor% The guard humiliates %actor.name%, and blocks %actor.hisher% way.
|
|
end
|
|
end
|
|
~
|
|
#5403
|
|
Warrior Guildguard - 5458~
|
|
0 q 100
|
|
~
|
|
* Check the direction the player must go to enter the guild.
|
|
if %direction% == south
|
|
* Stop them if they are not the appropriate class.
|
|
if %actor.class% != warrior
|
|
return 0
|
|
%send% %actor% The guard humiliates you, and blocks your way.
|
|
%echoaround% %actor% The guard humiliates %actor.name%, and blocks %actor.hisher% way.
|
|
end
|
|
end
|
|
~
|
|
#5404
|
|
Magic User - 5421-5428, 5440, 5455~
|
|
0 k 10
|
|
~
|
|
switch %actor.level%
|
|
case 1
|
|
case 2
|
|
case 3
|
|
break
|
|
case 4
|
|
dg_cast 'magic missile' %actor%
|
|
break
|
|
case 5
|
|
dg_cast 'chill touch' %actor%
|
|
break
|
|
case 6
|
|
dg_cast 'burning hands' %actor%
|
|
break
|
|
case 7
|
|
case 8
|
|
dg_cast 'shocking grasp' %actor%
|
|
break
|
|
case 9
|
|
case 10
|
|
case 11
|
|
dg_cast 'lightning bolt' %actor%
|
|
break
|
|
case 12
|
|
dg_cast 'color spray' %actor%
|
|
break
|
|
case 13
|
|
dg_cast 'energy drain' %actor%
|
|
break
|
|
case 14
|
|
dg_cast 'curse' %actor%
|
|
break
|
|
case 15
|
|
dg_cast 'poison' %actor%
|
|
break
|
|
case 16
|
|
if %actor.align% > 0
|
|
dg_cast 'dispel good' %actor%
|
|
else
|
|
dg_cast 'dispel evil' %actor%
|
|
end
|
|
break
|
|
case 17
|
|
case 18
|
|
dg_cast 'call lightning' %actor%
|
|
break
|
|
case 19
|
|
case 20
|
|
case 21
|
|
case 22
|
|
dg_cast 'harm' %actor%
|
|
break
|
|
default
|
|
dg_cast 'fireball' %actor%
|
|
break
|
|
done
|
|
~
|
|
#5405
|
|
Cityguard - 5434, 61-63, 82~
|
|
0 b 50
|
|
~
|
|
if !%self.fighting%
|
|
set actor %random.char%
|
|
if %actor%
|
|
if %actor.is_killer%
|
|
emote screams 'HEY!!! You're one of those PLAYER KILLERS!!!!!!'
|
|
kill %actor.name%
|
|
elseif %actor.is_thief%
|
|
emote screams 'HEY!!! You're one of those PLAYER THIEVES!!!!!!'
|
|
kill %actor.name%
|
|
elseif %actor.cha% < 6
|
|
%send% %actor% %self.name% spits in your face.
|
|
%echoaround% %actor% %self.name% spits in %actor.name%'s face.
|
|
end
|
|
if %actor.fighting%
|
|
eval victim %actor.fighting%
|
|
if %actor.align% < %victim.align% && %victim.align% >= 0
|
|
emote screams 'PROTECT THE INNOCENT! BANZAI! CHARGE! ARARARAGGGHH!'
|
|
kill %actor.name%
|
|
end
|
|
end
|
|
end
|
|
end
|
|
~
|
|
#5406
|
|
Healer - 5481~
|
|
0 b 10
|
|
~
|
|
* This is required because a random trig does not have an actor.
|
|
set actor %random.char%
|
|
* only continue if an actor is defined.
|
|
if %actor%
|
|
* if they have lost more than half their hitpoints heal em
|
|
if %actor.hitp% < %actor.maxhitp% / 2
|
|
wait 1 sec
|
|
say You are injured, let me help.
|
|
wait 2 sec
|
|
%echoaround% %actor% %self.name% lays %self.hisher% hands on %actor.name%'s wounds and bows %actor.hisher% head in concentration.
|
|
%send% %actor% %self.name% lays %self.hisher% hands on your wounds and bows %actor.hisher% head in concentration.
|
|
dg_cast 'heal' %actor%
|
|
end
|
|
end
|
|
~
|
|
#5407
|
|
Thief - 5435~
|
|
0 b 10
|
|
~
|
|
set actor %random.char%
|
|
if %actor%
|
|
if %actor.is_pc% && %actor.gold%
|
|
%send% %actor% You discover that %self.name% has %self.hisher% hands in your wallet.
|
|
%echoaround% %actor% %self.name% tries to steal gold from %actor.name%.
|
|
eval coins %actor.gold% * %random.10% / 100
|
|
nop %actor.gold(-%coins%)%
|
|
nop %self.gold(%coins%)%
|
|
end
|
|
end
|
|
~
|
|
$~
|