Code:
Name: 'Mob Quest Tutorial Example Quest starter - 25', VNum: [ 192], RNum: [ 191]
Trigger Intended Assignment: Mobiles
Trigger Type: Greet , Numeric Arg: 100, Arg list: None
Commands:
* By Rumble of The Builder Academy tbamud.com 9091
if %direction% == south
if %actor.varexists(solved_example_quest_zone_0)%
wait 1 sec
say you have already completed this quest.
halt
else
wait 1 sec
say Hello, %actor.name%. Could you find me the magic eight ball?
say Please say yes, %actor.name%.
end
end
Trigger of the Day - Accept Quest
Code:
Name: 'Mob Quest Tutorial Example Quest accepted - 25', VNum: [ 191], RNum: [ 190]
Trigger Intended Assignment: Mobiles
Trigger Type: Speech , Numeric Arg: 1, Arg list: yes
Commands:
* By Rumble of The Builder Academy tbamud.com 9091
if %actor.varexists(solved_example_quest_zone_0)%
halt
else
wait 1 sec
say Perfect, %actor.name%. I'll make this easy. It is to the east.
wait 3 sec
say I'd go get it myself, but I'm lazy and you need the exercise.
wait 1 sec
end
Trigger of the Day - Receive Quest
Code:
Name: 'Mob Quest Tutorial Example Quest completion - 25', VNum: [ 190], RNum: [ 189]
Trigger Intended Assignment: Mobiles
Trigger Type: Receive , Numeric Arg: 100, Arg list: None
Commands:
* By Rumble of The Builder Academy tbamud.com 9091
wait 1 sec
if (%object.vnum% == 47) && !%actor.varexists(solved_example_quest_zone_0)%
dance
wait 1 sec
say Thank you, %actor.name%. Here is a few experience points and some gold.
nop %actor.exp(50)%
nop %actor.gold(50)%
say Finally, now I can get some answers.
wait 1 sec
emote shakes the magic eight ball vigorously.
wait 1 sec
emote does not seem too pleased with his answer.
set solved_example_quest_zone_0 1
remote solved_example_quest_zone_0 %actor.id%
%purge% %object%
elseif %object.vnum% == 47
say you already solved this quest, keep it.
return 0
else
say I don't want that!
junk %object.name%
end
If this was helpful please
vote
or leave a
review
for TBA.