DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • August 18, 2019, 11:04:51 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Problem  (Read 3321 times)
0 Members and 1 Guest are viewing this topic.
BigT
Guest
« on: May 04, 2004, 03:09:58 PM »

Everytime Some one kills the green dragon the go to the shades and cant rezz. After they DK they're hitpoints are set to 0 and they cant rezz, i thought it was a problem in the newday.php but i cant seem to hunt this problem down. Got suggestions?
Logged
Excalibur
Member
Mod God
*****
Offline Offline

Posts: 573


I'm a newbie, plz forgive me!


View Profile WWW
« Reply #1 on: May 04, 2004, 03:51:19 PM »

$session[user][maxhitpoints] are resetted after the dragonkill, and the new maxhitpoints are calculated with these 2 lines of code:
Code:
$hpgain = $session[user][maxhitpoints] - ($session[user][level]*10);
{RESET to ZERO}
$session[user][maxhitpoints]+=$hpgain;

If the MaxHitPoints of a player are lower then 150, lets say 145, $hpgain are equal to:

$hpgain = 145 - (15*10) = -5

Then MaxHitPoints are set equal to $hpgain, that gives an amazing -5   Grin and your players go directly to the Shades.

Probably you have on your server some events that subtract points from MaxHitPoints so you have two options:

1) Remove those events
2) Drop a line in dragon.php just after the new setting of MaxHitPoints, something like this:
Code:
$session[user][maxhitpoints]+=$hpgain;
if ($session[user][maxhitpoints]<10) $session[user][maxhitpoints]=10;
It should solve your problem

Rgds Excalibur
Logged

Spock: Random chance seems to have operated in our favor.
McCoy: In plain, non-Vulcan English, we've been lucky.
Spock: I believe I said that, Doctor.
BigT
Guest
« Reply #2 on: May 05, 2004, 02:50:29 PM »

It is screwed up can any 1 send me a new dragon.php with no mods on it
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5484



View Profile WWW
« Reply #3 on: May 05, 2004, 02:51:52 PM »

Go to Sourceforge (link in the Links page) and download the files.   Roll Eyes
Logged

Play the latest beta version here on DragonPrime
BigT
Guest
« Reply #4 on: May 05, 2004, 02:59:42 PM »

Where are the links I cant find them
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5484



View Profile WWW
« Reply #5 on: May 05, 2004, 03:00:30 PM »

In the "Menu" box, cleverly disguissed as "Links"
Logged

Play the latest beta version here on DragonPrime
FW Viper
Guest
« Reply #6 on: May 05, 2004, 05:31:35 PM »

play nice Talisman  Roll Eyes
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

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