473,587 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MMORPG in Php/MySQL - how to manage objets ? (allocation etc.)

Hi all,

i'd like to start writing an MMORPG in PHP/MySQL (like www.world-of-dungeons.com)
but i wonder something simple :

how to i manage to create and allocate items ? (armour, axes etc..)

i mean, i think : one item = one database entry (in an item table,
with many fields for each item, such as name, desc, name of dungeon
where it drops etc.)

but my question are :

- how do i allocate those items to guys ? (players will "drop" items
in dungeons, basic items or rare etc.. so how do i allocated a
particular item to them ?)

must i have a field in the "player" table (or separate linked table to
players_items) with the ID's of each item he got ? or something like
that ?

- how do i store those kind of information in the DB ? in a field with
";" who separate values ? and i sort em with a PHP request ?

thanks for your answer in advance,

and sorry for my bad english, i'm french.

if anyone got a URL about mmorpg concepts in php/mysql, don't hesitate
to give it :)

thanks !
Sep 16 '08 #1
1 3038
Message-ID:
<49************ *************** *******@d1g2000 hsg.googlegroup s.comfrom
bu********@gmai l.com contained the following:
>- how do i allocate those items to guys ? (players will "drop" items
in dungeons, basic items or rare etc.. so how do i allocated a
particular item to them ?)

must i have a field in the "player" table (or separate linked table to
players_item s) with the ID's of each item he got ? or something like
that ?

- how do i store those kind of information in the DB ? in a field with
";" who separate values ? and i sort em with a PHP request ?

thanks for your answer in advance,
This is not a PHP question, it is a classic relational database
question. You need to study database normalisation. In this case you
have a many to many relationship. You have items and players. One item
can belong to many players and one player can have many items. the
solution is to use a link table..

You will find that drawing an entity relationship diagram will help
enormously. In fact it is essential, in my view. Bon chance.
--
Geoff Berrow 011000100110110 0010000000110
001101101011011 001000110111101 100111001011
100110001101101 111001011100111 010101101011
http://slipperyhill.co.uk - http://4theweb.co.uk
Sep 16 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2220
by: Bob Bedford | last post by:
Where to find a comprehensive document on how take datas from XML and put them in a Mysql Database. I've many sites sending us XML files. We have to parse datas and save those datas on Mysql. The problem is that we have many different file format (each company sends us it's own XML structure). How to provide a simple way to get those...
0
3300
by: Randell D. | last post by:
Folks, I have installed MySQL v4 (client, server and development rpm's). I've tried and failed to use the recommended mysqladmin to set a root password after the installation (I have another post open on the MySQL newsgroup about this). I'm attempting an alternative solution and using webmin (www.webmin.com) to create/manage access to my...
1
2482
by: Snyke | last post by:
Hi. I know this is not closely related to C++ but it's a design issue, I hope anyway to find someone willing to introduce me to the secrets of good server design. The problem is that I have to write a core of a MMORPG server, the problem being that I have absolutely no clue how to design it. Is there a good tutorial on how to structure...
3
2293
by: news.sf.sbcglobal.net | last post by:
Is there a GUI interface that is easy to install to manage MySQL on linux? I'm trying add a user account and password to the db server but I'm not having any luck from the command prompt. I'm trying to setup the nexus discussion software. Any help appreciated
2
2284
by: Florian Lindner | last post by:
Hello, I have a function that executes a SQL statement with MySQLdb: def executeSQL(sql, *args): print sql % args cursor = conn.cursor() cursor.execute(sql, args) cursor.close() it's called like that:
0
1290
by: Fratyr | last post by:
Hello Experts. This is my fourth time im starting to learn PHP/MySQL/AJAX All the times i tried, was boring, because i was learning only the syntax commands. Now i do another way. I decided to build up something that i would like to call "its mine!" So it will probably be simple text-based mmorpg game. Everything goes well until this:...
4
1108
by: Kenster | last post by:
Hello, I am looking for some advice or ideas regarding a current MMORPG I am making. I currently have the packets working find, client works, everything is smooth and such. Quests are in, you can attack, our packet reader/sender is great with a good SendQueue. My question arises in the sense of the "World". I wanted to see if anyone out...
0
1433
by: luster123 | last post by:
Hello, I am trying to make a space mmorpg but I require some help. Is there any PHP developers here that can help me, I will send them the secret code to the Creation Team page. Thanks, Dexter My email is luster123@gmail.com If that is easier for anyone.
2
2323
by: maheswaran | last post by:
Hi all, Am using Mysql at windows 2003 server. When i generating the Mysql script through my php application i got "Could not retrieve the documents (could not retrieve the result) unknown error. " When am checking the event viewer log i got "C;/Program files/Xampp/Mysql-nt.exe Disk is full","Waiting for some one to free space errcode...
0
7918
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7843
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6621
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2353
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.