Warning: preg_replace_callback(): Requires argument 2, '$func['entity_fix']('\2')', to be a valid callback in /nfs/c01/h06/mnt/10927/domains/dragonprime.net/html/Sources/Load.php(225) : runtime-created function on line 3
Dragon Kill/Timing Out bug
DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • September 20, 2019, 02:34:31 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Dragon Kill/Timing Out bug  (Read 1389 times)
0 Members and 1 Guest are viewing this topic.
Aeolus
Mod God
*****
Offline Offline

Posts: 1934


You're welcome.


View Profile WWW
« on: January 02, 2014, 04:47:01 AM »

There's a bug in the DK'ing code, where once you DK and get to the 'defeated the dragon' page (not the one with the story), you can time out, log back in, and you'll still be level 15, and do it all again.

I'm here to tell you how to fix it! In dragon.php..

Find:
Code:
<?php
$session
['user']['dragonkills']++;
Replace with:
Code:
<?php
// $session['user']['dragonkills']++;

Find:
Code:
<?php
$nochange 
modulehook("dk-preserve"$nochange);
Add After:
Code:
<?php
$session
['user']['dragonkills']++;

This increases the player's DKs after the defeat, instead of at the same time as the defeat.
« Last Edit: January 02, 2014, 05:00:18 AM by The Doctor » Logged

Pages: [1]   Go Up
  Print  
 
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
75 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search