[Release] DTWeb 2.0 Release (r00tme version)

Status
Not open for further replies.

Brazil

Member
Joined
Aug 17, 2010
Messages
188
Reaction score
14
Всеки ден следя до къде си стигнал със сайта! .. малко е налудничево като се замисля но имаме сериозна амбиция за сървъра, а тоя умрял сайт дето взехме ме изкарва извън релси :D и не само мен..
 

dota-sdso

Well-Known Member
Joined
Apr 30, 2014
Messages
590
Reaction score
822
Какво не ти харесва в този сайт, който сте взели? По принцип изглежда доста развит, поне на реклама, пише че поддържа всички сезони има доста модули.
 

mistar_ti

Active Member
Joined
Dec 5, 2010
Messages
163
Reaction score
104
Какво не ти харесва в този сайт, който сте взели? По принцип изглежда доста развит, поне на реклама, пише че поддържа всички сезони има доста модули.

Анатема за тоз сайт оня крадец дано го хакнат и му изтеглят всичките пари и да му релийзнат всичкия краден код.
 

Diyan

Well-Known Member
Joined
Nov 21, 2012
Messages
332
Reaction score
252
Анатема за тоз сайт оня крадец дано го хакнат и му изтеглят всичките пари и да му релийзнат всичкия краден код.

Та аз вече го бях релийснал (предишната му версия, но кода е един и същ). За всеки случай, ще направя нова тема и ще го публикувам пак. В интерес на истината старата версия си работеше по-добре. Ако някой лично го интересува нещо конкретно - нека ми пише личн съобщение.

On topic: Лепа на чичака е номер едно. Ако някой си търси сайт за файловете на DarkMaster 97д+99и - търсенето му приключва тук според мен. Успех занапред и да ни радваш с повече и нови лепове.
 
Last edited:

AnHiMiLaToR

The Prodigy
Joined
Jul 9, 2008
Messages
368
Reaction score
107
Говорете с екипа и направете някаква важна тема или не знам какво друго, но да може да се отнемат клиенти от платения шит и да теглят по-добре безплатното, кракнатото от твоята тема. Да му се поспрат малко клиентите на въпросния и да се осъзнае, защото не е достатъчно качествена услугата.
 

Diyan

Well-Known Member
Joined
Nov 21, 2012
Messages
332
Reaction score
252
Говорете с екипа и направете някаква важна тема или не знам какво друго, но да може да се отнемат клиенти от платения шит и да теглят по-добре безплатното, кракнатото от твоята тема. Да му се поспрат малко клиентите на въпросния и да се осъзнае, защото не е достатъчно качествена услугата.

Не е лошо като идея. Само да направя едно уточнение - не съм краквал нищо, кода ми беше предоставен от създателя му срещу скромна сума пари, тъй като "нямало да му трябва вече, имало си нова версия..". Беше ми предоставено правото да го ползвам/споделям/променям и правя с него каквото сметна за добре. Няма как да го употребя по-добре като го споделя с всички, тъй като на мен не ми е необходим, а вече съм си написал/сглобил сайт за версията, за която ми трябва. Просто съм ползвал един от темплейтите. Благодаря на чичака, че ми code-на дизайна.

И пак ON TOPIC: сайта на чичака е номер едно. Препоръчвам го горещо на всеки, който си търси сайт за по-стара версия от Сезон 2. Даже няма как да го препоръчам достатъчно много, за да внуша на всички колко е добър всъщност.
 
  • Like
Reactions: Brazil and Dea7h

AnHiMiLaToR

The Prodigy
Joined
Jul 9, 2008
Messages
368
Reaction score
107
Специално пиша, за да се извиня - не съм разбрал и съм сметнал, че е кракнато, а всъщност не е. Моя грешка.
 
  • Like
Reactions: Diyan

dedicadobk

Member
Joined
Mar 8, 2015
Messages
32
Reaction score
7
Good afternoon r00tme you could explain how the configuration works // Events => time in seconds
I can not synchronize the Happy Hour events / - / Party Bonus Sky Event Lucky Jewels

the events and every 4 hours with a duration of 50 minutes minus the sky which lasts for 15 minutes

0 -1 -1 -1 -1 o3 00 // Happy Hour
0 -1 -1 -1 -1 07 00 // Happy Hour
0 -1 -1 -1 -1 11 00 // Happy Hour
0 -1 -1 -1 -1 15 00 // Happy Hour
0 -1 -1 -1 -1 19 00 // Happy Hour
0 -1 -1 -1 -1 23 00 // Happy Hour
/////////////////////////////////////////////////////////////////////////
1 -1 -1 -1 -1 02 00 // Party Bonus
1 -1 -1 -1 -1 06 00 // Party Bonus
1 -1 -1 -1 -1 10 00 // Party Bonus
1 -1 -1 -1 -1 14 00 // Party Bonus
1 -1 -1 -1 -1 18 00 // Party Bonus
1 -1 -1 -1 -1 22 00 // Party Bonus
//////////////////////////////////////////////////////////////////////////
2 -1 -1 -1 -1 02 00 // Sky Event
2 -1 -1 -1 -1 06 00 // Sky Event
2 -1 -1 -1 -1 10 00 // Sky Event
2 -1 -1 -1 -1 14 00 // Sky Event
2 -1 -1 -1 -1 18 00 // Sky Event
2 -1 -1 -1 -1 22 00 // Sky Event
////////////////////////////////////////////////////////////////////////////
3 -1 -1 -1 -1 00 00 // Lucky Jewels
3 -1 -1 -1 -1 04 00 // Lucky Jewels
3 -1 -1 -1 -1 08 00 // Lucky Jewels
3 -1 -1 -1 -1 12 00 // Lucky Jewels
3 -1 -1 -1 -1 16 00 // Lucky Jewels
3 -1 -1 -1 -1 20 00 // Lucky Jewels

//Events => time in seconds


$eventtime[3]['name'] = 'Sky Event';
$eventtime[3]['start'] = 'Apr 14, 2018 02:00:00';
$eventtime[3]['repeattime'] = '13500';
$eventtime[3]['opentime'] = '900';

$eventtime[4]['name'] = 'Happy Hour';
$eventtime[4]['start'] = 'Apr 14, 2018 03:00:00';
$eventtime[4]['repeattime'] = '11400';
$eventtime[4]['opentime'] = '50';

$eventtime[5]['name'] = 'Lucky Jewels';
$eventtime[5]['start'] = 'Apr 14, 2018 16:00:00';
$eventtime[5]['repeattime'] = '11400';
$eventtime[5]['opentime'] = '50';

$eventtime[6]['name'] = 'Party Bonus';
$eventtime[6]['start'] = 'Apr 14, 2018 18:00:00';
$eventtime[6]['repeattime'] = '11400';
$eventtime[6]['opentime'] = '50';
 

dota-sdso

Well-Known Member
Joined
Apr 30, 2014
Messages
590
Reaction score
822
Four hours are 14400 seconds not 11400. Opening time could be zero which means the counter will start counting the next event straight after the current is started. So put 14400 sec and 0 as opening time because for these events as far as I know there is no sign in time like BC and they start straight away.
 

dota-sdso

Well-Known Member
Joined
Apr 30, 2014
Messages
590
Reaction score
822
DiXO7RL.png


Има ли желаещи за ъпдейт или да си го задържа за мен? :D
 
Last edited:

GTI

Well-Known Member
Joined
Jan 1, 2011
Messages
1,364
Reaction score
422
Ти чакай краля да види и ще получиш поне 5 Thanks-а :D:
 

vnshell

New Member
Joined
Apr 22, 2018
Messages
19
Reaction score
3
These are the current webstorage functions from market_functions.php with tips to make it work for Season 2. In the same way, you can change all of them. As you can see almost everything is represented with a function which makes the things much easier.

PHP:
function storage_out($item_id,$buyer){
	  $success     = "";
	  $user        = clean_post($buyer); 
	  $id          = (int)($item_id);
      $market_item = mssql_query("Select * from [Storage] where [id] = '".$id."'");
	  $market_pr   = mssql_fetch_array($market_item);
	  $mycuritems  = all_items($user,1200); // Check your warehouse Item column length and type it here  -1920 for Season 2
	  $item        = ItemInfoUser($market_pr['item']);
	  $slot        = smartsearch($mycuritems, $item['x'], $item['y']);
      $test        = $slot * 20;	  // Change this to 32 instead of 20
      $mynewitems  = substr_replace($mycuritems, $market_pr['item'], ($test), 20);   // Change this to 32 instead of 20 
      $message     = array();
      if((mssql_num_rows($market_item)) == 0){
		    $message[] = phrase_storage_invalid_item;
	  }
      elseif(mssql_num_rows(mssql_query("Select * From MEMB_STAT WHERE ConnectStat=1 and memb___id='".$user."'")) != 0){
			$message[] = phrase_leave_the_game;
	  }
	  elseif($market_pr['end_date'] != 'NULL'){
		  $message[] = phrase_storage_invalid_item;
	  }
	  elseif($slot == 1337){
			$message[] = phrase_no_enough_space;
	  }
	  else{
	 
			$success = 1;
			mssql_query("Update [warehouse] set [Items]=0x" . $mynewitems . " where [AccountId]='".$user."'");
			mssql_query("Update [Storage] set end_date='".time()."', buyer_ip='".ip()."' where [id]='".$id."'");
            $message[] = phrase_storage_the_item. "<span title=\"" . $item['name'] . " <br><br><img src=" . $item['thumb'] . "\" class=\"someClass\" >
            <font style=\"font-size: 14px;color:#ff5c26\">" . $item['name'] . " </span></font>" . phrase_itemа_success_re;
            refresh1();
		
			  
	}
    message($message,$success);	
}

function storage_in($item_serial,$item_id,$item_type){
	
include("configs/config.php"); 
if(isset($_SESSION['dt_username']))	{
$user        = ($_SESSION['dt_username']);
$rez         = mssql_fetch_array(mssql_query("Select [AccountId],[Items],[Money] from [warehouse] where [AccountID]='".$user."'"));
$is_online   = mssql_fetch_array(mssql_query("Select [ConnectStat] from [MEMB_STAT] WHERE [memb___id]='".$user."'"));    	
$messages    = array();
$wh_content  = array();
$item_level  = id_type($item_serial);
$itemtem     = ItemInfoUser($item_serial);	
$mycuritems  = all_items($user,1200); // Check your warehouse Item column length and type it here  -1920 for Season 2
$itemsa      = array($mycuritems);
	if (strlen($item_serial) != 20) {  // Change this to 32 instead of 20
	    $messages[] = phrase_market_invalid_item;
	}

	elseif (in_array($item_id."/".$item_type,$option['storage_banned_items'])) {
	    $messages[] = phrase_market_banned_item;
	}
    elseif ($is_online['ConnectStat'] != 0) {
        $messages[] = phrase_leave_the_game;
	}	
	elseif (in_array($item_serial,$itemsa)) {
	    $messages[] = phrase_market_item_not_yours;
	}
	elseif ($rez['AccountId'] != $_SESSION['dt_username']) {
	    $messages[] = phrase_market_item_not_yours;
	}	
	else{


	if (preg_match("/{$item_serial}/", $mycuritems)) {
	    $empty           = str_repeat("F",20); // Change this to 32 instead of 20
	    $mynewitems      = str_replace($item_serial, $empty, $mycuritems);
        
		$update_market   = mssql_query("INSERT INTO [Storage] 
		([item_type],[item_id],[item],[seller],[start_date],[seller_ip],[name], [level],[skill],[luck],[options],[excellent]) VALUES
		('".$item_level["level1"]."','".$item_level["level2"] . "','".$item_serial."','".$user."','".time()."','".ip()."','".$itemtem['name']."','".$itemtem['level']."','".$itemtem['srch_skill']."','".$itemtem['srch_luck']."','".$itemtem['opt']."','".$itemtem['exl']."')");	
		     
		if(!$update_market){
			$messages[] = phrase_market_error_contact_admin;
		}
		else{
	    mssql_query("Update [warehouse] set [Items]=0x" . $mynewitems . " WHERE [AccountId]='" . $user . "'");
		
	    $messages[] = phrase_storage_the_item ."<span style=\"text-shadow:1px 1px; font-size:12pt;cursor: pointer;\" title=\"".$itemtem['name']." <br><br><img src=".$itemtem['thumb']." \" class=\"someClass\" >
        <font style=\"font-size: 14px;color:#ff5c26\">".$itemtem['name']." </span></font>". phrase_item_success_storage;        
		$success = 1;
		
		}
	 } 
    else {	
	    $messages[] .= phrase_storage_item_not_found;
	  }	  
	}
    message($messages,$success); 
  }
} 


 function smartsearch($whbin, $itemX, $itemY) {
        if (substr($whbin, 0, 2) == '0x') {
            $whbin = substr($whbin, 2);
        }

        $items = str_repeat('0', 120);
        $itemsm = str_repeat('1', 120);
        $i = 0;
        while ($i < 120) {
            $_item = substr($whbin, (20 * $i), 20); // Change this to 32 instead of 20
            $level = substr($_item, 0, 1);
            $level2 = substr($_item, 1, 1);
            $level3 = substr($_item, 14, 2);
            $level1 = hexdec(substr($level, 0, 1));
            if (($level1 % 2) <> 0) {
                $level2 = "1" . $level2;
                $level1--;
            }
            if (hexdec($level3) >= 128) {
                $level1 += 16;
            }
            $level1 /= 2;
            $id = hexdec($level2);

            $result = mssql_query("select [x],[y],[Name] from [DPWeb_JewelDeposit_Items] where [id]={$id} and [type]={$level1}");
            $res = mssql_fetch_array($result);


            $y = 0;
            while ($y < $res['y']) {
                $y++;
                $x = 0;
                while ($x < $res['x']) {
                    $items = substr_replace($items, '1', ($i + $x) + (($y - 1) * 8), 1);
                    $x++;
                }
            }
            $i++;
        }
        $y = 0;
        while ($y < $itemY) {
            $y++;
            $x = 0;
            while ($x < $itemX) {
                $x++;
                $spacerq[$x + (8 * ($y - 1))] = true;
            }
        }
        $walked = 0;
        $i = 0;
        while ($i < 120) {
            if (isset($spacerq[$i])) {
                $itemsm = substr_replace($itemsm, '0', $i - 1, 1);
                $last = $i;
                $walked++;
            }
            if ($walked == count($spacerq)) {
                $i = 119;
            }
            $i++;
        }
        $useforlength = substr($itemsm, 0, $last);
        $findslotlikethis = '#^' . str_replace('++', '+', str_replace('1', '+[0-1]+', $useforlength))."#";
        $i = 0;
        $nx = 0;
        $ny = 0;
        while ($i < 120) {
            if ($nx == 8) {
                $ny++;
                $nx = 0;
            }
            if ((preg_match($findslotlikethis, substr($items, $i, strlen($useforlength)))) && ($itemX + $nx < 9) && ($itemY + $ny < 16)) {
                return $i;
            }
            $i++;
            $nx++;
        }
        return 1337;
    }

Could you please create some option to work with normal SS2 in next release? I search many page on google, but DTWeb is only support PHP 7.x.
 
  • Like
Reactions: heroes1412
Status
Not open for further replies.