dg_affect to be removed from mob after it leaves

Login to reply  Page: « < 1 of 1 > »
03 Aug 2010 - 02:182936
dg_affect to be removed from mob after it leaves
Ok I have this mob I'm trying to make follow a player and be its charm after you give it 250 gold coins. I've got it to work but after the mob follows the player it want do anything the player orders it to do. So i added dg_affect to the trig and it looks like this.

Name: 'Ranger follows', VNum: [11704], RNum: [ 371]
Trigger Intended Assignment: Mobiles
Trigger Type: Bribe , Numeric Arg: 100, Arg list: 250
Commands:
mfollow %actor.name%
dg_affect %self% charm 0 50


now this works fine but here is the problem i'm having after the mob leaves the player for what ever reason the charm affect stays with the mob and when the player are another player pays to get this mob again it will not follow the player are do anything that the trig is set up to do. is there away to remove the charm affect from the mob once it leaves the player?


03 Aug 2010 - 18:072937
There are numerous ways to do this. It probably depends mostly on the way the mob most often gets lost. Off the top of my head I'd probably do a mob random trigger and check if master is in the same room.


__________________
Rumble
The Builder Academy
tbamud.com 9091
04 Aug 2010 - 03:322938
Quote Rumble:
There are numerous ways to do this. It probably depends mostly on the way the mob most often gets lost. Off the top of my head I'd probably do a mob random trigger and check if master is in the same room.


I wouldn't do that, since I may want to recall and leave the mob behind, or go somewhere that the mob is kept out of (clan hall?) because of !MOB rooms. Instead I would do a death trigger, a random trigger that checks against the time for normal end of following, and so on. I would even add a trigger to "send" them away... ie fire them.


__________________
Owner/Coder/Head Admin
Caer Dubrin
Login to reply  Page: « < 1 of 1 > »