#1
|
||||
|
||||
Simple quests
-What we will do-
Create a simple item quest in which you get an item from an npc and give it to another npc; getting currency in return. Afterwards, this can be used to create more complex quests. -Step 0- Create an item to use in the quest. I recommend that it's a key item that can't be bought, traded, or consumed. This way, users can't give quest items to each other or buy them from a shop. What you name it and everything else is up to you. In order for this to work properly, you should have custom pages for your npcs. If you don't know how to make a page from scratch, go here: http://www.mysidiaadoptables.com/for...48&postcount=2 If you don't use custom-made pages, this can only be used on pages that have a .php file and a view.php file. So no pages made in the adminCP. -Step 1- Where is your first npc located? In which view file? Wherever they are, go to that view file and add this under the npc's image: PHP Code:
-Step 2- Go to your next npc. They should be on a different page (and view file) from the first one. Right under their image, put this code: PHP Code:
-End- That's it! You should now have a simple system for quests. Please let me know if you get any errors, but it shouldn't cause any. Here's what it looks like on my site:
__________________
Last edited by Dinocanid; 11-05-2016 at 03:47 PM. |
#2
|
||||
|
||||
It works perfectly! Thanks!
|
|
|
What's New? |
What's Hot? |
What's Popular? |