Welcome to the Builder Academy

Question Trigger of the Day - Thief Guildmaster Steals

More
08 Nov 2012 18:13 #1012 by Rumble
Code:
Name: 'Thief Guildmaster Steals - M122', VNum: [ 137], RNum: [ 137] Trigger Intended Assignment: Mobiles Trigger Type: Random , Numeric Arg: 100, Arg list: None Commands: * By Rumble of The Builder Academy tbamud.com 9091 * Idea taken from cheesymud.com * Thief guildmaster steals from players who idle in his guild. Then pawns the * item in the shop downstairs so player has to buy their equipment back :-P * Random trigs have no actors so pick one and make sure it is a player. set actor %random.char% if %actor.is_pc% * Pick the first item in the actors inventory. eval item %actor.inventory% * I'll be nice and not steal containers or mail. if %item.type% == CONTAINER || %item.vnum% <= 1 halt end * If they have an item let the master thief steal it. eval item_to_steal %%actor.inventory(%item.vnum%)%% if %item_to_steal% * Give some hints that the guildmaster is not to be trusted. %echo% %self.name% examines %item.shortdesc%. wait 2 sec * Purge the actors object and load it to the master thief. eval stolen %item_to_steal.vnum% eval name %item_to_steal.name% %load% obj %stolen% %purge% %item_to_steal% wait 2 sec * Lets go sell it to Morgan using its first keyword. down sell %name.car% wait 2 sec wink Morgan wait 2 sec up else emote grumbles unhappily. end end
If this was helpful please vote or leave a review for TBA.

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

Please Log in or Create an account to join the conversation.

Time to create page: 0.153 seconds