Jump to content

Wantows

Advanced members
  • Content Count

    58
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Wantows

  1. Iteminfo Line xxxx 100% Forging Fruit n1198 10130001 0 0 0 0 0 0 31 0 0 0 0 0 1 1 1 1 99 0 180 -1,-2,-2,-2 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0 0,0 0,0 0 0 0 0 0 0 0 0 0 ItemUse_Forgi 0 0 0 0,0 0,0 0,0 Forging Success Rate 100% 0 xxxx 100% Combining Fruit n1199 10130001 0 0 0 0 0 0 31 0 0 0 0 0 1 1 1 1 99 0 180 -1,-2,-2,-2 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0 0,0 0,0 0 0 0 0 0 0 0 0 0 ItemUse_Combi 0 0 0 0,0 0,0 0,0 Combining Success Rate 100% 0 ItemEffect.lua --100% Forging function ItemUse_Forgi ( role , Item ) local statelv = 10 local statetime = 60 local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) -- SystemNotice( role , Cha_Boat ) if Cha_Boat == nil then AddState( role , role , STATE_JLGLJB , statelv , statetime ) else SystemNotice( role , "Cannot use while sailing" ) UseItemFailed ( role ) return end local StateType = GetChaStateLv (role, STATE_XLZH) local StateType = GetChaStateLv (role, STATE_SHPF) local StateType = GetChaStateLv (role, STATE_MLCH) local StateType = GetChaStateLv (role, STATE_FZLZ) local StateType = GetChaStateLv (role, STATE_JSFB) local StateType = GetChaStateLv (role, STATE_TSHD) if StateType == 0 or 10 then AddState (role, role, STATE_XLZH, 10, 60) AddState (role, role, STATE_SHPF, 10, 60) AddState (role, role, STATE_MLCH, 10, 60) AddState (role, role, STATE_FZLZ, 10, 60) AddState (role, role, STATE_JSFB, 10, 60) AddState (role, role, STATE_TSHD, 10, 60) SystemNotice (role, "You were buffed for 60 secs to make forging 100 percent") else SystemNotice( role , "Cannot use while sailing" ) UseItemFailed ( role ) return end end --100% Combining function ItemUse_Combi ( role , Item ) local statelv = 10 local statetime = 60 local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) -- SystemNotice( role , Cha_Boat ) if Cha_Boat == nil then AddState( role , role , STATE_HCGLJB , statelv , statetime ) else SystemNotice( role , "Cannot use while sailing" ) UseItemFailed ( role ) return end local StateType = GetChaStateLv (role, STATE_XLZH) local StateType = GetChaStateLv (role, STATE_SHPF) local StateType = GetChaStateLv (role, STATE_MLCH) local StateType = GetChaStateLv (role, STATE_FZLZ) local StateType = GetChaStateLv (role, STATE_JSFB) local StateType = GetChaStateLv (role, STATE_TSHD) if StateType == 0 or 10 then AddState (role, role, STATE_XLZH, 10, 60) AddState (role, role, STATE_SHPF, 10, 60) AddState (role, role, STATE_MLCH, 10, 60) AddState (role, role, STATE_FZLZ, 10, 60) AddState (role, role, STATE_JSFB, 10, 60) AddState (role, role, STATE_TSHD, 10, 60) SystemNotice (role, "You were buffed for 60 secs to make combining 100 percent") else SystemNotice( role , "Cannot use while sailing" ) UseItemFailed ( role ) return end RefreshCha(role) end Skilleff 107 Forging success rate increased -1 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 -1 0 0 0 0 -1 0 0 0 0 0 0 0 108 Increases combining success rate -1 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 -1 0 0 0 0 -1 0 0 0 0 0 0 0 Variable.lua Search for STATE_ and put it. STATE_JLGLJB = 107 -- double the success rate of refining STATE_HCGLJB = 108 -- double the success rate of synthesis Forge.lua Search for " begin_forge_item " and inside add it local Sklv = 1 local StateLv = GetChaStateLv ( role , STATE_JLGLJB ) Sklv = Sklv + StateLv local Check_A = math.max ( 0.02 , math.min ( 1 , ( 1 - Baoshi_NeedLv * 0.1 + Sklv * 0.15 - 0.3 ) ) ) local CheckFaild = 1 if Baoshi_NeedLv < 9 then --// changed forge level check CheckFaild = 1 end if CheckFaild == 1 then Check_Jinglian_Item = Jinglian_Item ( Item_Jinglian , Item_Stone1 , Item_Stone2 ) else local cha_name = GetChaDefaultName ( role ) local Item_Jinglian_name = GetItemName ( ItemID_Jinglian ) LG( "JingLian_ShiBai" , "Player"..cha_name.."Forging of equipment failed. Equipment is not damaged"..Item_Jinglian_name ) SystemNotice ( role , "Sorry, forging has failed. Luckily equipment is not damage" ) end Now Search for " begin_unite_item " and inside add it local Sklv = 1 local StateLv = GetChaStateLv ( role , STATE_HCGLJB ) Sklv = Sklv + StateLv local b = Check_CG_HechengBS ( Item2_Lv , ItemType2 , Sklv ) if b == 0 then i = RemoveChaItem ( role , ItemID2 , 1 , 2 , BagItem2 , 2 , 1 , 0) --移除宝石 if i == 0 then LG( "Hecheng_BS" , "Delete item failed" ) end local cha_name = GetChaDefaultName ( role ) LG( "JingLian_ShiBai" , "Player"..cha_name.."Gem combining failed" ) SystemNotice( role , "Very sorry, combining has failed. Gem has vanished…") return 0 --// Changed Combining Rate - MoMo end local cha_name = GetChaDefaultName ( role ) LG( "JingLian_ShiBai" , "Player"..cha_name.."Gem combining successful" ) return 1 If you have another function with STATE_HCGLJB or STATE_JLGLJB replace with these above.
  2. https://mega.nz/#!71kEgbLJ!ei_APkspyX7uQWJu96L02i12ALz1XXuBAU_IFIkdZMc scripts/txt and replace.
  3. Have other if u want try, 2012 but works in 2014 too
  4. https://mega.nz/#!Ol81yJyA!RMKtbk0kC9u2JETgB1roHsqZNaMWd4UfeKQx7u8JvKE here bro
  5. Still looking for auto patch ? i can do if u still looking for!
  6. https://mega.nz/#!XkMwwazQ!eEIs5KeFev9ZEVL4EX1sdmpXdhwMunZqDF3sDg0LNH0 SivuKanta DB = Auction
  7. Hi Guys I want remove this verification code when i'll open In Game Shop. I think need hex game.exe but idk what line to edit
  8. try and tell me if works, if u need mall page i give too and mall admin, i put yesterday in pko 1.0 and works fine
  9. This is my inc.storage.php Replace and try. Create commerce folder on Pages. and put inc.storage.php <? // =================================================================================================== // Package : pkoSite // File : inc.rules.php // Version : 1.0.0 // =================================================================================================== // History: // // v1.0.0 : release of the FINAL version ;o) // v0.0.1 : first release // =================================================================================================== // Disclaimer : To make it short - if you steal code you're a pathetic, little loser :-) // =================================================================================================== // Prevent people from calling this file directly! Normally it doesn't matter but its always better // being save than being sorry. if (!defined('PKOSITE')) die('Go away!'); if(!isLoggedIn()) { $oSmarty->assign('message', array( 'type' => 'error', 'messages' => array( 'You are not logged in.', 'Please <a href="'.site_url('login').'">login</a>.' ) ) ); } else { require_once('./classes/class.StorageBox.php'); $StorageBox = new StorageBox('type'); $oSmarty->assign('items' , $StorageBox -> ShowBox()); $oSmarty->assign('characters' , $StorageBox -> GetCharacters()); } $breadcrumbs = array(); $breadcrumbs[] = array( 'caption' => 'Home', 'url' => $config['script_url'] ); $breadcrumbs[] = array( 'caption' => 'Storage Box', 'url' => '' ); $oSmarty->assign('breadcrumbs', $breadcrumbs); // Display Template if (!$error) $oSmarty->display('file:pages/commerce/site_storage.tpl'); ?> class.StorageBox.php <?php define ('DATABASE_AUCTION', 'auction'); class StorageBox { protected $Action; public function __construct($Action) { if ((!isset($_GET[$Action])) && (!isset($_POST[$Action]))) $this->Action = 'notassigned'; else $this->Action = ((isset($_POST[$Action])) ? $_POST[$Action] : $_GET[$Action]); $this->Action = strtolower(trim(preg_replace('/[^0-9a-z]/i','',$this->Action))); } public function ShowBox() { switch($this->Action) { case 'assigned': $GenerateBox = $this->GenerateAssigned(); return $GenerateBox; break; case 'notassigned': $GenerateBox = $this->GenerateUnAssigned(); return $GenerateBox; break; default: die('Unselected!'); } } public function GetCharacters() { $GetCha = doQuery("SELECT cha_name, degree, cha_id FROM character WHERE delflag='0' AND act_id=".$_SESSION['aid']." AND kb_locked='0'", DATABASE_GAME); $characters = array(); while($oRow = mssql_fetch_array($GetCha)) { $characters[] = array( 'name' => $oRow['cha_name'], 'id' => $oRow['cha_id'], 'level' => $oRow['degree'], ); } return $characters; } public function GenerateUnAssigned() { $GetNotAssigned = doQuery("SELECT * FROM StorageBox WHERE assigned='0' AND act_id=".$_SESSION['aid']." ORDER by storage_id DESC", DATABASE_AUCTION); $items = array(); while($oRow = mssql_fetch_array($GetNotAssigned)) { $items[] = array( 'id' => $oRow['storage_id'], 'name' => $oRow['itemName'], 'qty' => trim($oRow['quantity']), 'icon' => trim($oRow['Icon']), ); } return $items; } public function GenerateAssigned() { $Template = '<table>'; $Template.= '<thead><tr> <th scope="col" class="top" width="30">Item</th> <th scope="col" class="top" width="30">Icon</th> <th scope="col" class="top" width="30">Assigned to</th> <th scope="col" class="top" width="30">Assign Date</th> </tr> </thead>'; $GetNotAssigned = doQuery("SELECT * FROM StorageBox WHERE assigned='1' AND act_id=".$_SESSION['aid']." ORDER BY assigned_date DESC", DATABASE_AUCTION); while($oRow = mssql_fetch_array($GetNotAssigned)) { $MallID = $oRow['storage_id']; $ItemName = $oRow['itemName']; $Quantity = $oRow['quantity']; $AssignedTO = $oRow['assigned_char']; $AssignDate = $oRow['assigned_date']; $Icon = trim($oRow['Icon']); $Template.= '<tr><td>'.$ItemName.'(x'.$Quantity.')</td><td style="text-align:center;"><img src="./img/icons/'.$Icon.'.png"></td><td>'.$AssignedTO.'</td><td>'.$AssignDate.'</td></tr>'; } $Template.= '</table>'; return $Template; } } And site_storage.tpl create commerce folder in templates/pages and put site_storage.tpl {include file='file:core/header.tpl'} {include file='file:sidebars/left.tpl'} <div id="main"> <!-- B.2 MAIN CONTENT --> {if count($message.messages) > 0} <div class="{$message.type}"> <ul> {foreach item=text from=$message.messages} <li>{$text}</li> {/foreach} </ul> </div> {/if} <br/ > {if $user.is_logged_in} <form method="POST" action="index.php?act=assign"> {if count($items) > 0} <table width="100%" class="responce-table borderspacingsmall coloredFirstCell"> <thead> <tr> <th scope="col" class="top" width="30">Select</th> <th scope="col" class="top" width="30">Item</th> <th scope="col" class="top" width="30">Icon</th> </tr> </thead> <tbody> {foreach item=item from=$items} <tr> <td width="15%"> <input type="hidden" name="qty" value="{$item.qty}"> <input type="radio" name="item_to_assign" value="{$item.id}"> </td> <td> {$item.name} (x {$item.qty} ) </td> <td style="text-align:center;"> <img src="./images/new/icons/{$item.icon}.png"> </td> </tr> {/foreach} </tbody> </table> <table style="border:0xp;" width="100%" class="responce-table borderspacingsmall coloredFirstCell"> <tr> {if count($characters) > 0 } <td><b>Character:</b></td> <td> <select name="target_character" class="textCtrl"> {foreach item=char from=$characters} <option value="{$char.id}"> {$char.name} - Lv{$char.level} </option> {/foreach} </select> </td> <td> <button type="submit" name="assign_items" id="submit" class="button primary" tabindex="5" />&nbsp;&nbsp;&nbsp;Assign &nbsp;&nbsp;</button> </td> {else} <td> <b>You have no characters !?</b> </td> {/if} </tr> </table> </form> {else} You have bought no items! Go to <a href="index.php?act=mall">Item Mall</a> to buy some! {/if} {/if} </div> {include file='file:core/footer.tpl'} remember put on your index.php // =========================================================================================== // Commerce-Functions // =========================================================================================== case 'storage' : case 'assign' : require_once('pages'.DIRECTORY_SEPARATOR.'commerce'.DIRECTORY_SEPARATOR.'inc.'.$action.'.php'); break; default : die('Unknown page.'); You will need assign but i think you already have. if you don't have tell me and i send all archives of you need for work perfectly mall, mall admin, assign, item mall page and storage box.
  10. Put in your template/core/header.tpl on <head> tag <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  11. The item go to Storage box?
  12. Yah, i think is it. i'll try
  13. Hi Guys, I came to share with you a site page for those who have In Game Shop system in the game. For those who don't have the page imps for crystal / igsp. Print: Link Download:
  14. Yeah, i use XenForo. but trying to put when user create account in forum he can use this account to enter in game
  15. i understand xd, i'll try, any progress i'll share here
  16. Yah, but my forum is mysql and need to create a new connection with mssql, my forum dont support mssql, maybe i have to create a two users? in mssql and mysql the same user? or i can create only one user in forum mysql database and send this user for mssql database ?
  17. Hi guys, I have a forum, and wanted to use the database of pkosite to the forum for the players log in the forum with the game account, it is possible? already seen some forums and wanted to do so on my own, I've been researching a lot but not found. if anyone can help me I would be grateful, or if they know one forum with support for mssql. thank you!
×
×
  • Create New...