I have commented out the bottom private function as I am not using Sedrika's in-game webshop.
However when I test to see if the item will go through to my character in-game I get the following error "There was an error while sending an item to your character."
Here part of my itemshop.controller.php file;
PHP Code:
private function SendItemToPlayer($object){
self::Insert($object, 'Character', 'ITEM_SEND_TBL');
}
/**private function SendItemToPlayer($object)
{
$socket = socket_create( AF_INET, SOCK_STREAM, SOL_TCP );
$packet = pack( "VVVVVVVV", 01, intval($object['m_idPlayer']), intval($object['m_idPlayer']), intval($object['Item_Name']), intval($object['Item_count']), 0, SOCKET_CHECK1, SOCKET_CHECK2);
if( @socket_connect( $socket, SOCKET_IP, SOCKET_PORT ) )
{
socket_write( $socket, $packet, strlen( $packet ) );
socket_close( $socket );
return true;
}
return false;
}**/
}
I have watched your videos on the OP to see if you change it some how but I cannot see it. I have tried to edit it but it just throws massive errors in my face.
The port 29000 which is needed, is open.
The funny thing is that, is when I comment out the second Private Function
(THIS)
PHP Code:
private function SendItemToPlayer($object){
self::Insert($object, 'Character', 'ITEM_SEND_TBL');
}
And I un-comment the last Private function the website shows that it has sent the item but It does not show in-game.
If its easier for me to just add you on Skype and discuss it through there let me know please.
Sorry for being a pain in the ass I just really want to get this finished so I can carry on working on the source haha.
Sorry and Thanks