EOSERV Forum > EO Server Building > can someone help the quest works fine but
Page: << 1 >>
can someone help the quest works fine but
Author Message
Post #202176 can someone help the quest works fine but

Main

{

questname "Save the Kingdom"

version 1.0

}

State Begin

{

desc "Talk to the King"

 

action AddNpcText(2, "Thank God you made it [name]");

action AddNpcText(2, "need you on the front lines");

action AddNpcInput(2, 1, "Of Course Whats are Situation");

action AddNpcInput(2, 2, "Im not goin out there there dead bodies everywhere");

rule InputNpc(1) goto kill

rule InputNpc(2) goto return

}

State kill

{

desc "Kill 250 Army of Darkness"

 

action AddNpcText(2, "Knew i could count on you [name]");

action AddNpcText(2, "Destory the army of darkness");

rule KilledNpcs(135, 250) goto Return

}

State Return

{

desc "Talk to the King"

action AddNpcText(2, "Thats going to help alot with our Victory");

action AddNpcText(2, "Need to to Kill Darkness Pet they are Slaughter our Army");

action AddNpcInput(2, 3, "Agreed Those things a Vicious");

action AddNpcInput(2, 4, "I cant kill those things ");

rule InputNpc(3) goto kill1

}

State kill1

{

desc "Kill 2 Darkness Pets"

action AddNpcText(2, "You can do it [name]");

action AddNpcText(2, "now kill them both NO MERCY!!!");

rule KilledNpcs(185, 2) goto Return1

}

State Return1

{

desc "kill the prince"

 

action AddNpcText(2, "Now we can do a full on assault to the Prince Charge");

action AddNpcText(2,"Now Destory the Prince send him back to Hell!!");

action AddNpcInput(2, 5, "Lets Finsih this For Seleant!!!");

action AddNpcInput(2, 6, "Im exhausted i cant go any further");

rule KilledNpcs(235, 1) goto return2

}

State Return2

{

desc "talk to the king"

 

action AddNpcText(2, "You have save Seleant you are our hero");

action AddNpcText(2, "now wake up,wake up");

rule TalkedToNpc(2) goto reward

}

State reward

{

desc "wake up"

 

action RemoveItem(20 , 1);

action RemoveItem(144, 1);

action RemoveItem(432, 1);

action SetCoord(9,1,2);

action Reset();

}

it didn't remove the items from the acc

7 years, 14 weeks ago
Post #202179 Re: can someone help the quest works fine but

I think this is a bug in EOSERV, but use an Always() rule to move from the state with remove items and move to a state that contains only the Reset() action. Separating RemoveItem and Reset should fix it.

7 years, 14 weeks ago
Post #202180 Re: can someone help the quest works fine but

So reading over this, I'm thoroughly confused. In this quest there's no quest portion that requires you to get any item, which would be action GotItem, and there's nothing that requires you to speak to them through dialogue after obtaining each item, so making the quest remove item is very confusing to me, as the initial items which wouldn't have been obtained through this quest would be required in your inventory.

If your state reward says remove item there should be portions throughout the segments with "GotItem" to clairfy what's needed or otherwise, and removeitem is to remove those to give you an item.

So if you want to give an item as a reward, opposed to taking them, change to action GiveItem(20,1); 


Otherwise I think I'm just extremely confused.

7 years, 14 weeks ago
Post #202181 Re: can someone help the quest works fine but

He wants to remove items but they are not being removed as stated at the end of his post. I am almost certain it is an EOSERV bug preventing proper execution.

7 years, 14 weeks ago
Post #202184 Re: can someone help the quest works fine but

Main

{

questname "Save the Kingdom"

version 1.0

}

State Begin

{

desc "Talk to the King"

 

action AddNpcText(2, "Thank God you made it [name]");

action AddNpcText(2, "need you on the front lines");

action AddNpcInput(2, 1, "Of Course Whats are Situation");

action AddNpcInput(2, 2, "Im not goin out there there dead bodies everywhere");

rule InputNpc(1) goto kill

rule InputNpc(2) goto return

}

State kill

{

desc "Kill 250 Army of Darkness"

 

action AddNpcText(2, "Knew i could count on you [name]");

action AddNpcText(2, "Destory the army of darkness");

rule KilledNpcs(135, 250) goto Return

}

State Return

{

desc "Talk to the King"

action AddNpcText(2, "Thats going to help alot with our Victory");

action AddNpcText(2, "Need to to Kill Darkness Pet they are Slaughter our Army");

action AddNpcInput(2, 3, "Agreed Those things a Vicious");

action AddNpcInput(2, 4, "I cant kill those things ");

rule InputNpc(3) goto kill1

}

State kill1

{

desc "Kill 2 Darkness Pets"

action AddNpcText(2, "You can do it [name]");

action AddNpcText(2, "now kill them both NO MERCY!!!");

rule KilledNpcs(185, 2) goto Return1

}

State Return1

{

desc "kill the prince"

 

action AddNpcText(2, "Now we can do a full on assault to the Prince Charge");

action AddNpcText(2,"Now Destory the Prince send him back to Hell!!");

action AddNpcInput(2, 5, "Lets Finsih this For Seleant!!!");

action AddNpcInput(2, 6, "Im exhausted i cant go any further");

rule KilledNpcs(235, 1) goto return2

}

State Return2

{

desc "talk to the king"

 

action AddNpcText(2, "You have save Seleant you are our hero");

action AddNpcText(2, "now wake up,wake up");

rule TalkedToNpc(2) goto reward

}

State reward

{

desc "wake up"

 

action RemoveItem(20 , 1);

action RemoveItem(144, 1);

action RemoveItem(432, 1);

action SetCoord(9,1,2);

rule Always() goto reset

}

State reset

{

action Reset();

}

is this what you were trying to tell me to change to.  an in this quest this is the start of the game I set up starter item in config your in a dream an when you kkill the prince it warps you to your house so its important that the items be removed

7 years, 14 weeks ago
Post #202185 Re: can someone help the quest works fine but
Plako posted: (21st Jan 2017, 10:24 pm)

Main

{

questname "Save the Kingdom"

version 1.0

}

State Begin

{

desc "Talk to the King"

 

action AddNpcText(2, "Thank God you made it [name]");

action AddNpcText(2, "need you on the front lines");

action AddNpcInput(2, 1, "Of Course Whats are Situation");

action AddNpcInput(2, 2, "Im not goin out there there dead bodies everywhere");

rule InputNpc(1) goto kill

rule InputNpc(2) goto return

}

State kill

{

desc "Kill 250 Army of Darkness"

 

action AddNpcText(2, "Knew i could count on you [name]");

action AddNpcText(2, "Destory the army of darkness");

rule KilledNpcs(135, 250) goto Return

}

State Return

{

desc "Talk to the King"

action AddNpcText(2, "Thats going to help alot with our Victory");

action AddNpcText(2, "Need to to Kill Darkness Pet they are Slaughter our Army");

action AddNpcInput(2, 3, "Agreed Those things a Vicious");

action AddNpcInput(2, 4, "I cant kill those things ");

rule InputNpc(3) goto kill1

}

State kill1

{

desc "Kill 2 Darkness Pets"

action AddNpcText(2, "You can do it [name]");

action AddNpcText(2, "now kill them both NO MERCY!!!");

rule KilledNpcs(185, 2) goto Return1

}

State Return1

{

desc "kill the prince"

 

action AddNpcText(2, "Now we can do a full on assault to the Prince Charge");

action AddNpcText(2,"Now Destory the Prince send him back to Hell!!");

action AddNpcInput(2, 5, "Lets Finsih this For Seleant!!!");

action AddNpcInput(2, 6, "Im exhausted i cant go any further");

rule KilledNpcs(235, 1) goto return2

}

State Return2

{

desc "talk to the king"

 

action AddNpcText(2, "You have save Seleant you are our hero");

action AddNpcText(2, "now wake up,wake up");

rule TalkedToNpc(2) goto reward

}

State reward

{

desc "wake up"

 

action RemoveItem(20 , 1);

action RemoveItem(144, 1);

action RemoveItem(432, 1);

action SetCoord(9,1,2);

rule Always() goto reset

}

State reset

{

action Reset();

}

is this what you were trying to tell me to change to.  an in this quest this is the start of the game I set up starter item in config your in a dream an when you kkill the prince it warps you to your house so its important that the items be removed


Have you ensured the items are not equipped? They must be in your inventory for removal, if I remember correctly.

7 years, 14 weeks ago
Post #202190 Re: can someone help the quest works fine but

yea they are equipped if they cant be removed while equipped then I cant use this quest

7 years, 14 weeks ago
Post #202192 Re: can someone help the quest works fine but
Plako posted: (22nd Jan 2017, 02:58 am)

yea they are equipped if they cant be removed while equipped then I cant use this quest


Unless if you make the quest specify that it requires specific items in your inventory(through npc text), in order to send you back to the real world(presumably, being that you're in a dream state to begin with). 

So they could equip them in the meantime, but if they wish to progress and use the NPC to warp back (since it'll require the items in inventory), if you set the NPC to notify them of what they need (whenever the click on the NPC while items are equipped), you should be fine.

It's a bit more complicated but it's a way to workaround it and the interesting concept can still be in play.

7 years, 14 weeks ago
Post #202193 Re: can someone help the quest works fine but

yea that's alittle confusing I don't think I understand that but you must be really good at writing quest ive never gotten a quest to work right

7 years, 14 weeks ago
Post #202194 Re: can someone help the quest works fine but

You could use GotItem and LostItem rules to check inventories. You will need to add custom rules and actions to act on and check the paperdoll.

7 years, 14 weeks ago
Post #202197 Re: can someone help the quest works fine but

I just rewrote the quest before I saw your measssge Apollo I hope I can possibly use what I did it as

7 years, 14 weeks ago
Post #202200 Re: can someone help the quest works fine but

There is an IsWearing rule, but there is no Remove/Add Equipment nor is there checks for NotWearing or any check to see if the player is fully unequipped. I added these ages ago to feature requests for EOSERV, but I suppose it may have to be user supported for the unforeseen future.

7 years, 14 weeks ago
Post #202204 Re: can someone help the quest works fine but

lol I don't see me making this quest work I think it would be an awesome intro

7 years, 14 weeks ago
Post #202221 Re: can someone help the quest works fine but
Plako posted: (22nd Jan 2017, 04:32 pm)

lol I don't see me making this quest work I think it would be an awesome intro


Apollo just said there is an IsWearing rule, so if they are wearing the items you can make the quest tell them to take them off before you can continue it.
---
I not hacker

“Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its
whole life believing that it is stupid.” - Albert Einstein : Really Great Quote Ramy!
7 years, 14 weeks ago
Page: << 1 >>

EOSERV Forum > EO Server Building > can someone help the quest works fine but