EOSERV Forum > EOSERV > Tile Dialog Levels
Topic is locked.
Page: << 1 >>
Tile Dialog Levels
Author Message
Post #128679 Tile Dialog Levels

https://eoserv.net/forum/topic/12257
I'm trying to make it so a dialog only displays to you at a certain level. Any help?

14 years, 20 weeks ago
Post #128682 Re: Tile Dialog Levels

In Walk.cpp just add to int  int Map, mapid, X, Y, level;

level = static_cast<int>(this->server->world->tiledialog_config[util::to_string(i+1) + ".level"]);


and then find this line 

if(this->player->character->mapid == Map && (this->player->character->x == X && this->player->character->y == Y))


add in the check for the level in that if statement  && this->player->character->level == level


in the config add

1.level = 1

14 years, 20 weeks ago
Post #128685 Re: Tile Dialog Levels

Sweet, thanks! :D

14 years, 20 weeks ago
Page: << 1 >>
Topic is locked.
EOSERV Forum > EOSERV > Tile Dialog Levels