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: 432156" data-attributes="member: 12666"><p>Run that to your MySQL database: </p><p>[CODE]CREATE DEFINER=`root`@`localhost` PROCEDURE `getroomitems` (IN `roomid` INT(10) UNSIGNED) BEGIN</p><p></p><p> SELECT items_rooms.item_id, items_rooms.x, items_rooms.y, items_rooms.n, items_rooms.w, items.base_id, items_extradata.data, items_rooms_owners.owner_id</p><p></p><p> FROM items_rooms</p><p></p><p> JOIN items ON (items.item_id = items_rooms.item_id)</p><p></p><p> LEFT JOIN items_extradata ON (items_extradata.item_id = items.item_id)</p><p></p><p> LEFT JOIN items_rooms_owners ON (items_rooms_owners.item_id = items.item_id)</p><p></p><p> WHERE items_rooms.room_id = roomid;</p><p></p><p>END$$</p><p></p><p>CREATE DEFINER=`root`@`localhost` PROCEDURE `getuseritems` (IN `userid` INT(10) UNSIGNED) BEGIN</p><p></p><p> SELECT items_users.item_id, items.base_id, items_extradata.data</p><p></p><p> FROM items_users</p><p></p><p> JOIN items ON (items.item_id = items_users.item_id)</p><p></p><p> LEFT JOIN items_extradata ON (items_extradata.item_id = items.item_id)</p><p></p><p> WHERE items_users.user_id = userid;</p><p></p><p>END$$</p><p></p><p>DELIMITER ;[/CODE]</p></blockquote><p></p>
[QUOTE="Bjork, post: 432156, member: 12666"] Run that to your MySQL database: [CODE]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_rooms.w, items.base_id, items_extradata.data, items_rooms_owners.owner_id 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) LEFT JOIN items_rooms_owners ON (items_rooms_owners.item_id = items.item_id) WHERE items_rooms.room_id = roomid; END$$ CREATE DEFINER=`root`@`localhost` PROCEDURE `getuseritems` (IN `userid` INT(10) UNSIGNED) BEGIN SELECT items_users.item_id, items.base_id, items_extradata.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