[Help] DarksWeb's Help Thread

Някой ще ми направи ли модул за 3rd Hero Quest?
DarksWeb 0.3.

Pls Help :)
 
Някой ще ми направи ли модул за 3rd Hero Quest?
DarksWeb 0.3.

Pls Help :)

3-rd quest не е нужно да се направи за darksweb просто ти трябва clear_var.php и един config.php от който да извлича ДБ :) и това е :)
 
Моля да ми бъдат изтрити старите мнения. :)

Ето модул за 3rd Quest за DarksWeb 0.3

В 3rd_do.php се променя кой левел и кой рес да иска
Code:
$resets = '[COLOR="Lime"]5[/COLOR]';
$levels = '[COLOR="Lime"]400[/COLOR]';
3rd.php
PHP:
<?
ob_start();
session_start();
include("3rd_do.php");
include("../config.php");
$account_id = secure($_SESSION['member_username']);
$account_id = clean_var($account_id);
?>

<form action='' name='' method='post'>
<table align='center' width='400' class='maintable'>
<thead>
<tr>
<td align='center'>3rd Quest Complete</td>
</tr>
</thead>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align='center'>Select Character:

<select class='maintable' name='character'><optgroup label='Select a character'>
<?php

$charq = mssql_query("Select name from Character where AccountID='$account_id'");

for($i=0;$i < mssql_num_rows($charq);++$i)
{
$row = mssql_fetch_row($charq);

echo"
<option value='$row[0]'><span class='maintable'><b>$row[0]</span></option>
";
}
?>
</select>

</td>
</tr>
<tr>
<td align='center'><input type='submit' name='tree_quest' value='Complete Quest'></td>
</tr>
<?php
if(isset($_POST['tree_quest'])) {tree_quest(); } 
?>


</table>
</form>
</table>

3rd_do.php
PHP:
<?
function tree_quest()
{
$character = secure($_POST['character']);
$account = secure($_SESSION['user']);


$charq = mssql_query("Select class from Character where name='$character'");
$char = mssql_fetch_row($charq);

$request = mssql_query("Select cLevel,Resets from Character where name='$character'");
$qqq = mssql_fetch_row($request);

if($char[0] == 1) {$newclass =  3; }
elseif ($char[0] == 17) {$newclass = 19; }
elseif ($char[0] == 33) {$newclass = 35; }
elseif ($char[0] == 48) {$newclass = 50; }
elseif ($char[0] == 64) {$newclass = 66; }
elseif ($char[0] == 96) {$newclass = 98; }


$resets = '5';
$levels = '400';

$statusaq = mssql_query("select * from MEMB_STAT where memb___id='$account' and connectstat='1'");
$statusa = mssql_num_rows($statusaq);
if($statusa != 0) { $statusq = mssql_query("select GameIDC From AccountCharacter where Id='$account'"); $statusr = mssql_fetch_row($statusq); }

if(empty($character)) { echo"<tr><td align='center' class='modules'><b>Error:</b> Please select Character !</td></tr>"; $error=1; }
else{
if($qqq[0] < $levels) { echo"<tr><td align='center' class='modules'><b>Error:</b>Before you complete 3rd quest, you need <b>$levels Level</b></td></tr>"; $error=1; }
if($qqq[1] < $resets) { echo"<tr><td align='center' class='modules'><b>Error:</b>Before you complete 3rd quest, you need <b>$resets Resets</b></td></tr>"; $error=1; }
if($statusr[0] == $character) { echo"<tr><td align='center' class='modules'><b>Error:</b> Character $character Is Online ! Please Log Off !</td></tr>"; $error=1; }
if($char[0] == 0 or $char[0] == 16 or $char[0] == 32 or $char[0] == 80) { echo"<tr><td align='center' class='modules'><b>Error:</b> Before you complete 3rd quest, you need to complete 2nd quest !</td></tr>"; $error=1; }
if($char[0] == 3 or $char[0] == 19 or $char[0] == 35 or $char[0] == 50 or $char[0] == 66 or $char[0] == 83 or $char[0] == 98) { echo"<tr><td align='center' class='modules'><b>Error:</b> You are completed 3rd quest !</td></tr>"; $error=1; }
if($error != 1)
{
echo"<tr><td align='center' class='modules'><span class='online'>3rd Quest is completed on character $character !</span></td></tr>";

$a = mssql_query("Update Character set class='$newclass' where name='$character'");
}}}

?>
 
Last edited:
errorflm.jpg


Need Some HELP!!!

Im Using 2k5 SQL Server, And No Matter How I Change IP Still This Show's...
 
Yes I Have Tried 127.0.0.1 And Localhost As Well... What Could Be The Problem?...

I Have Done The Basic Thing To RUN The Installation...
 
maybe your sql server are stopped? or you write wrong username / password of SQL?
 
maybe your sql server are stopped? or you write wrong username / password of SQL?

I Just Said That I Have Done The Basic Part Of Running The Installation And Still This Error Show's?...

Note: Im Using SQL 2k5.
 
only with our site you have this problem or and with other sites it so?
 
When A MSSQL Connection Needed But For ODBC I Have Problem,..

So, What It Is Do I Have To Do?...

I Have Re-Installed SQL And XAMPP So Do Speak...

What Have i Missed?...
 
I am not so sure about this but I think that tere is another config file for the installation If you want look for something like that :)
 
I am not so sure about this but I think that tere is another config file for the installation If you want look for something like that :)

Well,.. Thanks For The Help... Still Can't Install It...

If Somebody Could Really Point Me In The Right Path To Solve This Problem, Thanks.

By The Way,

Happy New Year!
 
Problem Solved!

By The Way, Is The Project Still In Under Development?...

It Could Need To Add More In Game Event Count Down Timer Coz' There's Only D.S. And B.C. In Present?..

It Would Be Better If C.C. And Some Other Main Event's Could Be Added Unto It?

And An ADMINCP Aswell?!...

Things Like That?..
 
I can`t install the website ... why give this error ? ... please help :D

"Darksteam WebSite 0.1 FINALL" - it is :D


Имам същия проблем. Преди да инсталирам сайта ми излиза и грешка в index.php


PHP:
Parse error: parse error, expecting `'{'' in d:\easyphp1-8\www\includes\muweb.php on line 2677
 
сложи си xampp разкарай тоя easyphp и всичко ще ти е ОК
 
Аз съм с Windows 7 x64 преди бях сложил xampp и ми се бъгваше и не стартираше. Коя версия да изтегля ?