[Help]Monsters

Results 1 to 3 of 3
  1. #1
    C# Developer stealarcher is offline
    Grand MasterRank
    Jan 2008 Join Date
    571Posts

    [Help]Monsters

    Well, im working on a website, and was going to add some stuff about experience rates etc, but i cant find out where its located. I was almost positive it was in a table called monsters, but i cant seem to find it in my database. So, my question is, in the MySQL database, where do you add monsters. If im wrong about where the xp rates are, can u please tell me where they are. Also drop rates if you will.


  2. #2
    Sorcerer Supreme james1992_2006 is offline
    Member +Rank
    Aug 2006 Join Date
    illlinoisLocation
    427Posts

    Re: [Help]Monsters

    Quote Originally Posted by stealarcher View Post
    Well, im working on a website, and was going to add some stuff about experience rates etc, but i cant find out where its located. I was almost positive it was in a table called monsters, but i cant seem to find it in my database. So, my question is, in the MySQL database, where do you add monsters. If im wrong about where the xp rates are, can u please tell me where they are. Also drop rates if you will.
    i aint sure where the drop rates or xp rates would be located in ure db... if there even located in it at all they might be just located in the source so check that 1st 2nd off there's most likely a place to set monster spawns and monster id's/etc in ure db 1's might be called monsters and the 1 other 1 might be called just monster alltho i cant be 2 sure on any of that becuz i dont got the db u have... lol o and also if u do find the exp/drop rates in ure server for the website just manually set the exp/drops for it instead of having it check the mysql db unless ofc ure db has it set there also

    or ofc u could just make a table with it in it if u dont alrdy got 1...

    $drop = mysql_query("DROP TABLE IF EXISTS rates");
    $create = mysql_query("CREATE TABLE rates (title varchar(100), forums varchar(100), client varchar(100), patch varchar(100), exprate varchar(100), droprate varchar(100), moneyrate varchar(100))");
    $insert = mysql_query("INSERT INTO rates (title, forums, client, patch, exprate, droprate, moneyrate) VALUES ('".$_POST["title"]."', '".$_POST["forums"]."', '".$_POST["client"]."', '".$_POST["patch"]."', '".$_POST["exp"]."', '".$_POST["drop"]."', '".$_POST["money"]."')");

    if(!$create) {
    echo '<p class="style3">Cannot create tables!</p>';
    exit();
    }

    and also u could make something like a install.php where u can manually type the rates once u find them out in the source

    </tr>
    <tr>
    <td class="main"><span class="style3">Server Exp Rate: </span></td>
    <td><input name="exp" type="text" id="exp"></td>
    </tr>
    <tr>
    <td class="main"><span class="style3">Server Drop Rate: </span></td>
    <td><input name="drop" type="text" id="drop"></td>
    </tr>
    <tr>
    <td class="main"><span class="style3">Server Money Rate: </span></td>
    <td><input name="zuly" type="text" id="Money Rate"></td>
    </tr>

    there's also a few other ways u could prolly do this.... :P

    "p.s. thanks 2 iced/xerorecoil for the php coding lol"

  3. #3
    C# Developer stealarcher is offline
    Grand MasterRank
    Jan 2008 Join Date
    571Posts

    Re: [Help]Monsters

    haha yeah. If it didnt exist in my database it prolly wouldnt connect to the server if i just created a new table would it :s.



Advertisement