Quests

Post all your tuts or request for tuts here.
Post Reply
ZeroComp
Posts: 648
Joined: Thu Oct 29, 2009 8:48 pm

Quests

Post by ZeroComp »

does anyone know how to do quests for you browser mmo? I know you would need an npc table but what fields do I put in for it? and would probably need a quest table but having a lot of fields in the table would require lots of space and would probably wouldn't work
Coding-PHP, Javascript, C++, HTML, mySQL
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Quests

Post by hallsofvallhalla »

not really, a quest system would be very easy and is a part of the tutorial series coming up.

basically create a table for the quests that mark every quest as done or not per player.

then make a quests table that defines each quest. name/level/text_start/text_return/text_complete/isdone/return_item/reward_item/reward_gold/reward_exp
User avatar
Torniquet
Posts: 869
Joined: Sun Aug 02, 2009 6:18 am

Re: Quests

Post by Torniquet »

yeah setting a quest system up isnt overly complicated. its the thinking of all the scenarios without having the players feel like they are breaking the same egg over n over lol. thats the tough part XD
New Site Coming Soon! Stay tuned :D
ZeroComp
Posts: 648
Joined: Thu Oct 29, 2009 8:48 pm

Re: Quests

Post by ZeroComp »

yeah I'm leaning more toward not having NPCs and just have quest list that basically says you can start but only if you have a certain level. And I added a creature_kill field to the DB and am currently working on a script that when $creatureinfo3 ['hpoints'] = 0 to update the creature_kill field and am also have run into one problem. I got the quest system going but say one quest needs 10 creature kills and the persons field has 11. I did that and it just said quest completed and I got the full reward!
Coding-PHP, Javascript, C++, HTML, mySQL
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Quests

Post by Jackolantern »

Can you just make the field wipe every time they accept a new quest? What else is that field needed for that it needs to be persistent and keep track of them all? If you do need to keep track of all kills (for a stats page or anything), just copy it out of that field and add it to the persistent field before wiping it.
The indelible lord of tl;dr
ZeroComp
Posts: 648
Joined: Thu Oct 29, 2009 8:48 pm

Re: Quests

Post by ZeroComp »

Ohh I see what your saying since I do not have a profile page i could do a $playerinfo3 = ['creaturekill'] with an isset and it updates the DB
Coding-PHP, Javascript, C++, HTML, mySQL
Modeling/Art-Blender, GIMP
Games-Unity, Game Maker 8
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Quests

Post by hallsofvallhalla »

i was only thinking to keep a player from doing the same quest over again. You could do it either way. It would be nicer on the DB to wipe it.
Post Reply

Return to “Tutorials”