- Joined
- Apr 5, 2008
- Messages
- 9
- Reaction score
- 0
I'm quitting TitanMS for a while and don't want to be a leecher so I release what I've done so far...
Here: A manual how to install the return to [Ellinia/nearst town/Perion/Ludibrium/whatever] scrolls.
Open Player.cpp
Find:
Add after:
Open Inventory.h
Find:
Add after:
Open Inventory.cpp
Add at the end of file:
That's it. Tested & works with 0.53 and Rev 007 (or higher, I guess).
Including all of the scrolls that I can think of (tried with !item untill nothing spawned). Please don't scam it, you can use it however you want, you can modify it like you want, but please give credits to me.
Notice: It's not needed to check if the player can go there (same continent) because the client is doing that for us.
Edit: It seems like this doesn't work with any repacks or older versions than 007 - if you get an error, please post it here and the line it belongs to. Also please post the revision you use (and maybe add if you're using some repack). Else, we can't help you.
Here: A manual how to install the return to [Ellinia/nearst town/Perion/Ludibrium/whatever] scrolls.
Open Player.cpp
Find:
Code:
case 0x89: Drops::lootItem(this ,buf+2); break;
Code:
case 0x64: Inventory::useTScroll(this, buf+2); break;
Find:
Code:
static void stopChair(Player* player, unsigned char* packet);
Code:
static void useTScroll(Player* player, unsigned char* packet);
Add at the end of file:
Code:
void Inventory::useTScroll(Player *player, unsigned char *packet) {
short slot = getShort(packet+4);
int itemid = getInt(packet+6);
switch (itemid) {
case 2030000: // Next town
case 2030008: // Next town (coffee-thingy)
Maps::changeMap(player, Maps::info[player->getMap()].rm, 0);
break;
case 2030001: // Lith
Maps::changeMap(player, 104000000, 0);
break;
case 2030002: // Ellinia
Maps::changeMap(player, 101000000, 0);
break;
case 2030003: // Perion
Maps::changeMap(player, 102000000, 0);
break;
case 2030004: // Henesys
Maps::changeMap(player, 100000000, 0);
break;
case 2030005: // Kerning
Maps::changeMap(player, 103000000, 0);
break;
case 2030006: // Sleepy
Maps::changeMap(player, 105040300, 0);
break;
case 2030007: // Dead Mine
Maps::changeMap(player, 211041500, 0);
break;
case 2030009: // Mushroom shrine
Maps::changeMap(player, 800000000, 0);
break;
case 2030010: // Showa
Maps::changeMap(player, 801000000, 0);
break;
case 2030011: // Omega
Maps::changeMap(player, 221000000, 0);
break;
case 2030012: // Ludibrium
Maps::changeMap(player, 220000000, 0);
break;
default: return; break;
}
takeItemSlot(player, slot, 2, 1);
}
Including all of the scrolls that I can think of (tried with !item untill nothing spawned). Please don't scam it, you can use it however you want, you can modify it like you want, but please give credits to me.
Notice: It's not needed to check if the player can go there (same continent) because the client is doing that for us.
Edit: It seems like this doesn't work with any repacks or older versions than 007 - if you get an error, please post it here and the line it belongs to. Also please post the revision you use (and maybe add if you're using some repack). Else, we can't help you.
Last edited:

