Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 08:02

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

Advertisement



MonsterBuff Limit

Discussion on MonsterBuff Limit within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2013
Posts: 64
Received Thanks: 17
MonsterBuff Limit

Hey,
when i want to do a buff limit (3), so if you got 3 Monsterbuffs you cant get more even the chance do get an other one is 100%. how i can write it in short version. that there is a check :

if ((CMover*) g_pPlayer->HasBuff(ALL BUFFS HE GOT) == ListofIdMonsterbuffs && CurrentMonsterBuffs < __MonsterBuffLimit)
{
((CUser*)m_pAttacker)->DoApplySkill(m_pAttacker, pItemProp, NULL);
CurrentMonsterBuffs++;
}

i got 84 Monsterbuffs at the moment. so i can do it in 84 if(....){....}.. but what i have to do for short version?



if someone can help me with it would be great...

add me in discord: Luckiee#7002
or answer here. I will do it public if its ok, so the rest of flyff devs can have it too.
Blazing.Flyff is offline  
Old 06/19/2022, 05:05   #2
 
elite*gold: 0
Join Date: Nov 2021
Posts: 14
Received Thanks: 4
When attempting to give monster buffs -> check to see if user has the buff its trying to give to reset timer -> otherwise give buff if they dont have a list of buffs or 3 of them

Look at the actual function of HasBuff and HasBuffByIk3 and the IBuff / IBuffMng classes or whatever they are called and how they interact in the source.

Then just find the most optimal way to do it rather the quickest.
SandIsWater is offline  
Reply


Similar Threads Similar Threads
fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a
02/16/2013 - C/C++ - 8 Replies
Hey Community, ich bin noch relativ am Anfang was das programmieren angeht deswegen benötige ich eure Hilfe was mein Problem angeht. Das verstehen dieses Problems kenne ich und weiss was es bedeutet, aber leider scheiterts bei der Umsetzung. Habe meinen Computer Formatiert dann ging es auch kurzfristrig wieder, aber nach einer weile kam dieses Problem ernaut auf. Dies habe ich versucht indem ich dort /zm200 bis hin zu /zm2000 eingetragen habe, aber dann folgt die Fehlermeldung das...
HandshakeProcess: handshake retry limit reached! (limit 32 character !NO CHARACTER!)
08/16/2012 - Metin2 Private Server - 10 Replies
Hey Leute. In mom haben wir das Prob das CH2 immer bei uns abscheist. und der fehler. HandshakeProcess: handshake retry limit reached! (limit 32 character !NO CHARACTER!) socket_accept: accept: Software caused connection abort (fd 12) kommt. Könnte jemand mal bitte helfen weil meines wissen nach kommt der fehler glaube ich nur wen mehr als 32 Maps auf einen Core laufen was aber auch wieder komisch ist weil bei uns sind es genau 31.
[B] EA-Origin Acc. BFBC2 Limit Edition & Crysis2 Limit Edition [S] PSC/E*g /uvm...
10/19/2011 - elite*gold Trading - 0 Replies
Hey , Ich Vkfe/Tausche mein eigenen EA-Origin acc. Vorhanden: ID/EMAIL PW Inhalt des acc's.: BattleField Bat Company 2 + Vietnam
New Hack No Card Limit/kein karten limit
05/12/2010 - General Gaming Discussion - 3 Replies
#reoved



All times are GMT +1. The time now is 08:04.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.