npc_acherus_taxi.cpp
Code:
-----Inline Attachment Follows-----
#include "precompiled.h"
#include "WorldPacket.h"
#define GOSSIP_FLIGHT "I need a ride"
bool GossipHello_npc_acherus_taxi(Player *player, Creature *_Creature)
{
player->SetTaxiCheater(true);
player->ADD_GOSSIP_ITEM(0, GOSSIP_FLIGHT, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
player->SEND_GOSSIP_MENU(9978,_Creature->GetGUID());
return true;
}
bool GossipSelect_npc_acherus_taxi(Player *player, Creature *_Creature, uint32 sender, uint32 action )
{
if (action == GOSSIP_ACTION_INFO_DEF + 1)
{
if (player->GetPositionZ() >=316)
{
player->GetSession()->SendDoFlight(24446, 1053);
}else{
player->GetSession()->SendDoFlight(24446, 1054);
}
}
return true;
}
void AddSC_npc_acherus_taxi()
{
Script *newscript;
newscript = new Script;
newscript->Name="npc_acherus_taxi";
newscript->pGossipHello = &GossipHello_npc_acherus_taxi;
newscript->pGossipSelect = &GossipSelect_npc_acherus_taxi;
newscript->RegisterSelf();
}
Guide !
Step 1
Copy this and save as "npc_acherus_taxi.cpp"
Step 2
Put Scriptdev2 files downloaded with SVN into mangos root "mangos\scr\bindings\"
Step 3
After you copy Scriptdev2 folder in bindings folder copy npc_acherus_taxi.cpp in Scriptdev2 in "\scripts\custom\" something like this !

Step 4
Open form Scriptdev2 folder file "ScriptMgr.cpp" and search for
if u use a program like notepad++ you will find it at line 53, after you find it add this
Code:
extern void AddSC_npc_acherus_taxi();
Search again for
this should be on middle of page at line 903 and add this
Code:
AddSC_npc_acherus_taxi();
save and exit !
Step 5
Now open ScriptV90 and go to "Scirpts" folder ->"npc" on npc folder click right and make just like this picture !

and search for "npc_archerus_taxi.cpp form custom folder from Scriptdev2

Step 6 select your release x64 or win32 and build :wave: