Shakes & Fidget Private - Full Script (Tulyita)

05/18/2014 21:14 TheCry#391
Quote:
Originally Posted by szymek111 View Post
I think Eptun paid for this files but he deleted some lines of code (maybe he want this only for him xd) than he uploaded sql file and request but guild chat and tower helpers aren't working.
Maybe its true, maybe no :/

I don't think so
05/18/2014 21:23 EptunLP#392
The mediafire file is from tulyita I didnt deleted anything maybe tulyita
05/18/2014 21:29 TheCry#393
Ask him why this not working if it should... We will see what he will answer: /
05/18/2014 21:45 EptunLP#394
Im asking him everyday but he doesnt respond
05/18/2014 21:47 TheCry#395
Quote:
Originally Posted by EptunLP View Post
Im asking him everyday but he doesnt respond
We must wait :(


I also sent him a few messages, perhaps will answer me
05/18/2014 22:50 UND3RW0RLD#396
I still don't know how the to communicate with the client, so i could need some help from now.. :handsdown:

SQL
Code:
CREATE TABLE IF NOT EXISTS `guild_chat` (
  `msg_id` int(11) NOT NULL AUTO_INCREMENT,
  `guild_id` int(11) NOT NULL,
  `sender_id` int(11) NOT NULL,
  `reciver_id` int(11) NOT NULL,
  `time` int(11) NOT NULL,
  `msg` text NOT NULL,
  PRIMARY KEY (`msg_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
Replace
PHP Code:
case $ACT_SEND_CHAT :

break; 
with
PHP Code:
case $ACT_SEND_CHAT :
        
// the ususal stuff
        // msg;0
        // what the hell means 0??
        
$data explode ';'$action_extra );

        
$msg $data[0];

        
$time = new DateTime ();
        
$time $time->getTimestamp ();
        
        
$recid "0";
        
        
// get some ids
        
$qry $db->prepare "SELECT user_id, guild_id FROM user_data WHERE ssid = :ssid" );
        
$qry->bindParam ':ssid'$SSID );
        
$qry->execute ();
        
$ids $qry->fetchAll ();

        
// put into db
        
$qry $db->prepare ("INSERT INTO guild_chat(guild_id, sender_id, reciver_id, time, msg)  
                            VALUES(:guildid, :uid, :recid, :time, :msg)"
);
        
$qry->bindParam ':guildid'$ids [0] ['guild_id'] );
        
$qry->bindParam ':uid'$ids [0] ['user_id'] );
        
$qry->bindParam ':recid'$recid );
        
$qry->bindParam ':time'$time );
        
$qry->bindParam ':msg'$msg );
        
$qry->execute ();
        
        break; 
[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]
05/18/2014 22:57 TheCry#397
But text is displaying on chat line?
05/18/2014 22:59 UND3RW0RLD#398
nope.. there no callback to the client.. thats why i need help

Still empty :(
[Only registered and activated users can see links. Click Here To Register...]
05/18/2014 23:17 TheCry#399
Hmmm... we must do array.... but idk how XD

Im working on it :)
05/19/2014 06:10 HolzNudel#400
Kann jemand die Files komplett Uplaoden als ein Download ?
Mit den files die man braucht inkl. mysql Datenbank ?

Wäre echt sehr nett und würde jeden helfen.
05/19/2014 06:34 nabbi#401
Quote:
Originally Posted by ǝnd1ǝss-ɯonǝʎ View Post
nope.. there no callback to the client.. thats why i need help

Still empty :(
[Only registered and activated users can see links. Click Here To Register...]
But you are at the right Way.
Here is my Chat :
[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

You have wrote me at PN because i dont like to awnser because it is really hard to explain that in PN have you Skype or Teamspeak than i can help you with you Problems ;)
05/19/2014 09:10 luzik78#402
Quote:
Originally Posted by ǝnd1ǝss-ɯonǝʎ View Post
I still don't know how the to communicate with the client, so i could need some help from now.. :handsdown:

SQL
Code:
CREATE TABLE IF NOT EXISTS `guild_chat` (
  `msg_id` int(11) NOT NULL AUTO_INCREMENT,
  `guild_id` int(11) NOT NULL,
  `sender_id` int(11) NOT NULL,
  `reciver_id` int(11) NOT NULL,
  `time` int(11) NOT NULL,
  `msg` text NOT NULL,
  PRIMARY KEY (`msg_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
Replace
PHP Code:
case $ACT_SEND_CHAT :

break; 
with
PHP Code:
case $ACT_SEND_CHAT :
        
// the ususal stuff
        // msg;0
        // what the hell means 0??
        
$data explode ';'$action_extra );

        
$msg $data[0];

        
$time = new DateTime ();
        
$time $time->getTimestamp ();
        
        
$recid "0";
        
        
// get some ids
        
$qry $db->prepare "SELECT user_id, guild_id FROM user_data WHERE ssid = :ssid" );
        
$qry->bindParam ':ssid'$SSID );
        
$qry->execute ();
        
$ids $qry->fetchAll ();

        
// put into db
        
$qry $db->prepare ("INSERT INTO guild_chat(guild_id, sender_id, reciver_id, time, msg)  
                            VALUES(:guildid, :uid, :recid, :time, :msg)"
);
        
$qry->bindParam ':guildid'$ids [0] ['guild_id'] );
        
$qry->bindParam ':uid'$ids [0] ['user_id'] );
        
$qry->bindParam ':recid'$recid );
        
$qry->bindParam ':time'$time );
        
$qry->bindParam ':msg'$msg );
        
$qry->execute ();
        
        break; 
[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]
Code:
Nice $ACT_SEND_CHAT but where is

$ACT_PULL_CHAT_DATA, 
$ACT_GET_CHAT_HISTORY, 
$ERR_GUILD_CHAT_TEXT_ERROR, 
$RESP_CHAT_HISTORY, 
$RESP_CHAT_LINE
05/19/2014 14:25 WielkaNogawka#403
@UP: me no work too

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

@EDIT:

cam someone upload request with gulid chat?
05/19/2014 16:09 barteklorek123#404
[Only registered and activated users can see links. Click Here To Register...]
05/19/2014 16:39 TheCry#405
So?

Almost everyone has this script... at the moment nothing new it isn't: /

Quote:
Originally Posted by WielkaNogawka View Post
@UP: me no work too

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

@EDIT:

cam someone upload request with gulid chat?

Nikt ci nie upie takiego request'u ponieważ czat gildii jest bardzo trudny do zaprogramowania i nikt nie ma zamiaru tego udostępniać (przydało by się :D) ... :/