Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

AP Adder

Status
Not open for further replies.
Newbie Spellweaver
Joined
Apr 21, 2008
Messages
73
Reaction score
0
Version 1:

Added AP PHP script Adder


Script:


<?php
if (array_key_exists('reset', $_POST)) {
// start the session
include('config.php');
$username = trim($_POST['username']);
$password = trim($_POST['password']);
$username = mysql_real_escape_string($username);
$char = trim($_POST['char']);
$mesocheck = mysql_query('SELECT * FROM meso FROM characters');
$result = mysql_query("SELECT meso, accountid FROM characters WHERE name = '$char' LIMIT 1");
list($meso, $accountid) = mysql_fetch_row($result);

$result = mysql_query("SELECT id, password, salt FROM accounts WHERE name = '$username' LIMIT 1");
list($id, $realpass, $salt) = mysql_fetch_row($result);

$sql = "SELECT * FROM accounts WHERE name = '$username'";
$result = mysql_query($sql);
$row = mysql_fetch_assoc($result);

if($realpass == hash('sha512',$password.$salt) && $accountid == $id && $meso >= 3000000 && $loggedin == 0) {
mysql_query("UPDATE characters SET ap = ap + 200 WHERE name = '$username' LIMIT 1");
mysql_query("UPDATE characters SET meso = meso - 120000000 WHERE name = '$char' LIMIT 1");
echo "<center><b>You have payed 30 mil from Char: $char to get 200 AP for Char: $character!</b></center>";
} else
echo "<font color = red><b><center>You must be logged out and have 30 Mill to purchase AP</center></b></font>"; }
// if no match, destroy the session and prepare error message
else {
$message[] = '<b><font color = blue>Wanna buy Abillity Point for a small fee?</font></b>';
}
?>
<!-- start content -->
<div class='welcome'><b><center><br>Welcome to AP shop<br>You can buy Abillity Points here.</center></b></div><br>
<div align="center">
<div class="display">
<?php
if (isset($message)) {
echo '<ul>';
foreach ($message as $item) {
echo "<li>$item</li>";
}
echo '</ul>';
}
?>
</div>
<form id="form1" name="form1" method="post" action="">
<table cellspacing="0" cellpadding="5" width="100%">
<tr>
<td width="50%" align="right" class="list">Username :</td>
<td class="list"><input id="username" type="text" name="username" maxlength="12"></td>
</tr>
<tr>
<td width="50%" align="right" class="list">Password :</td>
<td class="list"><input id="password" type="password" name="password" maxlength="20" /></td>
</tr>
<tr>
<td width="50%" align="right" class="list">Character paying 30 mil :</td>
<td class="list"><input id="char" type="text" name="char" maxlength="12"></td>
</tr>
<tr>
<td align="right" colspan="2"><br><b><center><input id="reset" name="reset" type="submit" value="Buy 200 APoints!" /></center></b><br><br><center><img src="
dir3 - AP Adder - RaGEZONE Forums

</tr>
</table>
</form>
</div>
<!-- end content -->


DIDNT TESTED!


contains:

need 30mill to pay for 200 APoints
must be logged-out


name it ap.php


CREDITS:

ZiMS for NX Buying Script >> Changed for AP Buying by me (not that good in PHP..)



*BTW-
Made for israelian Forum and for u only :p
 
Newbie Spellweaver
Joined
Jun 15, 2008
Messages
99
Reaction score
0
Re: [RELEASE]AP Adder

Are you buying the AP Points? Or are you like adding them from Points you have?
 
Newbie Spellweaver
Joined
Apr 21, 2008
Messages
73
Reaction score
0
Re: [RELEASE]AP Adder

Ur paying mesos for AP.
 
Master Summoner
Loyal Member
Joined
Nov 30, 2007
Messages
511
Reaction score
0
Re: [RELEASE]AP Adder

That's really stupid.
 
Newbie Spellweaver
Joined
Apr 21, 2008
Messages
73
Reaction score
0
Re: [RELEASE]AP Adder

ur sig is stupid X_X
 
Junior Spellweaver
Joined
Jun 27, 2008
Messages
148
Reaction score
0
Re: [RELEASE]AP Adder

Rebirth > Buying AP.
 
Newbie Spellweaver
Joined
Apr 21, 2008
Messages
73
Reaction score
0
Re: [RELEASE]AP Adder

something like that
if u rebirth then u can buy more AP and u will be stronger :p
 
Newbie Spellweaver
Joined
Jun 15, 2008
Messages
99
Reaction score
0
Re: [RELEASE]AP Adder

Agreed. =P

Not going to tell you who i agree with... ooooo!!!

:2gunsfiring_v1:
 
Junior Spellweaver
Joined
Jun 27, 2008
Messages
148
Reaction score
0
Re: [RELEASE]AP Adder

something like that
if u rebirth then u can buy more AP and u will be stronger :p
Why not just rebirth some more? Having 9999 AP at level 1 is boring without any work.
 
Junior Spellweaver
Joined
Feb 3, 2008
Messages
183
Reaction score
2
Re: [RELEASE]AP Adder

Does this really works? Because im tired of this...

If any field doesnt have a value it gives error (Sorry about my english).

I still have a question... Why pay? o.o

EDIT: :O Sry i readed all and is an PHP script for Buy AP not for Add AP
 
Skilled Illusionist
Joined
Apr 12, 2008
Messages
397
Reaction score
0
Re: [RELEASE]AP Adder

I kinda have to agree with igoofy..... It would even make more sense to buy ap with NX but in smaller increments.......
 
Newbie Spellweaver
Joined
Apr 21, 2008
Messages
73
Reaction score
0
Re: [RELEASE]AP Adder

if u want me to add it only if u buy it with NX i can do it :p
 
Newbie Spellweaver
Joined
Apr 13, 2008
Messages
32
Reaction score
1
Re: [RELEASE]AP Adder

I kinda have to agree with igoofy..... It would even make more sense to buy ap with NX but in smaller increments.......
Then look at the source and edit it to your needs...
Or just convert NX > Mesos if your server sells NX for Mesos.
 
Status
Not open for further replies.
Back
Top