EOSERV Forum > EOSERV > Ananas' Item related Quests (Release)
Topic is locked.
Page: << 1 2 3 >>
Ananas' Item related Quests (Release)
Author Message
Post #36579 Re: Ananas' Item related Quests (Release)

Ill try to merge wisemans quest and ananas and see how that works out.

---
Fate-Gaming/Forgotten Memories Owner.
15 years, 22 weeks ago
Post #36580 Re: Ananas' Item related Quests (Release)

well it wont work to add more quests yet becuase it will take some things of quest 1

and wiseman/quests its possible but i dont really know how

---
opensource isometric game engine ~ www.avac-engine.blogspot.com
15 years, 22 weeks ago
Post #36581 Re: Ananas' Item related Quests (Release)
clive posted: (30th Apr 2010 06:34 pm)

well it wont work to add more quests yet becuase it will take some things of quest 1

and wiseman/quests its possible but i dont really know how



Well it is obviously not going to work with wise man if you don't know what the values are in the packet. This is the same problem people have using the Quest Dialog box as a welcome message. Realistically though, hard coding quests is bad. For example, you would probably use around 5,000 lines of code hard coding each case, each packet, every reward, etc.

You have the quest packets, write the code to use them.

15 years, 22 weeks ago
Post #36584 Re: Ananas' Item related Quests (Release)
Apollo posted: (30th Apr 2010 07:05 pm)

clive posted: (30th Apr 2010 06:34 pm)

well it wont work to add more quests yet becuase it will take some things of quest 1

and wiseman/quests its possible but i dont really know how



Well it is obviously not going to work with wise man if you don't know what the values are in the packet. This is the same problem people have using the Quest Dialog box as a welcome message. Realistically though, hard coding quests is bad. For example, you would probably use around 5,000 lines ofcode hard coding each case, each packet, every reward, etc.

You have the quest packets, write the code to use them.

You say hardcoding, Thats not hard coding this is Endless Online Remember.
A small 2D game, Trying to become better with newbie Coders.

But the newbie codes (Here on this forum) are good cause its EO.

Sausage and Sordie, Could team and maybe make anything but who says that will ever happen,

I wouldn't try to do anything if it took 5000 lines just to do that, Why not wait and find somthing easier,

Question:

Anyone know how to add more quests?

15 years, 22 weeks ago
Post #36585 Re: Ananas' Item related Quests (Release)

Hate to break it to ya, but when you copy/paste the same code over and over to satisfy every circumstance a quest has, this is called hardcoding. If you really want to see how huge the quest file can be, I may take a couple hours and hard code the entire EO main quest system just for lols. I would highly recommend against using hard coded quests though.

15 years, 22 weeks ago
Post #36587 Re: Ananas' Item related Quests (Release)
Apollo posted: (30th Apr 2010 08:50 pm)

Hate to break it to ya, but when you copy/paste the same code over and over to satisfy every circumstance a quest has, this is called hardcoding. If you really want to see how huge the quest file can be, I may take a couple hours and hard code the entire EO main quest system just for lols. Iwould highly recommend against using hard coded quests though.

Hate to break it to ya, But no Thats called copy & pasting a code with another, Thats just time consuming not "Hardcoding" Hard coding is called coding something your self.

Something you obviously can't do.
15 years, 22 weeks ago
Post #36588 Re: Ananas' Item related Quests (Release)
Helper posted: (30th Apr 2010 11:00 pm)

Apollo posted: (30th Apr 2010 08:50 pm)

Hate to break it to ya, but when you copy/paste the same code over and over to satisfy every circumstance a quest has, "this is called hardcoding". If you really want to see how huge the quest file can be, I may take a couple hours and hard code the entire EO main quest system just for lols.Iwould highly recommend against using hard coded quests though.

Hate to break it to ya, But no Thats called copy & pasting a code with another, Thats just time consuming not "Hardcoding" Hard coding is called coding something your self.

Something you obviously can't do.
Helper read the quotes i put then read the bold underline sentence. He was giving and example of hardcoding he never ment C&P was hardcoding.
So prolly next time try to read it carefully before posting something that could of easly been misunderstood

*Back on topic*
This Release helped me out alot thx ananas

---
Fate-Gaming/Forgotten Memories Owner.
15 years, 22 weeks ago
Post #36597 Re: Ananas' Item related Quests (Release)
Helper posted: (30th Apr 2010 11:00 pm)

Apollo posted: (30th Apr 2010 08:50 pm)

Hate to break it to ya, but when you copy/paste the same code over and over to satisfy every circumstance a quest has, this is called hardcoding. If you really want to see how huge the quest file can be, I may take a couple hours and hard code the entire EO main quest system just for lols.Iwould highly recommend against using hard coded quests though.

Hate to break it to ya, But no Thats called copy & pasting a code with another, Thats just time consuming not "Hardcoding" Hard coding is called coding something your self.

Something you obviously can't do.



Let me be more clear. There is one unique packet that handles the client functions "PACKET_USE" and "PACKET_ACCEPT". This builder should only appear once in each of those cases. The packet is composed of variables that distinguish "Quest ID" as well as "Action Links" that send send data to the next step. For instance, clicking class in the wise man menu would call "Karma Quest ID", "Class Action Link", and selecting a class from that menu would call "Karma Quest ID, Class Change Action Link". To program quests properly, the case for PACKET_USE and PACKET_ACCEPT must use variables that are determined by 1, the npc->questid, and 2, character's quest->state.

Also, if you are going to say someone can't code, don't start your post with the fact you copy/paste hundreds of lines of useless code to make some effect happen. That is a clear example of "not coding".

15 years, 22 weeks ago
Post #36599 Re: Ananas' Item related Quests (Release)

Maybe but, Your referring Endless Online coding is "Hard coding" a guarantee that anyone will say " Endless Online is a easy 2D game made up of simple CPP Code"

Why don't you take a look at something that's real CPP code?


Then come back and tell me how that went.


15 years, 22 weeks ago
Post #36639 Re: Ananas' Item related Quests (Release)

helper, i'm pretty sure you don't understand what hard coding is. hard does not refer to the difficulty of the coding. it refers to exactly what apollo said - hundreds of lines of code that could easily be reduced to make for better performance of your application. something that is directly described in the source that if you want to make changes to, you have to type the code in yourself, and recompile. 

eo+ quest file parser (https://eoserv.net/forum/topic/7696) is a way to NOT do this. instead, you use an external file that is loaded into the application if you want to make changes to your quests. if you look on the actual website for endless online, it gives a description of how the file parser works. i am hoping that gets integrated into an emulator pretty soon because it is a really powerful tool that would allow server admins to create their own quests and have a ton of control, much like this release does.

ananas system is (again like apollo said) a really good move towards doing this, since no one else has thought to release a quest handler yet (as far as i know). for now, i would just use this, and not challenge a moderator for his coding skills. moderators have their positions for a reason.

if you want to take a look at what it is like to hard code a quest, i added a karma menu to my source in this fashion and posted a release (https://eoserv.net/forum/topic/7685). and apollo shot it down, for the obvious reason that it is a pain in the ass and is also inefficient. 

anyways. sorry for the off topic explanation. this quest system is a HUGE progression and a valuable addition to the eoserv community (even though i'm pretty sure you all already figured that out).

---
class EOSERV {
Programmer | Oldbie
Open source EO Client: https://github.com/ethanmoffat/EndlessClient
};
15 years, 22 weeks ago
Post #36642 Re: Ananas' Item related Quests (Release)

Why call it hard coding? Call it Copy & Paste Coding. xD!

15 years, 22 weeks ago
Post #36654 Re: Ananas' Item related Quests (Release)
Helper posted: (1st May 2010 06:21 pm)

Why call it hard coding? Call it Copy & Paste Coding. xD!



Lets not and use the proper. See the link I have given you for "Hard Coding" defined. If you still don't understand hard coding, then maybe you are in the wrong forum. This is EOSERV not Seose. Non-coders go there.

http://en.wikipedia.org/wiki/Hard_coding

15 years, 22 weeks ago
Post #36678 Re: Ananas' Item related Quests (Release)
Apollo posted: (1st May 2010 10:37 pm)

Helper posted: (1st May 2010 06:21 pm)

Why call it hard coding? Call it Copy & Paste Coding. xD!



Lets not and use the proper. See the link I have given you for "Hard Coding" defined. If you still don't understand hard coding, then maybe you are in the wrong forum. This is EOSERV not Seose. Non-coders go there.

http://en.wikipedia.org/wiki/Hard_coding

Apollo man,

Long term, short.
Lets just say ok. whats done is done , I obviously think its something different and so do you, So

My opinion over urs, I'm just not "Flaming you and this topic" over something stupid.

If you want to say its Hardcoding, Well giver nuts.

If I want to say its not, I'll giver nuts.

I'm done here, I wanna be cool with all Mods/Admins/Watchdogs #1 Ananas.

-Helper out.
15 years, 22 weeks ago
Post #36731 Re: Ananas' Item related Quests (Release)

I tried adding another quest but it only reads the last quest it doesnt read both quest im not sure wats wrong with it ill post the quests here


### Rat Quest ###

#

### Main Dialog Screen ###

1.mapid = 94

1.questtitle = Witch Quest

1.questptitle = Rat Murderer

1.questmmessage = Oh man... I'm in deep trouble..

### First Dialog Screen ###

1.qfmessage = Hey you! Can you help me collect 5 rat tails for the witch?

1.qfmessageoption1 = Yes sure!

1.qfmessageoption2 = Ewww.. Rats..

1.rqfmessageoption1 = Thank you! You can kill some rats here for there tails!

### Second Dialog Screen ###

1.qsmessage = Got the 5 rat tails for me?

1.aqmessageoption1 = Yes here they are!

1.aqmessageoption2 = Ehm.. I don't think so..

1.qfinishmessage = Thank you! Here take this reward!

1.qnoitemsmessage = Seems like you don't got the items..

1.raqmessageoption2 = Ok well, Come back later if you want.

### Requirements ###

1.ritemid = 249

1.ritemamount = 5

### Reward ###

1.rewardid = 1

1.rewardamount = 800

###


### Pet Quest ###

#

### Main Dialog Screen ###

1.mapid = 293

1.questtitle = Goat Pet Quest

1.questptitle = Goaty!!!!

1.questmmessage = Do u want a pet nikka?!?!?!

### First Dialog Screen ###

1.qfmessage = Hey you! Can you help me collect 100 Goat Horns Bish?!!?

1.qfmessageoption1 = Yes sure!

1.qfmessageoption2 = Ewww.. Goats...

1.rqfmessageoption1 = Thank you! You can kill some Goats for there horns!?!!?

### Second Dialog Screen ###

1.qsmessage = Got the goat horns 4 me bish???

1.aqmessageoption1 = Yes here they are!

1.aqmessageoption2 = Ehm.. I don't think so..

1.qfinishmessage = Thank you! Here take this reward!

1.qnoitemsmessage = Seems like you don't got the items..

1.raqmessageoption2 = Ok well, Come back later if you want.

### Requirements ###

1.ritemid = 258

1.ritemamount = 100

### Reward ###

1.rewardid = 617

1.rewardamount = 1

##

And on quest amount i put 2 but it only reads 1 quest

---
Fate-Gaming/Forgotten Memories Owner.
15 years, 21 weeks ago
Post #36743 Re: Ananas' Item related Quests (Release)

Is the NPC that your using for the second quest set to "Quest" in your pub editor,what I'm assuming is that there should only be one NPC with the npc type set to "Quest" per map for the actual quest to work, since it will automatically detect the Quest npc type.

15 years, 21 weeks ago
Page: << 1 2 3 >>
Topic is locked.
EOSERV Forum > EOSERV > Ananas' Item related Quests (Release)