1.
Get the ascent source.
If you need help with this, there are plenty of guides here on Mmowned how to
get it. (The trunk is: http://projects.emupedia.com/svn/ascent/trunk/ )
2.
Open the folder with your ascent source and browse to .../src/scripts/src/GossipScripts/
In it there are this files (if you didnt already add one): Gossip_Battlemaster.cpp, Gossip_Innkeeper.cpp, GuardGossip.cpp, Makefile.am, Setup.cpp and Setup.h
3.
Open up the GuardGossip.cpp with Notepad or another text editor.
4.
Scroll all the way down.
Scroll abit up and you should see something like this:
Code:
...
Plr->Gossip_SendPOI(-4711.54, -12386.7, 6, 6, 0, "Odesyus' Landing, Tailor");
SendQuickMenu(2593);
}break;
}
}
};
(Here ends the last guard and the register scripts start)
void SetupGuardGossip(ScriptMgr * mgr)
{
GossipScript * gold = (GossipScript*) new GoldshireGuard();
...
(Those "..." just mean there is text before it and after it :P)
The part I marked red is important. There we will add in our custom guard!
5.
Put another line between the last guard script and the register scripts and paste in the custom source.
Be sure that there is a free line between the Brill Guard and your guard!
There has to be a free line after the custom gossip too. It should look like this:
Code:
...
case 27: //Tailoring
{
Plr->Gossip_SendPOI(-4711.54, -12386.7, 6, 6, 0, "Odesyus' Landing, Tailor");
SendQuickMenu(2593);
}break;
}
}
};
class SCRIPT_DECL CustomGuard : public GossipScript
{
public:
void Destroy()
{
...
and:
Code:
...
case 33: //Warlock Trainer
{
Plr->Gossip_SendPOI(X Coordinate, Y Coordinate, 6, 6, 0, "Warlock Trainer");
SendQuickMenu(11350);
}break;
}
}
};
void SetupGuardGossip(ScriptMgr * mgr)
{
GossipScript * gold = (GossipScript*) new GoldshireGuard();
...
After you have done this, the Gossip is implemented ingame.
The problem is we haven't bound it to our guard.
6.
To do this you have to scroll down and add a new line after
Code:
...
mgr->register_gossip_script(18038,azure); // Azuremyst Peacekeeper
}
...
Just make it look like this:
Code:
...
mgr->register_gossip_script(18038,azure); // Azuremyst Peacekeeper
mgr->register_gossip_script(33344,mall);
}
...
The 33344 is your guard's entry id in your database. You can change this to whatever you want
Almost done.
Just compile Ascent now and spawn the guard you made before ingame!
Remember it must be at your mall's place (atleast on it's map).
Gratulations you just made your own Mall Guard!
If there are any problems please post them here.
If there arent.... good why not posting here anyway :wave:
If you have anything to contribute on this post, ill add it here.