hmm ok but can u do for me a script for the reset without rewards?
i need a with reset normal receiving points for reset and needing money to reset
that isnt only me needing i think pliz
make that...
Printable View
hmm ok but can u do for me a script for the reset without rewards?
i need a with reset normal receiving points for reset and needing money to reset
that isnt only me needing i think pliz
make that...
You don't really need to.. I learned everything I did right here on the forum.. by looking at other people's packages.. And to get this website to work you don't even need to know how to... :)Quote:
Originally Posted by xtasy
FragFroh can u change reset method. i dont know php and i need "normal" reset method: simply reset char without extra items :)
ok, extract this package into your main directory, should give you reset without rewards - haven't tested it myself yet though!
TakaShi^^: I suggest you first try to get your webserver running following the guides here, this thread is only for questions concerning this specific package :)
Ok SImple Just FOllow Tis Guide Below by daemon_px
Ok guys, I'm doing this step by step, while I'm installing Appserv 2.4.0 (get it at Appserv ,this pack comes with Apache, PHP and MySQL.
In this guide I'm not using MySQL, as IO* PHP MU Web Center is designed to work with Microsoft SQL Server, and if people have trouble using it as it is, i wonder if I'd go around asking to change scripts.
Let's move on:
1. Installing Apache webserver & PHP Support:
Just follow on-screen instructions regarding where to Install, in the Setup Type, choose Custom.
Untick phpMyAdmin And MYSQL
Note: DUN UNTICK Apache and PHP.
Next, type in your server name: something like www.mydomain.com or just leave it as localhost.
If localhost is chosen, the webserver will work only locally.
Remember that you can't just come up with a servername, it has to be registered and working DNS.
You can get free DNS with "auto" update for dynamic IPs from http://www.no-ip.com or http://www.no-ip.com/ (I won't give any help on this, read the sites FAQ's).
Type in the server admin e-mail (probably it's your's), and the port where it sould be listening for conections. If possible, just leave it 80.
------------------- my config for this dialog ------------------------
server name: e-daemon.gotdns.org
server admin email: services.admin@e-daemon.gotdns.org
port: 80
----------------------------------------------------------------------------
Click next, and setup will finish.On the last dialog, let it start apache. No need to start MySQL, as it hasn't been installed.
Now, if you type your chosen server name (localhost or whatever) in your web browser, you'll get a wellcome page from AppServ.
- !!!!!!!!!!!!!!! Your webserver is now running !!!!!!!!!!!!!!!!!!
////////////////////////////////////**********************\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\
2. Configure PHP so it works with SQL (No more "Line 9 error")
I think this is where most people get in trouble, but that's just because they haven't read IO* readme that goes with the webpage files.
Let's open the php.ini file (it's in your windows dir - for me it's "C:\WINNT\php.ini" ). Use notepad to open it, disable word wrap, so you can check line numbers on the status bar.
*In line 576, where it reads
;extension=php_mssql.dll
take the leading ";"
Save the file, close, and restart Apache (If you haven't done it allready, bring up apache monitor - it's in your start menu\AppServ\Apache Control Server - it's easyer to stop/start apache this way).
Now you can extract the files from Website(FragFrog)New Package(Extract to C:appserv/www/here
3. Configure Webcenter and/or your SQL server so they work with each other
After extracting the files, let's open config.php in notepad.
===================In Config.PhP=================
<?php
//=========== FragFrog's MU WebCenter ===============
// Welcome to FrogMu's WebCenter, originally based on
// IO*'s files and editted and modified by FragFrog
//=========== FragFrog's Mu WebCenter ================
//============== USER EDITABLE AREA ===================
// Enter the username to connect to the db
$dbuser = "sa";
// Enter the password for the SQL Server
$dbpasswd = "";====>Change Tis to ur PassWord
//Admin Login
$alogin = ""; ===>U can use sa
//Admin Password
$apass = ""; ===>Change Tis to ur PassWord
========================================================
In Order to View it,It Should be as Example http://lala.no-ip.org/Website/
Change Lala.no-ip.org to ur dns name ^^ Ok after tis Done ^^
1)Open opties_reset.php And Change tis Lines
<center>
<a href='http://fragfrog.mine.nu/armor/reset.php'>ARMOR</a>
<a href='http://fragfrog.mine.nu/wing/reset.php'>WINGS</a>
<a href='http://fragfrog.mine.nu/weapon/reset.php'>WEAPON</a>
</center>
TO
<center>
<a href='http://youripaddress/armor/reset.php'>ARMOR</a>
<a href='http://youripaddress/wing/reset.php'>WINGS</a>
<a href='http://youripaddress/weapon/reset.php'>WEAPON</a>
</center>
2nd thing:Please copy config.php after u have edited it and paste in Weapon Folder,Wing Folder and Armour Folder which look like tis ===>Website\weapon,Website\wing,Website\armor
=========================================================
So I Should Look Like this
[U]Weapon Config.php[/U](C:\AppServ\www\Website\weapon)
// Enter the IP or DSN of the database server to connect to
// Change to your server IP (if remote only) works with DNS
$dbhost = "127.0.0.1";
// Enter the username to connect to the db
$dbuser = "sa";
// Enter the password for the SQL Server
$dbpasswd = "password";
//Admin Login
$alogin = "Admin";
//Admin Password
$apass = "password";
//Database Name
$db = 'MuOnline';
//Host. IP If working remotely
$host = '127.0.0.1';
$ip = "127.0.0.1";
$regsubmit = "regform.submit()";
$msconnect=mssql_connect("$host","$alogin","$apass");
$msdb=mssql_select_db("$db",$msconnect);
?>
-------------------------------------------------------------------------------------------------------
Armour Config.php(C:\AppServ\www\Website\armor)
// Enter the IP or DSN of the database server to connect to
// Change to your server IP (if remote only) works with DNS
$dbhost = "127.0.0.1";
// Enter the username to connect to the db
$dbuser = "sa";
// Enter the password for the SQL Server
$dbpasswd = "passwordhere";
//Admin Login
$alogin = "Admin";
//Admin Password
$apass = "passwordhere";
//Database Name
$db = 'MuOnline';
//Host. IP If working remotely
$host = '127.0.0.1';
$ip = "127.0.0.1";
$regsubmit = "regform.submit()";
$msconnect=mssql_connect("$host","$alogin","$apass");
$msdb=mssql_select_db("$db",$msconnect);
?>
==========================================================
Wing Config.php(C:\AppServ\www\Website\wing)
// Enter the IP or DSN of the database server to connect to
// Change to your server IP (if remote only) works with DNS
$dbhost = "127.0.0.1";
// Enter the username to connect to the db
$dbuser = "sa";
// Enter the password for the SQL Server
$dbpasswd = "passwordhere";
//Admin Login
$alogin = "Admin";
//Admin Password
$apass = "passwordhere";
//Database Name
$db = 'MuOnline';
//Host. IP If working remotely
$host = '127.0.0.1';
$ip = "127.0.0.1";
$regsubmit = "regform.submit()";
$msconnect=mssql_connect("$host","$alogin","$apass");
$msdb=mssql_select_db("$db",$msconnect);
?>
Forum Setup
If u wan simple forum go tis http://bb.hostaforumfree.com/new_forum.php
it easy and fast =)
=========================================================
All Credit Go to FragFroG :thumbup:
Wow, thanks TakaShi^^, I kind'a presumed everyone already had a working webserver.. ;)
Well,I love ur script very much with nice background,wat i wan to know about the script is
tat how do i change the resolutions to 800time 600 i cant see the lower part of it T_T
Simplest way open ure index.php in a text editor and find this line <body scroll=no>, take out that scroll=no and that will bring back the scroll bar so u can scroll down the screen.
fragfrog sorry but the package without reward dont add extra points and dont ask for money to reset.
can u make that to us?a package adding extra points and asking for money to reset?
For info on how to install your forum: http://www.phpbb.com/support/tutorials/
Concerning alternate reset pages: I suggest you search trough my code for the PK clear page (pk_clear_done.php if I remember correctly) on how to ask money for it, and the stats adder page for how to give stat points. Its all a simple matter of combining :)
Look Like everybody understand wat to do,and tat great^^
for our old method to reset use the package without reward of fragfrog and then edit reset_reward_done-php with this
Code:<style type="text/css">
<!--
.style1 {
color: #FF0000;
font-size: 14px;
**
-->
</style>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="1" style="border-left:1px solid #666666;border-right:1px solid #666666"></td>
</tr>
</table>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="img/css.css" rel="stylesheet" type="text/css">
<p>
<style type="text/css">
<!--
.style1 {color: #FF0000 **
.style2 {color: #FF0000 **
.Estilo5 {color: #666666**
.Estilo6 {font-size: larger**
.Estilo8 {color: #FF0000; font-weight: bold**
-->
</style><body leftmargin="0" topmargin="0">
<?php
require 'config.php';
$name = stripslashes($_POST['name']);
$login = stripslashes($_POST['login']);
$lvlreq = 349;
$newlvl = 1;
$exp = 0;
$money = 50000000
?>
<?php
$conn = mssql_connect("$dbhost","$dbuser","$dbpasswd");
mssql_select_db('MuOnline', $conn);
$query_reset = mssql_query("SELECT * FROM Character WHERE Name = '".$_POST['name']."' AND AccountID = '".$_POST['login']."'");
while($row_reset = mssql_fetch_array($query_reset))
{
$resetcount = $row_reset['Resets'];
$resetplus = $resetcount + 1;
$value_points = 350 * $resetplus;
$stat_points = 26;
**
if (mssql_num_rows(mssql_query("SELECT * FROM Character WHERE Name = '".$_POST['name']."' AND AccountID = '".$_POST['login']."'")) > 0) {
$row = mssql_fetch_array(mssql_query("SELECT * FROM Character WHERE Name = '".$_POST['name']."' AND AccountID = '".$_POST['login']."'"));
if ($row['cLevel'] > '349') {
if ($row['Money'] > $money) {
$money_total = $row['Money'] - $money ;
$query = mssql_query("
UPDATE Character SET cLevel = '$newlvl' WHERE Name = '".$_POST['name']."' AND AccountID = '".$_POST['login']."'
UPDATE Character SET money = '$money_total' WHERE Name = '".$_POST['name']."' AND AccountID = '".$_POST['login']."'
UPDATE Character SET Experience = '$exp' WHERE Name = '".$_POST['name']."' AND AccountID = '".$_POST['login']."'
UPDATE Character SET LevelUpPoint = '$value_points' WHERE Name = '".$_POST['name']."' AND AccountID = '".$_POST['login']."'
UPDATE Character SET Strength = '$stat_points' WHERE Name = '".$_POST['name']."' AND AccountID = '".$_POST['login']."'
UPDATE Character SET Dexterity = '$stat_points' WHERE Name = '".$_POST['name']."' AND AccountID = '".$_POST['login']."'
UPDATE Character SET Vitality = '$stat_points' WHERE Name = '".$_POST['name']."' AND AccountID = '".$_POST['login']."'
UPDATE Character SET Energy = '$stat_points' WHERE Name = '".$_POST['name']."' AND AccountID = '".$_POST['login']."'
UPDATE Character SET Resets = Resets+1 WHERE Name = '".$_POST['name']."' AND AccountID = '".$_POST['login']."'");
if (!$query) {
echo "<font color='0099FF'><font size='2'>Character Reset could not be properly preformed. Database threw an error.";
** else {
echo "<font color='0099FF'><font size='2'>".$_POST['name']." is successfully Reseted..";
**
** else {
echo "<font color='0099FF'><font size='2'>Character Reset could not be preformed. Not enough zen.";
echo "<br>Actual (".$row['Money'].") - Needed ($money)";
**
** else {
echo "<font color='0099FF'><font size='2'>Character Reset could not be preformed. Your not Level 350.";
**
** else {
echo "<font color='0099FF'><font size='2'>Character Reset could not be performed. Character ".$_POST['name']." or the Login given do not match.";
**
?>
</p>
<div align="center">
<table width="67%" height="339" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<tr>
</td>
</tr>
</table>
</div>
</body>
</html>
</body>
</html>
It's your package, so expect to be asked for the different variations. It's going to be extremely nice when everyone figures that. Maybe include all variations of the package with a tutorial that explains how to run the different features. I see it doing 2 things; 1] cutting down on all the questions. 2] Being 10x more flexible to fit the many different setups that people feel they want to run for their servers.Quote:
Originally Posted by FragFrog
Beautiful package. I haven't checked it out yet but, I figure anything u put your work into must be fairly nice. Great job Fraggie..
(BTW, your this weeks hero [you kick ass!]... But, Minas still rox!)
alfrosty99: it was never meant as a complete package everyone could just copy paste and have it working. Better see it as a total of 6 months of now and again programming a page, fitting it all into a zipfile and letting other people see what I did. Ambuhed for instance just made a good reset version that costs 5M zen (though he forgot the SQL injection checker), and hopefully so will other people.
PHP isn't that hard of a language, I learned everything I know by simply looking at IO*'s scripts and some basic HTML background knowladge. The package I provided is a possible way of making a serversite, but to make it fit your needs the least you'll have to do is change the images, tekst, etc. Here you have the tools, let people for themselfs figure out what to do with them.. ;)
Awesome reply but, you missed my point. For those who know where to start or even have a slight idea will be able to work through this and do "exactly" what you said. Even a lazy man could build a package by copy and pasting the code where it needs to be. The fact of the matter is that not "everyone" knows a thing or two about PHP let alone HTML.Quote:
Originally Posted by FragFrog
Some I think are just lazy and don't want to do it themselves but, they can't be accounted for to being everyone. I wish as well as u do that everyone knew a bit of everything. You very well proven that point:
Quote:
Originally Posted by FragFrog
Not everyone has the knowledge that we think they should. It was just a opinion and hope I didn't start nothing by it. I just felt that it would be cool to see someone put that much work into a project since we haven't had anyone do anything like that for a while.Quote:
Originally Posted by FragFrog
Yes you do, and you'll always be my hero.. Well, until the next one takes over. Minas kicks ass...Quote:
Originally Posted by FragFrog