Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptPCH.h"
- class creature_kill_script : public PlayerScript
- {
- public:
- creature_kill_script() : PlayerScript("creature_kill_script") {}
- void OnCreatureKill(Player * killer, Creature* killed)
- {
- if (killed->GetEntry() == 1200031)
- {
- LoginDatabase.PExecute("UPDATE account SET magic_gold = '%u' +5 WHERE id = '%u'", killer->GetSession()->GetAccountId());
- ChatHandler(killer->GetSession()).SendSysMessage("|cfffaeb005MG");
- }
- if (killed->GetEntry() == 1200032)
- {
- LoginDatabase.PExecute("UPDATE account SET magic_gold ='%u' +7 WHERE id = '%u'", killer->GetSession()->GetAccountId());
- ChatHandler(killer->GetSession()).PSendSysMessage("|cfffaeb007MG");
- }
- }
- };
- void AddSC_creature_kill_script()
- {
- new creature_kill_script();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement