Author | Message | ||||||
---|---|---|---|---|---|---|---|
| ![]() In character.cpp add this in the load function after `partner`, add `mlvl`, `mexp`, `flvl`, `fexp`, below this->id = this->world->GenerateCharacterID(); add this->mine = false; then add this in somewhere below doesnt realy matter where https://tehsausage.com/paste/lvlup In your save function after `partner` = '$', add `mlvl` = '#', `mexp` = '#', `flvl` = '#', `fexp` = '#', A little lower after this->partner.c_str(), add this->mlvl, this->mexp, this->flvl, this->fexp, Done in character.cpp now go to map.cpp in the void Map::Attack(Character *from, Direction direction) after if (!this->Walkable(target_x, target_y, true)) add here if(from->paperdoll[Character::Weapon] == static_cast<int>(this->world->config["MineWep"]));//225 Done in map.cpp now to world.cpp after void world_timed_save(void *world_void) add https://tehsausage.com/paste/world-fishmine find void World::LoadHome() and add this above it void World::FishMine() Done in world.cpp now go to character.hpp and after bool hidden; add bool mine, fish; then scroll down a bit and after void Warp(short map, unsigned char x, unsigned char y, WarpAnimation animation = WARP_ANIMATION_NONE); add Done in character.hpp now go to world.hpp after void LoadHome(); add In talk.cpp in the player commands add if (command.length() == 5 && command.compare(0,5,"minfo") == 0) Done now for the database setup name mlvl type Int Length/Set 11 Default 0 check off not null name mexp type Int Length/Set 11 Default 0 check off not null name flvl type Int Length/Set 11 Default 0 check off not null name fexp type Int Length/Set 11 Default 0 check off not null In your config.ini add where ever MineWep = 225 Done!
|
| ![]() I know this is sort of an old topic, but if I put in config.ini how would i determine where they can fish/mine? --- stay tuned.
|
| ![]() andrewbob1 posted: (13th Sep 2011, 10:54 pm) Insomniac may of not finished this guide, I'd suggest doing this guide done by Hollow which works for me. Besides some of this code doesn't look that great :P Edit: This may be just adding onto another Mining System like Lewis's Mining? I'm not sure though.....
|
| ![]() lolss posted: (13th Sep 2011, 10:57 pm)Or not I think this is about 50% less code than that one just as effective and the comparison to Lewis ouch... Either way that system done by addison is good to and I like how he used the statskill packet to make it happen!andrewbob1 posted: (13th Sep 2011, 10:54 pm) |