Jump to content

Easy SQL Quest Template for everyone


Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  52
  • Reputation:   3
  • Joined:  01/05/12
  • Last Seen:  

Hey there, 

 

 

You need basis knowledge to edit / import tabels in mysql.

 

  • Quest based on SQL ( dont need reloadscript if the main npc exists)
  • Easy adding / removeing Items in/out of the Quest
  • Item check how much left to complette
  • GMs see ItemIDs in Quest to fix fast
  • Loging who has complete wich Item

 

//===========SCREENSHOTS===============================

 

post-1254-0-19086800-1361315659_thumb.jpg

 

post-1254-0-60546300-1361315677_thumb.jpg

 

post-1254-0-08257800-1361315691_thumb.jpg

 

post-1254-0-66157800-1361315704_thumb.jpg

 

 

 

 

 

 

// ===========MAIN=NPC====================================

That will be the file for your "Quest Arena"

the_quest.txt

// ======================================================

 

// ===============DONT=EDIT=only=import=it===================

*Warning* dont edit this file if you dont know what you do!*

default_script.txt.txt

// ======================================================

 

// ==================SQL=================================

With 3 Examples just edit or Add the rows..

quest_template.sql

// ======================================================

 

 

 

//=================================================

Guide how to Add a Item to the NPC and than to the require.

 

You allready have include all the files on your import files and changed the map of the Main Quest NPC

than you will see that the NPC allready got items.

 

INSERT INTO `customquest` (`item`, `itemname`, `description`, `require`, `amount`, `npc`) VALUES
('20001', 'AnyName-Wings_001', 'kA', '', '', 'quest_001-middle'),
('20001', 'Jellopy_require', '', '909', '5000', ''),

('20002', 'AnyName-Upper_001', 'kA', '', '', 'quest_001-upper'),
('20002', 'Jellopy_require', '', '909', '5000', ''),

('20003', 'AnyName-Lower_001', 'kA', '', '', 'quest_001-lower'),
('20003', 'Jellopy_require', '', '909', '5000', '');

 

Right, item 20001 in Middle Wings, 20002 in Upper and 20003 in Lower.
Require get 5k Jellopy for the Custom wow..

 

Okai bored, we need to add a Item and edit the 5k to 350 its to much for one custom..

All What we need for that is only that line!

 

('20001', 'Jellopy_require', '', '909', '5000', ''),

to

('20001', 'Jellopy_require', '', '909', '350', ''),

 

Now we need 350 Jellopys when we update that in our SQL table

The update is mark becouse when the row with 5k jellopys will not deleted it will ask 2x for the item.

 

Adding 3 carat Diamon on the Quest of item 20001

 

INSERT INTO `customquest` (`item`, `itemname`, `description`, `require`, `amount`, `npc`) VALUES

('20001', '3carat Diamond', '', '732', '150', '');

 

 

Adding new Custom to the quest_001-upper

 

INSERT INTO `customquest` (`item`, `itemname`, `description`, `require`, `amount`, `npc`) VALUES

('20004', 'AnyName-Upper_001', 'kA', '', '', 'quest_001-upper');

 

dont forgott to add a require on the Item else you will get it for free~

 

INSERT INTO `customquest` (`item`, `itemname`, `description`, `require`, `amount`, `npc`) VALUES

('20004', '3carat Diamond', '', '732', '150', '');

 

Done.

 

 

The description tables unused only for the overall view and a small php-script that i write(if someone interessted PM).

 

 

 

 

 

 

 

 

 

 

 

 

 

Edited by yakuu
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...