WEBPAGE → Free Item Page menu

User Tag List

Results 1 to 8 of 8
  1. #1
    Flo8's Avatar Banned
    Reputation
    24
    Join Date
    Sep 2007
    Posts
    29
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    WEBPAGE → Free Item Page

    HOW TO GET A PAGE ON YOUR WEBSITE WHERE PEAPLE GO AND SELECT A ITEM AND GETS MAILED TO THEM!

    I actually wrote this last night. So far it's worked every time. What I did first was create a new character named "Mailer" (you can call it whatever you want of course). The page adds items to Mailer's inventory, then mails them from his inventory to the player you want to send it to. Here's the code. Just replace your DB information


    <html><head><title>Create an Auction on Game Mastas WoW Server</title></head>
    <body>
    <br><br>
    <?php

    ?>


    <FORM ACTION="<?php echo($PHP_SELF); ?>" METHOD=GET>
    <center>
    <table width=600 height=492><tr><td><center>
    <table>
    <tr><td><center>Item</center></td></tr>
    <tr><td><center><INPUT TYPE="TEXT" NAME="item"></center></td></tr>
    <tr><td><center>Send To</center></td></tr>
    <tr><td><center><INPUT TYPE="TEXT" NAME="recipient"></center></td></tr>
    <tr><td><center><INPUT TYPE="SUBMIT" NAME="send" VALUE="Submit"></FORM></center></td></tr>
    </table></center></td></tr></table>


    <?php
    $endTime = round(microtime(true));

    $db = @mysql_connect(localhost, login, pass);
    if (!$db) {
    echo( "<P>Unable to connect to the " .
    "database server at this time.</P>" );
    exit();
    }

    if (!@mysql_select_db("antrix2") )
    {
    echo( "<p>Unable to connect to the Antrix database</p>" );
    exit();
    }


    if ("Submit" == $send) {

    $charNum = mysql_query("SELECT guid FROM characters WHERE Name = '$recipient'");
    $charNum = mysql_fetch_array($charNum);

    $result = mysql_query("SELECT max(guid) as maxguid FROM playeritems");
    $row = mysql_fetch_assoc($result);
    $itemGUID = $row[maxguid] + 1;

    $result = mysql_query("SELECT max(slot) as maxslot FROM playeritems WHERE ownerguid = '333'");
    $row = mysql_fetch_array($result);
    $itemSlot = $row[maxslot] + 1;
    if($itemSlot < 24) $itemSlot = 23;

    $result = mysql_query("SELECT max(message_id) as mid FROM mailbox");
    $row = mysql_fetch_array($result);
    $messageID = $row[mid] + 1;

    $add = "INSERT INTO playeritems SET " .
    "ownerguid=333, " .
    "guid='$itemGUID', " .
    "entry='$item', " .
    "count=1, " .
    "slot='$itemSlot'";

    $sql = "INSERT INTO mailbox SET " .
    "message_id='$messageID', " .
    "player_guid='$charNum[guid]', " .
    "sender_guid=333, " .
    "subject='Attached Item', " .
    "attached_item_guid='$itemGUID', " .
    "stationary=41, " .
    "delivery_time='$endTime'";
    if(mysql_query($add) && mysql_query($sql)) {
    echo("<p>Item sent.</p>");
    } else {
    echo("<p>Error sending item: " . mysql_error() . "</p>");
    }
    }

    ?>
    </font>

    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-289644-4";
    urchinTracker();
    </script>
    </body>

    </html>


    Oh yeah. Make sure the player guid matches the one in the code. Either make a character with guid 333, or change the 333 to something else.

    My only problem now: I can't get antrix to reload the mail table. grr

    Edit: This works with BoP items as well. I tried sending things like Staff of Westfall, Ring of the Martyr, etc, and they all work. That's actually why I created the page. I had someone who wanted an item that at the time wasn't in the database (Swift Nether Drake, item 30609). So I added the item, but he hasn't logged on yet. Since I couldn't just .additem, I decided to mail it to him - so I had to come up with a way. lol

    Here's a screenshot. I guess I do have to add code to figure out durability. I don't have time right now, but if you want to add it, you can just make the current durability = MaxDurability from the items table.




    Last edited by Flo8; 11-14-2007 at 10:46 PM.

    WEBPAGE &#8594; Free Item Page
  2. #2
    jokerjokes's Avatar Active Member
    Reputation
    75
    Join Date
    Apr 2007
    Posts
    902
    Thanks G/R
    3/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WEBPAGE → Free Item Page

    very nice man +rep for this heh

  3. #3
    IcyHot's Avatar Member
    Reputation
    8
    Join Date
    Feb 2007
    Posts
    127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WEBPAGE → Free Item Page

    can you color the parts we gotta change in blue? thanks =)

  4. #4
    jokerjokes's Avatar Active Member
    Reputation
    75
    Join Date
    Apr 2007
    Posts
    902
    Thanks G/R
    3/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WEBPAGE → Free Item Page

    Code:
    <html><head><title>Create an Auction on Game Mastas WoW Server</title></head>
    <body>
    <br><br>
    <?php
     
    ?>
     
     
    <FORM ACTION="<?php echo(); ?>" METHOD=GET>
    <center>
    <table width=600 height=492><tr><td><center>
    <table>
    <tr><td><center>Item</center></td></tr>
    <tr><td><center><INPUT TYPE="TEXT" NAME="item"></center></td></tr>
    <tr><td><center>Send To</center></td></tr>
    <tr><td><center><INPUT TYPE="TEXT" NAME="recipient"></center></td></tr>
    <tr><td><center><INPUT TYPE="SUBMIT" NAME="send" VALUE="Submit"></FORM></center></td></tr>
    </table></center></td></tr></table>
     
     
    <?php
         = round(microtime(true));
     
         = @mysql_connect(localhost, login, pass);
        if (!) {
            echo( "<P>Unable to connect to the " .
            "database server at this time.</P>" );
            exit();
        }
     
        if (!@mysql_select_db("antrix2") )
        {
            echo( "<p>Unable to connect to the Antrix database</p>" );
            exit();
        }
     
     
        if ("Submit" == ) {
     
             = mysql_query("SELECT guid FROM characters WHERE Name = ''");
             = mysql_fetch_array();
     
             = mysql_query("SELECT max(guid) as maxguid FROM playeritems");
             = mysql_fetch_assoc();
             =  + 1;
     
             = mysql_query("SELECT max(slot) as maxslot FROM playeritems WHERE ownerguid = '333'");
             = mysql_fetch_array();
             =  + 1;
            if( < 24)  = 23;
     
             = mysql_query("SELECT max(message_id) as mid FROM mailbox");
             = mysql_fetch_array();
             =  + 1;
     
             = "INSERT INTO playeritems SET " .
                    "ownerguid=333, " .
                    "guid='', " .
                    "entry='', " .
                    "count=1, " .
                    "slot=''";
     
             = "INSERT INTO mailbox SET " .
                    "message_id='', " .
                    "player_guid='', " .
                    "sender_guid=333, " .
                    "subject='Attached Item', " .
                    "attached_item_guid='', " .
                    "stationary=41, " .
                    "delivery_time=''";
            if(mysql_query() && mysql_query()) {
                echo("<p>Item sent.</p>");
            } else {
                echo("<p>Error sending item: " . mysql_error() . "</p>");
            }
        }
     
    ?>
    </font>
    </body>
    </html>
    Im not soo sure, but the green is for the db im sure about that, change that to the name of your database in navicat, and the blue is the guid, like he said.

  5. #5
    IcyHot's Avatar Member
    Reputation
    8
    Join Date
    Feb 2007
    Posts
    127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WEBPAGE → Free Item Page

    anyone know what guid means?

  6. #6
    IcyHot's Avatar Member
    Reputation
    8
    Join Date
    Feb 2007
    Posts
    127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WEBPAGE → Free Item Page

    what do i change the 333 to? i made a human warrior named mailer

  7. #7
    2dgreengiant's Avatar ★ Elder ★


    Reputation
    1190
    Join Date
    Feb 2007
    Posts
    7,129
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WEBPAGE → Free Item Page

    dude that is L33T thanks alot i will include in my account creation package
    If you need me you have my skype, if you don't have my skype then you don't need me.

  8. #8
    Hinderella's Avatar Member
    Reputation
    2
    Join Date
    Nov 2007
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WEBPAGE → Free Item Page

    Stop Taking credit of other peoples work!
    Lightling Is Me Fire Is Your Lightling!

Similar Threads

  1. How do i patch the free items with wpe Pro bug?
    By controlsx2 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 05-31-2008, 01:14 PM
  2. Get free item repairs and skills
    By Ukrajinc in forum WoW EMU Exploits & Bugs
    Replies: 1
    Last Post: 02-25-2008, 10:41 AM
  3. Possible Free items and Gold through Mail
    By Osiris183 in forum WoW Scam Prevention
    Replies: 4
    Last Post: 12-15-2007, 01:48 PM
  4. Free Item Repairs
    By aleyshark in forum World of Warcraft General
    Replies: 2
    Last Post: 09-24-2007, 02:36 AM
  5. Free items from Shadow Lab chests
    By tranta in forum World of Warcraft Exploits
    Replies: 6
    Last Post: 05-13-2007, 03:57 AM
All times are GMT -5. The time now is 03:14 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search