Register for your free account! | Forgot your password?

You last visited: Today at 17:15

  • Please register to post and access all features, it's quick, easy and FREE!

 

Buff pet range/despawning

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2017
Posts: 52
Received Thanks: 8
Buff pet range/despawning

Hey everyone,

I have an issue on my server where whenever we teleport from the siege spawn location to the arena our buff pets are despawning. And also if you get too much speed you can outrun your buff pet (even with its speed increased).

I tried a few times to increase the range of buffpets but I still have the same problem.

Anyone have any tips on how to fix this by either increasing the range of the pets or disable the despawning. I tried looking for it myself but I haven't really been able to find something that makes me confident about a fix.



FlyffDeveloper is offline  
Old   #2
 
elite*gold: 0
Join Date: Aug 2017
Posts: 52
Received Thanks: 8
Quote:
Originally Posted by Hekmatyar View Post
I wouldn't be posting here if I was able to fix it after trying out various things myself. I disabled most of the obvious places where a pet is despawned after a range or location check but it still seems to happen.


FlyffDeveloper is offline  
Old   #3

 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,099
Received Thanks: 14,276
Set a flag if you're teleporting and a pet is spawned.
Respawn pet if flag is true after teleporting.

And while spawning set the pets speed to player speed if you want.
Sedrika is offline  
Thanks
2 Users
Old   #4
 
elite*gold: 0
Join Date: Aug 2017
Posts: 52
Received Thanks: 8
For those who also might be interested in a similar fix (or have suggestions for better improvements).

I have fixed the problem by adding this in the JoinWar() for the Siege code.

Code:
	
bool reActivatePet = false;
CItemElem* pPetItem;

if( ((CMover*)pUser)->HasActivatedEatPet())
{
	reActivatePet = true;
	pPetItem = ((CMover*)pUser)->GetVisPetItem();
}
	
((CMover*)pUser)->REPLACE( g_uIdofMulti, WI_WORLD_GUILDWAR, v3Pos[nMap], REPLACE_NORMAL, nDefaultLayer );

pUser->m_vtInfo.SetOther( NULL );
	
if(reActivatePet)
	((CMover*)pUser)->ActivateEatPet(pPetItem);


FlyffDeveloper is offline  
Old   #5
 
elite*gold: 0
Join Date: Jun 2015
Posts: 53
Received Thanks: 118
Quote:
Originally Posted by FlyffDeveloper View Post
For those who also might be interested in a similar fix (or have suggestions for better improvements).

I have fixed the problem by adding this in the JoinWar() for the Siege code.

Code:
	
bool reActivatePet = false;
CItemElem* pPetItem;

if( ((CMover*)pUser)->HasActivatedEatPet())
{
	reActivatePet = true;
	pPetItem = ((CMover*)pUser)->GetVisPetItem();
}
	
((CMover*)pUser)->REPLACE( g_uIdofMulti, WI_WORLD_GUILDWAR, v3Pos[nMap], REPLACE_NORMAL, nDefaultLayer );

pUser->m_vtInfo.SetOther( NULL );
	
if(reActivatePet)
	((CMover*)pUser)->ActivateEatPet(pPetItem);
How to implement a possible server crash 101
ディオニュソス is offline  
Thanks
1 User
Old   #6
 
elite*gold: 0
Join Date: Aug 2017
Posts: 52
Received Thanks: 8
Quote:
Originally Posted by ディオニュソス View Post
How to implement a possible server crash 101

What do you suggest could cause that? I'm still new so always willing to learn how to code flyff better.
FlyffDeveloper is offline  
Old   #7
 
elite*gold: 0
Join Date: Jun 2015
Posts: 53
Received Thanks: 118
Quote:
Originally Posted by FlyffDeveloper View Post
What do you suggest could cause that? I'm still new so always willing to learn how to code flyff better.
Idk, there are plenty of possibilities, I'd probably call Replace on the loot pet mover. That works as long as it doesn't switch worlds.
You'd have to adjust CMover::Replace though in order to disable the deactivation of the pet when an actual player is being teleported.
Up to you, according to your name you're a flyff developer so I'm sure you can figure that one out on your own.


ディオニュソス is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
Range Hack[Veränderbare Range!]
So ich möchte Heute mal mein range hack realasen,bei dem könnt ihr die Range individuel einstelen. Das ist das erste mal das ich sowas selber...
21 Replies - S4 League Hacks, Bots, Cheats & Exploits
[Request] PS Range + Range Adresse
Hi , ich suche jemanden der mir die richtige und funktionierende PS Range + Range Adresse geben kann. Bitte nicht die aus den public CT's diese...
0 Replies - S4 League
[REQUEST] AutoIt select range/Grap Range For SRO!
Can someone change this loader from private server loader to SRO loader?? :o
0 Replies - SRO Ask the Experts
{Mabinogi} T> Infinite fb Range for 100%Range
Hey..Trading infinite fireball range for 100%Range (Bow) IGN: Hollowclouds/Alexina Contact me: [email protected] Will except method...
0 Replies - Trading
PET FOOD HACK , PET BAR AND PET SKILL
DONT KNOW IF I'M THE FIRST ONE TO POST THIS KIND OF HACK BUT I GIVE MY CREDIT TO THE FIRST ONE WHO POSTED IT. PET FOOD 1. go to your equip ...
6 Replies - Grand Chase Philippines



All times are GMT +1. The time now is 17:15.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.