Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames
You last visited: Today at 12:32

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



FIX FOR ARMS GUILD - SFGAME

Discussion on FIX FOR ARMS GUILD - SFGAME within the Browsergames forum part of the Other Online Games category.

Reply
 
Old   #1
 
Crasim's Avatar
 
elite*gold: 0
Join Date: May 2014
Posts: 93
Received Thanks: 74
FIX FOR ARMS GUILD - SFGAME

SEARCH THIS
PHP Code:
 case $ACT_GUILD_SET_DESC 
AND CHANGE ALL FROM THIS
PHP Code:
        case $ACT_GUILD_SET_DESC :
                
// Nick, guild_name, desc, password (md5)
                
$data explode ';'$action_extra );


               
                
$desc urldecode '%A7' );
                
$desc explode $desc$data [2] );
                
$desc $desc;
               
                
$qry $db->prepare "UPDATE guilds SET description = :description, arms = :arms
                                WHERE guild_id = (SELECT user_data.guild_id FROM user_data WHERE user_data.ssid = :ssid)" 
);
                
$qry->bindParam ':description'urlencode($desc [1]) );
        
$qry->bindParam ':arms'urlencode($desc [0]) );
                
$qry->bindParam ':ssid'$SSID );
                if (
$qry->execute ()) {
                        
$ret = array (
                                        
"153"
                        
);
                }
               
                break; 

SEARCH THIS
PHP Code:
function loadGuildData($g_data$m_data$im_data$member_of) { 
AND CHANGE ALL FROM THIS
PHP Code:
function loadGuildData($g_data$m_data$im_data$member_of) {
       
        
// $GLOBALS['ret'] = explode("/", "00679098/1000/0/1/0/10/0/0/0/0/0/1387449484/1387449484/100/278943/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/102/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/1387451340/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/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/1000/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/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/1/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/1387451340;;/Pan Marcel;jakastam;100;15895");
        // return;
       
        // clear global ret
        // unset ( $GLOBALS ['ret'] );
        
$ret array_fill 0374);
       
        
// counter
        
$index 0;
       
        
// members
        
$mc count $m_data );
       
        
// invited members
        
$imc count $im_data );
       
        
$ret [0] = "172603";
        if (
$member_of === TRUE) {
                
$ret [0] = "006111";
               
                
// gold & shrooms
                
$ret [1] = $g_data ['silver'];
                
$ret [2] = $g_data ['mushroom'];
               
                
// tower - skarbiec - trener
                
$ret [5] = $g_data ['fortress'];
                
$ret [6] = $g_data ['treasure'];
                
$ret [7] = $g_data ['instructor'];
        }
       
        
// num of members
        
$ret [3] = $mc $imc;
       
        
// ??
        
$ret [4] = 0;
       
        
// dungs
        
$ret [8] = $g_data ['dung'];
       
        
// ??
        
$ret [9] = 0;
       
        
// attack initiater id ?
        
$ret [10] = 19503;
       
        
// ?? timestamp ?? attack/def??
        
$ret [11] = 1388506425;
        
$ret [12] = 1388506425;
       
        
// honor
        
$ret [13] = $g_data ['honor'];
       
        
$index 14;
        
// ID grazcy
        
for($i 0$i $mc$i ++) {
                
// $ret [$index] = "19503";
                
$ret [$index] = $m_data [$i] ['user_id'];
                
$index ++;
        }
       
        
// INVITED PLAYERS id
        
for($i 0$i $imc$i ++) {
                
$ret [$index] = $im_data [$i] ['user_id'];
                
$index ++;
        }
       
        
$index 64;
        
// war_status + lvl
        
for($i 0$i $mc$i ++) {
                
// $ret [$i + 64] = 15;
                
$ret [$index] = "0" $m_data [$i] ['lvl'];
                
$index ++;
        }
       
        
// invited player levels
        
for($i 0$i $imc$i ++) {
                
$ret [$index] = $im_data [$i] ['lvl'];
                
$index ++;
        }
       
        if (
$member_of === TRUE) {
                
$index 114;
                
// LAST LOGIN timestamps
                
for($i 0$i $mc$i ++) {
                        
// $ret [$i + 115] = 1387295559;
                        
$ret [$index] = 0;
                        
$index ++;
                }
               
                
$index 164;
                
// ?? - wszystkie byly zera
                
for($i 0$i $mc$i ++) {
                        
$ret [$index] = 1;
                        
$index ++;
                }
               
                
$index 214;
                
// wplacony gold
                
for($i 0$i $mc$i ++) {
                
$ret [$index] = $m_data [$i] ['g_silverspent'];
                
$index ++;
                }
 
                
$index 264;
                
// wplacone grzyby
                
for($i 0$i $mc$i ++) {
                
$ret [$index] = $m_data [$i] ['g_mushroomspent'];
                
$index ++;
                }
        }
        
$index 314;
        
// rangi
        
for($i 0$i $mc$i ++) {
                
// $ret [$index] = 0;
                
$ret [$index] = $m_data [$i] ['guild_rank'];
                
$index ++;
        }
       
        for(
$i 0$i $imc$i ++) {
                
$ret [$index] = 4// $im_data[$i
                
$index ++;
        }
       
        
// for($i = 0; $i < $; $i)
       
        
$index 364;
       
        
// 3899/1387470968/0/0/1922/1387457892;opis;
       
        
$ret [$index] = "0";
        
// attacked guild id ??
        
$ret [$index 1] = "0";
        
// czas obrony
        
$ret [$index 2] = "0"// "1387296865";
       
        
$ret [$index 3] = "0";
        
$ret [$index 4] = "0";
        
// guild id attacking u ?
        
$ret [$index 5] = "0";
        
$ret [$index 6] = "1387295590";
       
        
// description
        
$ret [$index 6] .= ';'.urldecode($g_data ['arms']).'§'.urldecode($g_data ['description']).';';
       
        
$index += 7;
       
        
// user names
        
for($i 0$i $mc$i ++) {
                
$ret [$index] = $m_data [$i] ['user_name'];
                
$index ++;
        }
       
        
// invited players user names
        
for($i 0$i $imc$i ++) {
                
$ret [$index] = $im_data [$i] ['user_name'];
                
$index ++;
        }
       
        
// LAST MEMBER NAME +
        // ;Crissco;22797;1 - ;guild name;honor;ranking
        // $index = count ( $ret ) - 1;
        // $ret [374] .= "lider;nazwa gildi;honor;ranking";
        
@$ret [$index] .= $m_data [0] ['user_name'] . ';' $g_data ['name'] . ';' $g_data ['honor'] . ';' $g_data ['rank'];
       
        
$GLOBALS ['ret'] = $ret;

SQL QUERY DELETE EXIST GUILDS

PHP Code:
CREATE TABLE IF NOT EXISTS `guilds` (
  `
guild_idint(11NOT NULL AUTO_INCREMENT,
  `
nametinytext NOT NULL,
  `
armsvarchar(50NOT NULL,
  `
descriptiontext NOT NULL,
  `
chattext NOT NULL,
  `
leader_idint(11NOT NULL,
  `
honorint(11NOT NULL DEFAULT '0',
  `
silverbigint(20NOT NULL DEFAULT '1000',
  `
mushroomint(11NOT NULL DEFAULT '0',
  `
fortresssmallint(6NOT NULL DEFAULT '10',
  `
treasuresmallint(6NOT NULL DEFAULT '0',
  `
instructorsmallint(6NOT NULL DEFAULT '0',
  `
dungtinyint(4NOT NULL DEFAULT '0',
  
PRIMARY KEY (`guild_id`)
ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 
OR CREATE THIS

PHP Code:
  `armsvarchar(50NOT NULL
Crasim is offline  
Thanks
5 Users
Old 07/04/2014, 23:32   #2
 
elite*gold: 0
Join Date: Sep 2013
Posts: 653
Received Thanks: 323
Thanks :-)
FinalSpace is offline  
Thanks
1 User
Old 07/04/2014, 23:46   #3
 
elite*gold: 0
Join Date: Apr 2014
Posts: 226
Received Thanks: 27
Good job man
TheCry is offline  
Old 07/05/2014, 14:31   #4
 
UND3RW0RLD's Avatar
 
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
Works nice Impressiv Crasim

UND3RW0RLD is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
SFGAME Act ID's
05/05/2014 - Browsergames - 5 Replies
Hey guys . I want to ask you how to find act id's ? Like this : $ACT_ENTER_DUNGEON = "008"; $ACT_ENDQUEST = "010"; $ACT_TAVERN_ENTER = "010";
Guild Wars Shop (Ectos,Arms)
04/18/2014 - Guild Wars Trading - 15 Replies
Dear Epvp Community, Sadly i stopped playing guild wars 1 a time ago. Now i want to sell all my stuff+my main gw1 account. This thread is about the ingame money, account will be sold in a other thread. Details and Prices:
Guild Wars Shop (Ectos,Arms)
12/27/2013 - Guild Wars Trading - 11 Replies
Dear Epvp Community, Sadly i stopped playing guild wars 1 a time ago. Now i want to sell all my stuff+my main gw1 account. This thread is about the ingame money, account will be sold in a other thread. Details and Prices:



All times are GMT +1. The time now is 12:33.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.