PvP by DOUBLET, edit by Dragonking       Back to File List | Edit This File

PvP by DOUBLET, edit by Dragonking - Click to Download
Submitted by Dragonking on 01.18.2007 (1024 Downloads)
For the lazy people. This is the PvP mod by DOUBLET. But in the original version you can't battle with monsters anymore. This Edit keeps the moster battles.

Full credit goes to Doublet
File rating: 3.09 out of 5.00 (11 votes total).
Rate this file:       (Sucks) 1   2   3   4   5 (Rocks)      

Posted by Fantasia on 05.10.2007
For those of you using this PvP script and get an error "Call to undefined Function" in the Readme that comes with this file, the lines that read;

----------------CODE----------
// lines start
if ($do[0] == "mainfight") { include('pvpfight.php'); mainfight(); }
if ($do[0] == "pvpfight") { include('pvpfight.php'); fight(); }
if ($do[0] == "pvpfight2") { include('pvpfight.php'); fight2(); }
if ($do[0] == "pvpfight3") { include('pvpfight.php'); fight3($do[1]); }
if ($do[0] == "pvpfight4") { include('pvpfight.php'); fight4($do[1]); }
       //end of lines
----------------END CODE ---------------

If you had a brain cell you'd see that it includes the pvpfight.php, then if you opened that file and took at look the the functions, you'd have noticed the functions are pvpfight, pvpfight 2 etc etc therefore, the code should read like this;

----------------CODE---------------
 // lines start
if ($do[0] == "mainfight") { include('pvpfight.php'); mainfight(); }
if ($do[0] == "pvpfight") { include('pvpfight.php'); fight(); }
if ($do[0] == "pvpfight2") { include('pvpfight.php'); fight2(); }
if ($do[0] == "pvpfight3") { include('pvpfight.php'); fight3($do[1]); }
if ($do[0] == "pvpfight4") { include('pvpfight.php'); fight4($do[1]); }
       //end of lines
-----------------END CODE-------------

This is what i changed, an dnow it works A-OK... Enjoy :)
Posted by Fantasia on 05.10.2007
My apologies, the CORRECT code should read ...
------------------------

         // lines start
if ($do[0] == "mainfight") { include('pvpfight.php'); mainfight(); }
if ($do[0] == "pvpfight") { include('pvpfight.php'); pvpfight(); }
if ($do[0] == "pvpfight2") { include('pvpfight.php'); pvpfight2(); }
if ($do[0] == "pvpfight3") { include('pvpfight.php'); pvpfight3($do[1]); }
if ($do[0] == "pvpfight4") { include('pvpfight.php'); pvpfight4($do[1]); }
       //end of lines
-----------------------------

Need a new Keyboard, Ctrl key is bugered!!
Posted by Dragonking on 05.12.2007
sorry for uploading the wrong file, but it worked fine for me so i uploaded the current file (but the editted version was on my file host)
Posted by Fantasia on 05.12.2007
No problem :) I just fixed it myself, and added compatablity with Mail Mod, and Class image Mod i recently uploaded it, i guess it was you who downloaded it???.. I also noticed, when you WIN a battle, it is broken, i find the Problem, in the pvpfight file, when you click Back to Main Button the Button name is Won but the $_Post variable is looking for Win, :)
Add A Comment

In order to cut down on comment spam, you must be registered on the support forums and provide your username and password before you are allowed to comment. The name shown in your comment will be your forums display name. Sorry it had to be like this. If you haven't already, please register an account.

Forums Username:


Forums Password:


Your Comment:




Information & Rules
This is a file index for any Dragon Knight modifications. If you've made a mod you'd like to share with the community, upload it.

Mod authors, please include a name, version, and brief description along with your file. All files should be submitted in a zip file that includes the actual PHP scripts as well as any readme/instruction files.

DISCLAIMER: I take absolutely no responsibility for the content or functionality of any of these files. You use them entirely at your own risk. Make sure to run all files through a virus scanner before opening them. Hopefully the people here are above such petty nonsense as putting a virus in the files, but you can never be to careful.