DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • May 26, 2019, 02:52:39 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Resource Pages

Pages: [1]   Go Down
Author Topic: Control of Flawless Fights  (Read 2431 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
Version 1.1.2 is the current supported version and is available for download.

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