Page 1 of 1
Quests
Posted: Sun Jan 17, 2010 7:43 pm
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
Re: Quests
Posted: Sun Jan 17, 2010 8:52 pm
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
Re: Quests
Posted: Sun Jan 17, 2010 11:32 pm
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
Re: Quests
Posted: Mon Jan 18, 2010 12:15 am
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!
Re: Quests
Posted: Mon Jan 18, 2010 4:43 am
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.
Re: Quests
Posted: Mon Jan 18, 2010 4:51 am
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
Re: Quests
Posted: Mon Jan 18, 2010 2:34 pm
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.