Drag and Drop Inventory/Equip System

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.
Post Reply
User avatar
RogueTomboy
Posts: 61
Joined: Sun May 22, 2011 3:42 pm

Drag and Drop Inventory/Equip System

Post by RogueTomboy »

I've been studying this guys drag and drop inventory/equip system that he's tutorialing.

Part 1
http://dannyvankooten.com/231/create-dr ... ng-jquery/

Part 2
http://dannyvankooten.com/259/jquery-dr ... action-22/

I have his first section mastered and I am understanding it okayish. The second part is taking part 1 and intergrating it into the db.

I made the tables he made so I can learn exactly what he was doing and such - so no worries there. As I am reading and integrating part two in the code I've already got going (his part 1) and changing db connects and such so that it connects to my db - I get stuck at a certain part (Reading items from the database headed section) - I'm not understanding where that code needs to go though I am assuming it is on the actual drag and drop page.

Am I doing this the hard way? :(
Need art? Commissions are always open!
http://www.ladytankstudios.com

Currently addicted to:
Image
Collect & Explore for pets
Xaleph
Posts: 897
Joined: Mon Feb 07, 2011 2:55 am

Re: Drag and Drop Inventory/Equip System

Post by Xaleph »

Well, the way I see it is this: he is using a string representation of his complete inventory, which sucks, but it`s doable. My guess is this: you don`t get an array for all inventory items, right?

Anyway, to get errors shown:

error_reporting(E_ALL);
ini_set("display_errors", true);

And, use firefox and it`s addon FireBug to get any errors Javascript is throwing. That`s easier to understand then guessing :)
Post Reply

Return to “Beginner Help and Support”