DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • March 19, 2019, 10:20:01 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Resource Pages

Pages: [1]   Go Down
Author Topic: Control of Flawless Fights  (Read 2396 times)
0 Members and 1 Guest are viewing this topic.
« on: June 18, 2004, 10:43:26 AM »

This got buried in another post so I'll put it here in a new one.

I did this on my server to control runaway perfect fights. This also prevents resurrects from gaining flawless fights.

Add to accounts:
perfection  int 11

Add this to newday.php:
$session['user']['perfection'] = 0;

Change the flawless fight call in forest.php to this:
//begin change

//if ($session[user][hitpoints] == $session[user][maxhitpoints]){    
if ($badguy['diddamage']!=1){
if ($session['user']['perfection']<=10 && $session['user']['spirits']>=-2){
if ($session['user']['level']>=getsetting("lowslumlevel",4) || $session['user']['level']<=$creaturelevel){
output("`b`c`&~~ Flawless Fight! ~~`\$`n`bYou receive an extra turn!`c`0`n");
output("`b`c`&~~ Flawless Fight! ~~`b`\$`nA more difficult fight would have yielded an extra turn.`c`n`0");
output("`n`b`cYou can't get any flawless fights right now.`c`b");

//end change

To change the amount of flawless fights allowed simply change the number in this line:
if ($session['user']['perfection']<=10

Pages: [1]   Go Up
Jump to:  

DragonPrime Notices
Play LoGD on Dragonprime

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