19 Teleporter NPC's Included:
Phil - Lith Harbor (104000000)
Regular Cab - Heneseys (100000000)
Regular Cab - Perion (102000000)
Regular Cab - Ellinia (101000000)
Regular Cab - Kerning City (103000000)
VIP Cab - Lith Harbor (104000000)
VIP Cab - Ellinia (101000000)
Pison - Florina Beach (110000000)
Pason - Lith Harbor (104000000)
NLC Taxi - New Leaf City (600000000) Phantom Forest (682000000)
Spinel - Amoria (680000000) Ellinia (101000000) Henesys (100000000) Kerning City (103000000) Leafre (240000000) Lith Harbor (104000000) Ludibrium (220000000) Mu Lung (250000000) Mushroom Shrine (800000000) Orbis (200000000) Perion (102000000)
Dolphin - The Pier near Sea (251000100)
Dolphin - Aquarium (230000000)
Bell - Kerning City (103000000) New Leaf City (600000000)
Agatha - Orbis Ticketing Booth (200000100)
Mue - Leafre Ticketing Booth (240000100)
Mel - Ludibrium Ticketing Place (220000100)
Joel - Ellinia Station (101000300)
Hak - Mu Lung (250000100)Herb Town (251000000)
Shanks - Southperry (60000)
Jeff - Ice Valley II (211040200)
To install: Create new .cpp in the NPCs folder, TeleportNPCs.cpp for example.
Paste this:
Code:
Code is here (To long for post): http://trix.labyrinthos.org/mscode/TeleportNPCs.cpp
Add this to NPCsScripts.h BELOW THIS LINE:
Code:
case 9900000: npc_9900000(npc); break;
Code:
// Teleporters
case 1002000: npc_1002000(npc); break; // Phil - Lith Harbor (104000000)
case 1012000: npc_1012000(npc); break; // Regular Cab - Heneseys (100000000)
case 1022001: npc_1022001(npc); break; // Regular Cab - Perion (102000000)
case 1032000: npc_1032000(npc); break; // Regular Cab - Ellinia (101000000)
case 1052016: npc_1052016(npc); break; // Regular Cab - Kerning City (103000000)
case 1002004: npc_1002004(npc); break; // VIP Cab - Lith Harbor (104000000)
case 1032005: npc_1032005(npc); break; // VIP Cab - Ellinia (101000000)
case 1081001: npc_1081001(npc); break; // Pison - Florina Beach (110000000)
case 1002002: npc_1002002(npc); break; // Pason - Lith Harbor (104000000)
case 9201056: npc_9201056(npc); break; // NLC Taxi - New Leaf City (600000000) Phantom Forest (682000000)
case 9000020: npc_9000020(npc); break;
// Spinel - Amoria (680000000) Ellinia (101000000)
// Henesys (100000000) Kerning City (103000000)
// Leafre (240000000) Lith Harbor (104000000)
// Ludibrium (220000000) Mu Lung (250000000)
// Mushroom Shrine (800000000) Orbis (200000000)
// Perion (102000000)
case 2093004: npc_2093004(npc); break; // Dolphin - The Pier near Sea (251000100)
case 2060009: npc_2060009(npc); break; // Dolphin - Aquarium (230000000)
case 9201057: npc_9201057(npc); break; // Bell - Kerning City (103000000) New Leaf City (600000000)
case 2012000: npc_2012000(npc); break; // Agatha - Orbis Ticketing Booth (200000100)
case 2082000: npc_2082000(npc); break; // Mue - Leafre Ticketing Booth (240000100)
case 2040000: npc_2040000(npc); break; // Mel - Ludibrium Ticketing Place (220000100)
case 1032007: npc_1032007(npc); break; // Joel - Ellinia Station (101000300)
case 2090005: npc_2090005(npc); break; // Hak - Mu Lung (250000100) Herb Town (251000000)
case 22000: npc_22000(npc); break; // Shanks - Southperry (60000)
case 2030000: npc_2030000(npc); break; // Jeff - Ice Valley II (211040200)
and this BELOW THIS LINE:
Code:
static void npc_9900000(NPC* npc);
Code:
// Teleporters
static void npc_1002000(NPC* npc);
static void npc_1012000(NPC* npc);
static void npc_1022001(NPC* npc);
static void npc_1032000(NPC* npc);
static void npc_1052016(NPC* npc);
static void npc_1002004(NPC* npc);
static void npc_1032005(NPC* npc);
static void npc_1081001(NPC* npc);
static void npc_1002002(NPC* npc);
static void npc_9201056(NPC* npc);
static void npc_9000020(NPC* npc);
static void npc_2093004(NPC* npc);
static void npc_2060009(NPC* npc);
static void npc_9201057(NPC* npc);
static void npc_2012000(NPC* npc);
static void npc_2082000(NPC* npc);
static void npc_2040000(NPC* npc);
static void npc_1032007(NPC* npc);
static void npc_2090005(NPC* npc);
static void npc_22000(NPC* npc);
static void npc_2030000(NPC* npc);
Add this to NPCs.cpp:
Code:
int NPC::checkhasItem(Player* player, int item){
return Inventory::hasItem(player, item);
}
int NPC::getItemAmount(int itemid){
return player->inv->getItemAmount(itemid);
}
And this to NPCs.h BELOW THIS LINE:
Code:
void giveEXP(int exp);
Code:
int checkhasItem(Player* player, int item);
int getItemAmount(int itemid);
Add this to Inventory.cpp:
Code:
int Inventory::hasItem(Player* player, int item) {
for(int i=0; i<player->inv->getItemNum(); i++) {
if(player->inv->getItem(i)->id == item){
return 1;
}
}
return 0;
}
And this to Inventory.h BELOW THIS LINE:
Code:
static void stopChair(Player* player, unsigned char* packet);
Code:
static int hasItem(Player* player, int item);
And thats it! Enjoy.
EDIT:
My files, rather than the code above: http://trix.labyrinthos.org/mscode/
Odrazu mówie ze nie jest mój;p