EOSERV Forum > EOSERV > Quests[Release]
Topic is locked.
Page: << 1 2 3 4 5 6 >>
Quests[Release]
Author Message
Post #48050 Re: Quests[Release]

Yeah don't bother posting errors or anything just wait for Apollo's Release.

14 years, 35 weeks ago
Post #48183 Re: Quests[Release]

Apollo said in his guide that there was a Reset(); action but I can't find it in the source.

---
https://www.youtube.com/watch?v=d_DFVzxsEUc
14 years, 35 weeks ago
Post #48185 Re: Quests[Release]
Madao posted: (3rd Sep 2010 09:00 pm)

Apollo said in his guide that there was a Reset(); action but I can't find it in the source.


I don't know where it is in the source but Reset(); definitely works, It's just like ending the quest but you can re do it.
14 years, 35 weeks ago
Post #48187 Re: Quests[Release]
lewis999 posted: (3rd Sep 2010 09:07 pm)

Madao posted: (3rd Sep 2010 09:00 pm)

Apollo said in his guide that there was a Reset(); action but I can't find it in the source.


I don't know where it is in the source but Reset(); definitely works, It's just like ending the quest but you can re do it.

Dosn't work for me xp. Just about everything else does though. Oh I take that back it does work :p. By the way in handlers/Quest.cpp

                        else if (rule->name.compare("killednpcs") == 0 || rule->name.compare("killedplayers") == 0)
                        {
                            int amount = ((int)(*rule->args[0]));// changed to args[0] 

                            reply.AddShort(BOOK_ICON_KILL);
                            reply.AddShort(quest->killed);
                            reply.AddShort(amount);
                        }

Nvm I found it. Something was wrong with codeblocks search my files.
---
https://www.youtube.com/watch?v=d_DFVzxsEUc
14 years, 35 weeks ago
Post #48189 Re: Quests[Release]

Its how apollo said it may only ready the quest half way and stop there other times it reads the whole quest. Cuz ive tried with 2 quest 1 did reset and the other 1 didnt so it all depends.

---
Fate-Gaming/Forgotten Memories Owner.
14 years, 35 weeks ago
Post #48920 Re: Quests[Release]

1 prob fixed

replace this part:

bool Character::PerformQuestActions(int id) {
Character_Quest *quest = this->GetQuest(id);
if (!quest) return false;
State *state = this->world->GetQuest(id)->GetState(quest->state);
if (!state) return false;
bool stats_updated = false;
UTIL_PTR_VECTOR_FOREACH(state->actions, Action, action) {

if (action->name.compare("giveitem") == 0) {
short item = ((int)(*action->args[0]));
short amount = ((int)(*action->args[1]));
if (this->AddItem(item, amount)) {
PacketBuilder builder(PACKET_ITEM, PACKET_STOCK);
builder.AddShort(item);
builder.AddThree(this->HasItem(item));
builder.AddChar(this->weight);
this->player->client->SendBuilder(builder); } }

if (action->name.compare("removeitem") == 0) {
short item = ((int)(*action->args[0]));
int amount = ((int)(*action->args[1]));
if (this->DelItem(item, amount)) {
PacketBuilder builder(PACKET_ITEM, PACKET_KICK);
builder.AddShort(item);
builder.AddInt(this->HasItem(item));
builder.AddChar(this->weight);
this->player->client->SendBuilder(builder); } }

if (action->name.compare("giveexp") == 0) {
this->exp += ((int)(*action->args[0]));
stats_updated = true; }

if (action->name.compare("givekarma") == 0) {
this->karma += ((int)(*action->args[0]));
stats_updated = true; }

if (action->name.compare("removekarma") == 0) {
this->karma -= std::max(((int)(*action->args[0])), 0);
stats_updated = true; }

if (action->name.compare("showhint") == 0) {
this->ShowHint(static_cast<std::string>((*action->args[0]))); }

if (action->name.compare("playsound") == 0) {
this->PlaySound((int)(*action->args[0])); }

if (action->name.compare("setcoord") == 0) {
short map = ((int)(*action->args[0]));
unsigned char x = ((int)(*action->args[1]));
unsigned char y = ((int)(*action->args[2]));
NPC *quest_npc = this->npc; this->Warp(map, x, y);
this->npc = quest_npc; this->npc_type = ENF::Quest; }

if (action->name.compare("setclass") == 0) {
this->clas = ((int)(*action->args[0]));
this->CalculateStats();
PacketBuilder builder(PACKET_RECOVER, PACKET_LIST);
builder.AddShort(this->clas); builder.AddShort(this->str);
builder.AddShort(this->intl); builder.AddShort(this->wis);
builder.AddShort(this->agi); builder.AddShort(this->con);
builder.AddShort(this->cha); builder.AddShort(this->maxhp);
builder.AddShort(this->maxtp); builder.AddShort(this->maxsp);
builder.AddShort(this->maxweight); builder.AddShort(this->mindam);
builder.AddShort(this->maxdam); builder.AddShort(this->accuracy);
builder.AddShort(this->evade); builder.AddShort(this->armor);
this->player->client->SendBuilder(builder); }

if (action->name.compare("setrace") == 0) {
unsigned char skin = ((int)(*action->args[0]));
this->race = static_cast<Skin>(skin);
this->Refresh(); }

if (action->name.compare("quake") == 0) {
if (action->args.size() == 1 || static_cast<std::string>((*action->args[1])) == "map") {
this->map->Effect(MAP_EFFECT_QUAKE, ((int)(*action->args[0]))); } }

if (static_cast<std::string>((*action->args[1])) == "world") {
UTIL_PTR_VECTOR_FOREACH(this->map->world->maps, Map, map) {
map->Effect(MAP_EFFECT_QUAKE, ((int)(*action->args[0]))); } }

if (action->name.compare("reset") == 0) {
for (PtrList<Character_Quest>::Iterator it(this->quests); it; ++it) {
if (it->id == quest->id) { this->quests.erase(it); return false; } } }

if (action->name.compare("setstate") == 0) {
quest->state = (*action->args[0]).GetString(); return false; }

}

if (stats_updated) {
bool level_up = false;
while (this->level < static_cast<int>(this->world->config["MaxLevel"]) && this->exp >= this->world->exp_table[this->level+1]) {
level_up = true; ++this->level;
this->statpoints += static_cast<int>(this->world->config["StatPerLevel"]);
this->skillpoints += static_cast<int>(this->world->config["SkillPerLevel"]);
this->CalculateStats(); }
PacketBuilder builder(PACKET_RECOVER, PACKET_REPLY);
builder.AddInt(this->exp);
builder.AddShort(this->karma);
builder.AddChar(level_up ? this->level : 0);
this->player->client->SendBuilder(builder);
this->Refresh(); }

return true; }

14 years, 34 weeks ago
Post #49156 Re: Quests[Release]

got it lol forgot this

U either have to add #include "quest.hpp" in either character.cpp/quest.cpp/ or Quest.cpp not sure

14 years, 33 weeks ago
Post #66284 Re: Quests[Release]
C:\Users\jason\Desktop\Trunk\src\handlers\Book.cpp||In member function 'bool EOClient::Handle_Book(PacketFamily, PacketAction, PacketReader&, int)':|
C:\Users\jason\Desktop\Trunk\src\handlers\Book.cpp|74|error: 'Character_Quest' was not declared in this scope|
C:\Users\jason\Desktop\Trunk\src\handlers\Book.cpp|74|error: template argument 1 is invalid|
C:\Users\jason\Desktop\Trunk\src\handlers\Book.cpp|74|error: expected initializer before 'quest'|
C:\Users\jason\Desktop\Trunk\src\handlers\Book.cpp|74|error: 'quest' was not declared in this scope|
C:\Users\jason\Desktop\Trunk\src\handlers\Book.cpp|76|error: 'class World' has no member named 'GetQuest'|
||=== Build finished: 5 errors, 0 warnings ===|

Edit:
..\src\character.hpp|47|error: 'Character_Quest' was not declared in this scope|
..\src\character.hpp|47|error: template argument 1 is invalid|
..\src\character.hpp|52|error: 'Character_Quest' was not declared in this scope|
..\src\character.hpp|52|error: template argument 1 is invalid|
..\src\character.hpp|52|error: invalid type in declaration before ';' token|
||=== Build finished: 5 errors, 0 warnings ===|

Edit: 
C:\Users\jason\Desktop\Trunk\src\stdafx.h|23|error: #endif without #if|
||=== Build finished: 1 errors, 0 warnings ===|


14 years, 7 weeks ago
Post #77262 Re: Quests[Release]

Does anyone know if this works with rev 228? My sister wan't me to add it for her :/ I don't wan't to start adding it until I know if it works :)

---
I am an alien and not crazy!
13 years, 51 weeks ago
Post #77263 Re: Quests[Release]

It takes some serious effort to add this to the newer revisions. gl :)

---
https://www.youtube.com/watch?v=d_DFVzxsEUc
13 years, 51 weeks ago
Post #77264 Re: Quests[Release]

lol, If that's the case then I'm not going to bother. Most people on here know that I don't play Endless Online anymore. This is just for my sister since I'm a nice brother :)

I did tell her that if it was too much hassle that I wouldn't bother due to having my children to look after and such.

---
I am an alien and not crazy!
13 years, 51 weeks ago
Post #77644 Re: Quests[Release]

2 errors

C:\Documents and Settings\TaetmM\Desktop\trunk\src\stdafx.h|23|error: #endif without #if|

C:\Documents and Settings\TaetmM\Desktop\trunk\src\eoconst.hpp|435|error: expected unqualified-id before '{' token|
||=== Build finished: 2 errors, 0 warnings ===|

Don't tell me to get a rev that already has a quest system. I want to add it manually.

http://pastebin.com/BWvajKR1 << eoconst

http://pastebin.com/hHPyRviQ << stdafx.h in my Headers >> Handlers...

13 years, 51 weeks ago
Post #77649 Re: Quests[Release]

From what i heard its broken somewhere and people who have this on their rev added it themself. Get a rev with EO+ if u want eo+.

---
Skype: izumibluuh

I sincerely apologize for my posts from when I was 12.
13 years, 51 weeks ago
Post #77653 Re: Quests[Release]

Snow pretty much said it. It is quite broken, and i'm too lazy to fix it, so I would suggest screwing around with it to get it to work(because I forgot some simple stuff if I believe) or look at someone else's rev to see what is different.


Edit:

First error is because you don't have the STDAFX_H_INCLUDED macro.

https://eoserv.net/trac/browser/eoserv/trunk/src/stdafx.h

Should look similar to that. Not sure if you need the __cplusplus if check but it wouldn't hurt.


Second one is because you're retarded and threw the SCRIPT_REGISTER_ENUM for BookIcon in the wrong place. Place it ABOVE the } closing bracket.

---
http://www.addipop.com
13 years, 51 weeks ago
Post #77669 Re: Quests[Release]
Mhm so is there any revs with rev189 with a EO+ system that works?
Addison posted: (13th May 2011 12:26 pm)

Snow pretty much said it. It is quite broken, and i'm too lazy to fix it, so I would suggest screwing around with it to get it to work(because I forgot some simple stuff if I believe) or look at someone else's rev to see what is different.


Edit:

First error is because you don't have the STDAFX_H_INCLUDED macro.

https://eoserv.net/trac/browser/eoserv/trunk/src/stdafx.h

Should look similar to that. Not sure if you need the __cplusplus if check but it wouldn't hurt.


Second one is because I am retarded derp, and threw the SCRIPT_REGISTER_ENUM for BookIcon in the wrong place. Place it ABOVE the } closing bracket.



13 years, 51 weeks ago
Page: << 1 2 3 4 5 6 >>
Topic is locked.
EOSERV Forum > EOSERV > Quests[Release]