need the client to issue a command
I thought this would be easy but I can't find the right way to do this.
#need to check if client has pet not sure if i need to but it makes sense to, if pet == true then remove the pet on zone from player. sub EVENT_ENTERZONE { GetPetID() #assuming this will let me know if there is a pet, not sure on syntax. how do you force the client issue the pet kill command? I cant find this part. /pet get lost |
Should be something like this:
Code:
sub EVENT_ENTERZONE { |
This almost works Depop() doesn't depop the pet. It leaves the pet at the zone-line, and also keeps it in the pet window. Although the pet is no longer yours.
|
Then it's most likely the server and client arent synced. Your client may see a ghost. You can add a delay using a timer to ensure pet and client are in zone for the client before it depops.
|
Going to try this when i get the chance;
Code:
for ($count = 10; $count >= 1; $count--) { |
Yeah, I wouldn't do it that way. I would use a timer. Something like this:
Code:
sub EVENT_ENTERZONE { |
Thank you, this works. I adjusted the time a little for each zone I want it to work in. It takes 3 seconds after zone before the name turns red, so after that the pet can die off. pretty cool stuff.
|
All times are GMT -4. The time now is 08:03 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.