Function
Joined: 22nd Feb 2013
Posts: 55
I need a dragon warrior quest?
Hey guys I need a draggon warrior quest. So like ''Kill 30dragons'' and get a reward of 100k gold and 50k exp. IF someone can make me one would be great!
Thanks, Brennan ---
Never ever give up, just keep at it you'll get it!
12 years, 18 weeks ago
|
Apollo
Administrator
Joined: 14th Apr 2009
Posts: 2759
Re: I need a dragon warrior quest?
main { Questname "Dragon Warrior" Version 1.0 } State Begin { Desc "Kill 30 Dragons" Action AddNpcText(#ID, "Kill 30 Dragons"); Rule KilledNPC(#ID, 30) goto Killed } State Killed { Desc "Return for Reward" Action AddNpcText(#ID, "Here's your reward"); Action AddNpcInput(#ID, 1, "Get Reward"); Rule InputNPC(1) goto Reward } State Reward { Action GiveItem(1,100000); Action GiveExp(50000); Action End(); } In about 2 minutes from my mobile phone :P
12 years, 18 weeks ago
|
BroTard

Joined: 2nd Aug 2011
Posts: 461
Re: I need a dragon warrior quest?
Main
{
questname "Dragon Warrior"
version 1.0
}
state Begin
{
desc "Talk to the Dragon Master"
action AddNpcText ( 1 , "Why hello there");
action AddNpcText ( 1 , "You claim to be a warrior?");
action AddNpcText ( 1 , "Hah! I do not believe you.");
action AddNpctext ( 1 , "When you can kill 30 of these brute dragons, then we will talk of you being a so called warrior...");
rule KilledNpcs ( 225, 30 ) goto TurnIn
}
state TurnIn
{
desc "Turn In"
action AddNpcText ( 1 , "Okay, okay, you're a real warrior. Here is a bountiful reward!");
rule TalkedToNpc (1) goto Reward
}
state Reward
{
desc "uhhh here"
action ShowHint ("You gained 50000 EXP!");
action GiveExp (50000);
action GiveKarma (100);
action GiveItem (1,100000)
rule TalkedToNpc (1) goto End
}
state End
{
action end ();
} ---
Forum Ghost V2, Test Player, Mapping Artist, Optimist Prime, Server Owner (Hoodrats PK), Quest
Writer, Amateur Pixel Artist
Curious George
12 years, 18 weeks ago
|
Apollo
Administrator
Joined: 14th Apr 2009
Posts: 2759
Re: I need a dragon warrior quest?
You don't need a desc or a rule TalkedToNpc in yours BroTard. Simply put End() after the other actions in the Reward state and you're done.
12 years, 18 weeks ago
|
BroTard

Joined: 2nd Aug 2011
Posts: 461
Re: I need a dragon warrior quest?
Apollo posted: (21st Apr 2013, 02:25 am)
You don't need a desc or a rule TalkedToNpc in yours BroTard. Simply put End() after the other actions in the Reward state and you're done.
In my experience, doing what you said ends the quest without going back to the quest npc. However I work with EOSource primarily, so it may be slightly different.
Also, you quest wasn't bad, just needed some dialogue to beef it up. Pretty good for being written from your phone. ---
Forum Ghost V2, Test Player, Mapping Artist, Optimist Prime, Server Owner (Hoodrats PK), Quest
Writer, Amateur Pixel Artist
Curious George
12 years, 18 weeks ago
|
Apollo
Administrator
Joined: 14th Apr 2009
Posts: 2759
Re: I need a dragon warrior quest?
The quest should end properly on any build if placing End() just after your rewards are given. There is no need to place End() in a seperate state from the rewards given. You are required of course to have a quest npc link you into the reward state. If you are using a build that doesn't support this then they probably have broken the code. The reward state shown in my example works on the official build of EOSERV and is also the method Vult uses on all of his quests.
12 years, 18 weeks ago
|
Function
Joined: 22nd Feb 2013
Posts: 55
Re: I need a dragon warrior quest?
Well, I tried Brotard's quest didn't work...
---
Never ever give up, just keep at it you'll get it!
12 years, 18 weeks ago
|
BroTard

Joined: 2nd Aug 2011
Posts: 461
Re: I need a dragon warrior quest?
Function posted: (21st Apr 2013, 04:28 am)
Well, I tried Brotard's quest didn't work...
Did you change the npc quest id to the one specified in your pub file for the npc you used? ---
Forum Ghost V2, Test Player, Mapping Artist, Optimist Prime, Server Owner (Hoodrats PK), Quest
Writer, Amateur Pixel Artist
Curious George
12 years, 18 weeks ago
|
Lord

Joined: 2nd Jun 2011
Posts: 592
Re: I need a dragon warrior quest?
BroTard posted: (21st Apr 2013, 06:05 am)
Function posted: (21st Apr 2013, 04:28 am)
Well, I tried Brotard's quest didn't work...
Did you change the npc quest id to the one specified in your pub file for the npc you used?
No yours didn't work because you missed a ; off of the end of the GiveItem and idk if it matters but you may also need a capital E on End();
Apollo is right, there's no need to make a separate state specifically for End. If anyone's going to know it's him.
12 years, 18 weeks ago
|
Apollo
Administrator
Joined: 14th Apr 2009
Posts: 2759
Re: I need a dragon warrior quest?
Case isn't considered in EO+ unless it is contained in quotes for dialog purposes. End() and END() are always converted to end().
12 years, 18 weeks ago
|
BroTard

Joined: 2nd Aug 2011
Posts: 461
Re: I need a dragon warrior quest?
Lord posted: (21st Apr 2013, 10:39 am)
BroTard posted: (21st Apr 2013, 06:05 am)
Function posted: (21st Apr 2013, 04:28 am)
Well, I tried Brotard's quest didn't work...
Did you change the npc quest id to the one specified in your pub file for the npc you used?
No yours didn't work because you missed a ; off of the end of the GiveItem and idk if it matters but you may also need a capital E on End();
Apollo is right, there's no need to make a separate state specifically for End. If anyone's going to know it's him.
Now how did I miss such a crucial error haha wow. ---
Forum Ghost V2, Test Player, Mapping Artist, Optimist Prime, Server Owner (Hoodrats PK), Quest
Writer, Amateur Pixel Artist
Curious George
12 years, 18 weeks ago
| | | | | | | | | | | |