DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • December 03, 2016, 07:53:04 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Taking Away Just the Mount Buff  (Read 1561 times)
0 Members and 1 Guest are viewing this topic.
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« on: February 19, 2005, 10:58:25 AM »

Currently in the Estate Breakin, it does strip them of their mount buff... but it also takes away their Racial Buff as well.

Is there a clear and easy way, in order to suspend mount buffs over a battle, and have them restored at the end?

I tried this:
Code:
        if (count($session['bufflist']) > 0 && is_array($session['bufflist'])) {
            $session['user']['buffbackup']=serialize($session['bufflist']);
            $session['bufflist']=array();
         } else {
            $session['user']['buffbackup']="";
         }
Then afterwards:
Code:
        if (!is_array($session['bufflist']) || count($session['bufflist']) <= 0) {
           $session['bufflist'] = unserialize($session['user']['buffbackup']);
           if (!is_array($session['bufflist'])) $session['bufflist'] = array();
            $session['user']['buffbackup'] = "";
         }
But that suspends Racial Buff as well. Can't I just:
Code:
suspend_mount_buff();
Or something like that?
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Booger
Captain of the Guard
***
Offline Offline

Posts: 126


I'm a llama!


View Profile
« Reply #1 on: February 19, 2005, 11:09:10 AM »

check out  function suspend_buffs($susp=false, $msg=false) and
function unsuspend_buffs($susp=false,$msg=false) in /lib/battle-skills.php =)
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #2 on: February 19, 2005, 11:16:38 AM »

check out  function suspend_buffs($susp=false, $msg=false) and
function unsuspend_buffs($susp=false,$msg=false) in /lib/battle-skills.php =)

That is probably it... I was looking in lib/battle-buffs.php ... you would think it would be in the Buffs part, wouldn't ya?

Okay, locking topic.
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
47 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search