ش | ی | د | س | چ | پ | ج |
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
#include "ScriptPCH.h"
#include <cstring>class vendor_general : public CreatureScript{
public:
vendor_general()
: CreatureScript("vendor_general")
{
}
bool OnGossipHello(Player* player, Creature* creature)
{
player->currentVendorEntry = -1;
player->GetSession()->SendListInventory(creature->GetGUID());
return true;
}
};void AddSC_vendor_general()
{
new vendor_general();
}
منبع : Irancore