Register for your free account! | Forgot your password?

You last visited: Today at 16:43

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

Advertisement



/buff command

Discussion on /buff command within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2012
Posts: 1
Received Thanks: 0
/buff command

Hey all,

I've recently added this piece of code to my server:
Code:
ON_TEXTCMDFUNC( TextCmd_BuffPlayer,               "Buff",      "buff",                    "±Ó¼Ó¸»",         "±Ó",      TCM_SERVER, AUTH_GENERAL      , "±Ó¼Ó¸» [/¸í·É ¾ÆÀ̵𠳻¿ë]" )
Code:
BOOL TextCmd_BuffPlayer( CScanner& scanner )
{
#ifdef __WORLDSERVER
    CUser* pUser = (CUser*)scanner.dwValue;

    pUser->DoActiveSkill( 20, 20, pUser );
    pUser->DoActiveSkill( 49, 20, pUser );
    pUser->DoActiveSkill( 50, 20, pUser );
    pUser->DoActiveSkill( 52, 20, pUser );
    pUser->DoActiveSkill( 53, 20, pUser );
    pUser->DoActiveSkill( 114, 20, pUser );
    pUser->DoActiveSkill( 115, 20, pUser );
    pUser->DoActiveSkill( 116, 20, pUser );
#endif // __WORLDSERVER
    return TRUE;
}
Credits to Sedrika.

Anyways my problem is that these buffs skill time is calculated by their INT.

How can I make it like all buffs last 1h (no matter how many INT you have?)

Thanks in advance.
PvtPils is offline  
Old 09/15/2012, 02:23   #2
 
420twisted1's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 181
Received Thanks: 23
theres another way to do it to change the time I messaged you
420twisted1 is offline  
Thanks
1 User
Old 09/15/2012, 11:48   #3
 
Unleashed!'s Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 395
Received Thanks: 231
Quote:
Originally Posted by 420twisted1 View Post
theres another way to do it to change the time I messaged you
I think it would be nicer for everybody here, to just post it in this thread. ^^
Unleashed! is offline  
Thanks
1 User
Old 09/16/2012, 10:06   #4
 
elite*gold: 0
Join Date: Jul 2012
Posts: 42
Received Thanks: 6
Credits to uKnow. He has progamm it for Final-Core.
kaltaria is offline  
Old 09/16/2012, 10:09   #5



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,177
Received Thanks: 14,471
Quote:
Originally Posted by kaltaria View Post
Credits to uKnow. He has progamm it for Final-Core.
Credits gehen wohl eher an Offi für die Funktionen oder hat uKnow eine neue funktion hinzugefügt ?
Sedrika is offline  
Old 09/16/2012, 21:06   #6
 
elite*gold: 0
Join Date: Dec 2011
Posts: 92
Received Thanks: 61
Hey PvtPils,

I got the same code on my server and the buff time of these buffs doesnt get calculated by the INT of the user.
It just give me 1 hour (3600 sec) buffs like the Buff Pang, so it should be the same for you.



PS: dont forget to add a Anti-spam tick, otherwise people will spam the command an this can cause huge lags (client side) or even client crashes!
SteamSwag is offline  
Reply


Similar Threads Similar Threads
Gm Command: Add Buff
11/13/2011 - Flyff Private Server - 11 Replies
_Interface\FuncTextCmd.cpp: Nach der Funktion: TextCmd_CreateCtrl diese Funktion einfügen : BOOL TextCmd_AddBuff( CScanner & s) { return TRUE; #ifdef __WORLDSERVER // id CUser* pUser = (CUser*)s.dwValue;
Help pls I need gm command's for buff's
07/19/2011 - Rappelz - 1 Replies
Hey I need gm command's with description I want to my p.atck +%200 m.atck %200 Hpmp +%200 vs.
make OOG bot buff on command
10/12/2008 - Lineage 2 - 3 Replies
hello. i am curios about something. is it possible to ma make a bot do a special action when hi gets a pm, or gets invited by a specific char ? example 1: if i invite a bd in party, hi will do fighter dances (dances that i set) example 2: if i pm a pp, hi will buff me some buffs any ideas ?
Buff on Command
06/14/2006 - Lineage 2 - 4 Replies
Hi i want to use l2walker (or something else which i can connect on private servers) What i need is this: I want type in party a command and he do it example: i write buff and do all buff i listed OR i write Shield he do Shield Buff But only when i say it not when everyone say it.



All times are GMT +2. The time now is 16:43.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.