Search the web
Sign In
New User? Sign Up
dg_scripts · DG scripts
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Purging a Mob in another room   Message List  
Reply | Forward Message #761 of 791 |
RE: [DG_SCRIPTS] Re: Purging a Mob in another room

That is great news. J

Happy to help.



By the way, we have some excellent script writers on this list. If
anyone has come up with some curly concepts that need to be made into
scripts, or even if you have had a curly concept and have written a
script for it yourself, let this mailing list know, it is both fun and
educational to work them out. We are sure to get a lot of variations to
the solutions too. J



--

Jamie Nelson / Mordecai

http://4dimensions.org





From: dg_scripts@yahoogroups.com [mailto:dg_scripts@yahoogroups.com] On
Behalf Of cronax_me
Sent: Thursday, 8 February 2007 9:06 a.m.
To: dg_scripts@yahoogroups.com
Subject: [DG_SCRIPTS] Re: Purging a Mob in another room



Thanks, I had the statment closed while i was doing it, lost a peice
copy/pasting, Still couldnt get it to work right with findmob but the
old way worked great. thanks

--- In dg_scripts@yahoogroups.com <mailto:dg_scripts%40yahoogroups.com>
, "Jamie Nelson" <jamie@...> wrote:
>
> Firstly, you are missing the closing % on the findmob call.
>
> And, it is %findmob.<roomvnum>(<mobvnum>)% are your room and mob
both
> 53021?
>
> And finally, if there is no mob in that room, %target% will be
blank.
>
> In which case, %purge% will run by itself. Meaning it will purge
> everything in the room with the object, including itself.
>
> So add in a check like:
>
> If %target%
>
> %purge% %target%
>
> end
>
>
>
> If findmob doesn't seem to work for you, then you can always do it
the
> old fashioned way.
>
>
>
> eval rm 53021
>
> set p %rm.people%
>
> while %p%
>
> set next %p.next_in_room%
>
> if %p.vnum% == 53021
>
> %purge% %p%
>
> end
>
> set p %next%
>
> done
>
>
>
>
>
> Lastly, if this mob is aggro, or anything, I would purge the mob
before
> you teleported the player to it.
>
> So here's your complete script using the long form.
>
>
>
> if (%actor.level% >= 36)
>
> eval rm 53021
>
> set p %rm.people%
>
> while %p%
>
> set next %p.next_in_room%
>
> if %p.vnum% == 53021
>
> %purge% %p%
>
> end
>
> set p %next%
>
> done
> %teleport% %actor% 53022
> %door% 53021 down purge
> %door% 53021 up flag a
> %force% %actor% l
> context 0
> halt
> end
>
>
>
> Jamie Nelson / Mordecai
>
> http://4dimensions.org
>
>
>
>
>
>
>
>
>
> From: dg_scripts@yahoogroups.com <mailto:dg_scripts%40yahoogroups.com>

[mailto:dg_scripts@yahoogroups.com <mailto:dg_scripts%40yahoogroups.com>
] On
> Behalf Of cronax_me
> Sent: Thursday, 8 February 2007 8:09 a.m.
> To: dg_scripts@yahoogroups.com <mailto:dg_scripts%40yahoogroups.com>
> Subject: [DG_SCRIPTS] Purging a Mob in another room
>
>
>
> Im having some issue with making this work correctly. I have a
temple
> that when folks quest at my statue they are trans to a point in one
of
> my quest zones thats compriable to thier level. However i want to
> clear the mob in the room below where they get trans to so they
have a
> safe place to flee to. I tried this a bunch of ways, not sure why
but
> i can't get the purge to work at all.
> Tried %purge% %mob.vnum(53021) eval target %room.people.vnum
(53021)%
> and purging the target and the way you see below. Please help this
> novice scripter.
>
> 2) Intended for : Objects
> 3) Trigger types: Command
> 4) Numeric Arg : 4
> 5) Arguments : quest
> 6) Commands:
> *** Most of this script has been removed ***
> if (%actor.level% >= 36)
> %teleport% %actor% 53022
> %door% 53021 down purge
> %door% 53021 up flag a
> eval target %findmob.53021(53021)
> %purge% %target%
> %force% %actor% l
> context 0
> halt
> endif
>
>
>
>
>
> [Non-text portions of this message have been removed]
>





[Non-text portions of this message have been removed]




Wed Feb 7, 2007 8:20 pm

mordecai4d
Offline Offline
Send Email Send Email

Forward
Message #761 of 791 |
Expand Messages Author Sort by Date

Im having some issue with making this work correctly. I have a temple that when folks quest at my statue they are trans to a point in one of my quest zones...
cronax_me
Offline Send Email
Feb 7, 2007
7:10 pm

Firstly, you are missing the closing % on the findmob call. And, it is %findmob.<roomvnum>(<mobvnum>)% are your room and mob both 53021? And finally, if there...
Jamie Nelson
mordecai4d
Offline Send Email
Feb 7, 2007
7:32 pm

Thanks, I had the statment closed while i was doing it, lost a peice copy/pasting, Still couldnt get it to work right with findmob but the old way worked...
cronax_me
Offline Send Email
Feb 7, 2007
8:06 pm

That is great news. J Happy to help. By the way, we have some excellent script writers on this list. If anyone has come up with some curly concepts that need...
Jamie Nelson
mordecai4d
Offline Send Email
Feb 7, 2007
8:22 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help