Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Loosing items
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Bjork" data-source="post: 432195" data-attributes="member: 12666"><p>Okey, what's your emulator ?</p><p></p><p>You can try this one:</p><p>[CODE]-- ----------------------------</p><p>-- Procedure structure for `getroomitems`</p><p>-- ----------------------------</p><p>DROP PROCEDURE IF EXISTS `getroomitems`;</p><p>DELIMITER ;;</p><p>CREATE DEFINER=`root`@`localhost` PROCEDURE `getroomitems`(IN `roomid` INT(10) UNSIGNED)</p><p>BEGIN</p><p>SELECT items_rooms.item_id, items_rooms.x, items_rooms.y, items_rooms.n, items.base_id, items_extradata.data, items.rareid, items.group_data, items.placedBy</p><p>FROM items_rooms</p><p>JOIN items ON (items.item_id = items_rooms.item_id)</p><p>LEFT JOIN items_extradata ON (items_extradata.item_id = items.item_id)</p><p>WHERE items_rooms.room_id = roomid;</p><p>END</p><p>;;</p><p>DELIMITER ;</p><p></p><p>-- ----------------------------</p><p>-- Procedure structure for `getuseritems`</p><p>-- ----------------------------</p><p>DROP PROCEDURE IF EXISTS `getuseritems`;</p><p>DELIMITER ;;</p><p>CREATE DEFINER=`root`@`localhost` PROCEDURE `getuseritems`(IN userid int(10) unsigned)</p><p>BEGIN</p><p>SELECT items_users.item_id, items.base_id, items_extradata.data, items.rareid, items.group_data</p><p>FROM items_users</p><p>JOIN items ON (items.item_id = items_users.item_id)</p><p>LEFT JOIN items_extradata ON (items_extradata.item_id = items.item_id)</p><p>WHERE items_users.user_id = userid;</p><p>END</p><p>;;</p><p>DELIMITER ; [/CODE]</p></blockquote><p></p>
[QUOTE="Bjork, post: 432195, member: 12666"] Okey, what's your emulator ? You can try this one: [CODE]-- ---------------------------- -- Procedure structure for `getroomitems` -- ---------------------------- DROP PROCEDURE IF EXISTS `getroomitems`; DELIMITER ;; CREATE DEFINER=`root`@`localhost` PROCEDURE `getroomitems`(IN `roomid` INT(10) UNSIGNED) BEGIN SELECT items_rooms.item_id, items_rooms.x, items_rooms.y, items_rooms.n, items.base_id, items_extradata.data, items.rareid, items.group_data, items.placedBy FROM items_rooms JOIN items ON (items.item_id = items_rooms.item_id) LEFT JOIN items_extradata ON (items_extradata.item_id = items.item_id) WHERE items_rooms.room_id = roomid; END ;; DELIMITER ; -- ---------------------------- -- Procedure structure for `getuseritems` -- ---------------------------- DROP PROCEDURE IF EXISTS `getuseritems`; DELIMITER ;; CREATE DEFINER=`root`@`localhost` PROCEDURE `getuseritems`(IN userid int(10) unsigned) BEGIN SELECT items_users.item_id, items.base_id, items_extradata.data, items.rareid, items.group_data FROM items_users JOIN items ON (items.item_id = items_users.item_id) LEFT JOIN items_extradata ON (items_extradata.item_id = items.item_id) WHERE items_users.user_id = userid; END ;; DELIMITER ; [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Loosing items
Top