Author | Message | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Works but wont take item from me an give reward
| Main { questname "Sick Man" version 1.0 } State begin { desc "Talk to Sick Man" ãâ¬â¬ action AddNpcText(1, " *Cough* Excuse me Kid "); action AddNpcText(1, "Could you help me get rid of some of these Coughing Crows they are making me sick"); action AddNpcInput( 1, 1, "Im on it"); action AddNpcInput( 1, 2, "no thanks"); ãâ¬â¬ rule InputNpc(1) goto kill rule InputNpc(2) goto return } State kill { desc "Kill Coughing Crow" ãâ¬â¬ action AddNpcText(1, "thank *Cough* you so much,[name]"); action AddNpcText(1, "Please Kill 30 Coughing Crow"); ãâ¬â¬ rule KilledNpcs(1, 30) goto return } State return { desc "Talk to Sick Man" ãâ¬â¬ action AddNpcText(1, "Great Job"); action AddNpcText(1, "Now can you kill 30 Infected Rats"); ãâ¬â¬ rule TalkedToNpc(1) goto kill1 } State kill1 { desc "Kill 30 Infected Rats" ãâ¬â¬ rule KilledNpcs(2, 30) goto return1 } State return1 { desc "Talk to Sick Man" ãâ¬â¬ action AddNpcText(1, "Wow thats a big Help Thanks"); action AddNpcText(1, "Now if you could kill the Mutant Blob. I Think it started spreading the germs in the first place. Be sure to bring plenty of Fruit hes strong."); ãâ¬â¬ rule TalkedToNpc(1) goto kill2 } State kill2 { desc "Kill Mutant Blob" ãâ¬â¬ rule KilledNpcs(3, 1) goto return2 } State return2 { desc "Talk to Sick Man" ãâ¬â¬ action AddNpcText(1, "You killed him already i dont believe you proof it bring me the mutant charm it"); ãâ¬â¬ rule TalkedToNpc(1) goto return3 } State return3 { desc "Bring Mutant Charm" ãâ¬â¬ rule GotItems(233,1) goto give rule InputNpc(3) goto end } State give { desc "Talk to Sick Man" ãâ¬â¬ action AddNpcText(1, "hand it over please so i can be healed"); action AddNpcInput( 1, 3, "here take it"); ãâ¬â¬ action AddNpcInput( 1, 4, "no way its to rare "); action GiveItem(233,1); ãâ¬â¬ rule LostItems(233, 1) goto end } State end { desc "Talk to Sick Man for Reward" ãâ¬â¬ action RemoveItem(233 , 1); ãâ¬â¬ rule LostItems(233, 1) goto reward } State reward { action ShowHint("You Been Rewarded!!"); action RemoveItem(233, 1); ãâ¬â¬ action GiveItem(1, 250); action GiveItem(2, 15); ãâ¬â¬ action GiveEXP(3000); action End(); } State reset { action Reset(); } stops working after here take item so after messing with this quest for servaral hours trying to get it right now when I spawn item 233 to inventory it crashes game lol I'm so freaking annoyed with quest I just don't understand them
|
Re: Works but wont take item from me an give reward
| Check out the EO Plus quest writer I think it will help you out https://app.box.com/shared/7dztilmtns/0/60870501
|
Re: Works but wont take item from me an give reward
| insomniac posted: (23rd Jan 2017, 03:11 am) I don't recommend this. It is a cheap gimmick app that simply fills in quest text. My Notepad++ is a much better tool as it actually contains tool tips and highlights syntax. No quest writer has been developed to contain logic.
|
Re: Works but wont take item from me an give reward
| Apollo posted: (23rd Jan 2017, 12:08 pm)insomniac posted: (23rd Jan 2017, 03:11 am) Right on I was just trying to push him in a helpfull direction instead of posting new threads for each quest syntax issue.
|
Re: Works but wont take item from me an give reward
| Apollo posted: (23rd Jan 2017, 12:08 pm)insomniac posted: (23rd Jan 2017, 03:11 am) A cheap gimmick app that fills in quest text is what most need lol. For beginners getting started with EOplus and the syntax, to not have to worry about semicolons and parentheses and names of functions is a good way to get started. --- stay tuned.
|
Re: Works but wont take item from me an give reward
| andrewbob1 posted: (23rd Jan 2017, 04:21 pm)Apollo posted: (23rd Jan 2017, 12:08 pm)insomniac posted: (23rd Jan 2017, 03:11 am) Beginners definitely need to stay away from the app. Logic rules that can result in server crashing infinity loops can easily be generated by text generators. A good example is GotItem and LostItem. These rules if placed improperly can create an infinity loop that will lock EOSERV. Sausage does have a recursion check in place, however it only checks when EOSERV boots up and not during the $request function. Knowing how to write in EO+ is quite a bit more important than using a doit4me program by far. The plug-in I made for notepad++ does just that, but with auto-complete, syntax highlighting, tool tips while entering variables for actions / rules, and collapsing quest states. Sorry, but I feel something that somewhat explains things as you use it is far more beneficial that blindly clicking the make it happen button.
|
Re: Works but wont take item from me an give reward
| Apollo posted: (23rd Jan 2017, 06:58 pm)andrewbob1 posted: (23rd Jan 2017, 04:21 pm)Apollo posted: (23rd Jan 2017, 12:08 pm)insomniac posted: (23rd Jan 2017, 03:11 am) Apollo is correct that no questwriter program exists that will actively help users avoid *logic* errors, and that is an important point that users of the existing app should keep in mind when creating quests. Of course, the same can be said of using Notepad++ with the plugin, which is my preferred method. Both methods do similar things, and of course neither really hold the user's hand in terms of understanding *how* the EOPlus engine will understand and handle what they've written. It might be beneficial if there was a more comprehensive writeup of how state progression occurs (and in some cases does not occur where expected) even in the most recent revisions of EOSERV. --- Want to learn to pixel? Pixelsource.org
|
Re: Works but wont take item from me an give reward
| Cirras posted: (23rd Jan 2017, 08:17 pm)Apollo posted: (23rd Jan 2017, 06:58 pm)andrewbob1 posted: (23rd Jan 2017, 04:21 pm)Apollo posted: (23rd Jan 2017, 12:08 pm)insomniac posted: (23rd Jan 2017, 03:11 am) Agreed, I had to learn it through the guide provided by Apollo, and in-game trial and error / experimentation, once the logic is understood however, using a simple notepad works just fine. As there is no real need for indentation etc other than cosmetics, I figure people should just make use of the guide and try stuff on a test realm or something! --- Host of a blacklisted server...
|
Re: Works but wont take item from me an give reward
| well I tried it an requested quest 1 on it still no luck. See my problem with writing quest is the lack of knowledge of the proper actions/rules knowing where and what is needed to excute the proper code to function the quest. Ive looked over many quest an some quest I see in State Begin they will have 2 rules and some will have one rule I don't understand that an I'm sure there is a purpose in it I need like a guide so to speak a definition of each action an rule. I sound dumb to you all more then likely an yes I probably post more then most but from where I sit I cant progress in my game until I have quests. So I can try my best to balance the reward with the next map. My quest 1 kill 30 crows,30 rats,1 blob I can get it to work then when I want to add in the getting of the item to finish the quest is where it messes up. I cant figure it out, Now for some reason I have wrote the whole quest got it to work with bugs in it like when you finish an complete the quest you can keep clicking on the npc an he will keep rewarding you I couldn't get that to stop. I had action end an reset t the end of the quest thought that would prevent any furthering of that quest npc. this message will probably sound jiberish to most if not all I'm not the best at explaining myself but thanks to you all for comments. But Apollo and Cirras I know are how to say very well decorated in making servers an I try to follow what yall post thanks I wont give up but if there is a guide to writing quest if I could get that link it'd be awesome much love your truly Playko lol already found the guide it is on the post above mine lol should have read all post before posting
|
Re: Works but wont take item from me an give reward
| Your RemoveItem is set as an action. Change it to a rule and your quest will work fine. Edit People here tend to argue over whats the best system to use rather than actually giving an answer, and it leaves the OP stuck. Sure, a learning experience but help is nice too. This could have been resolved in Insomniac's comment, but nobody looked at it. --- "Nurd, you're like a fucking swiss army knife" - Necrosis |