@@ -101,7 +101,7 @@ class SystemVipVendor : public CreatureScript {
101
101
OnGossipSelect (player, creature, 0 , 2 );
102
102
}
103
103
else {
104
- player->GetSession ()-> SendNotification (" No tienes suficientes Tokens." );
104
+ ChatHandler ( player->GetSession ()). PSendSysMessage (" No tienes suficientes Tokens." );
105
105
CloseGossipMenuFor (player);
106
106
}
107
107
break ;
@@ -133,20 +133,20 @@ class SystemVipPocket : ItemScript {
133
133
public:
134
134
SystemVipPocket () : ItemScript(" SystemVipPocket" ) {}
135
135
136
- bool OnUse (Player* player, Item* item, SpellCastTargets const & /* targets*/ ) {
136
+ bool OnUse (Player* player, Item* /* item*/ , SpellCastTargets const & /* targets*/ ) {
137
137
if (!sV ->isVip (player)) {
138
- player->GetSession ()-> SendNotification (" No eres Vip!" );
138
+ ChatHandler ( player->GetSession ()). PSendSysMessage (" No eres Vip!" );
139
139
ChatHandler (player->GetSession ()).PSendSysMessage (" Por favor renueva tu suscription vip." );
140
140
return false ;
141
141
}
142
142
143
143
/* if (player->IsInCombat()) {
144
- player->GetSession()->SendNotification ("Estas en combate!");
144
+ ChatHandler( player->GetSession()).PSendSysMessage ("Estas en combate!");
145
145
return false;
146
146
}*/
147
147
148
148
if (player->GetMap ()->IsBattleArena ()) {
149
- player->GetSession ()-> SendNotification (" No puedes usar en arena!" );
149
+ ChatHandler ( player->GetSession ()). PSendSysMessage (" No puedes usar en arena!" );
150
150
return false ;
151
151
}
152
152
@@ -215,7 +215,7 @@ class SystemVipPet : CreatureScript {
215
215
{
216
216
case 1 :
217
217
if (player->IsInCombat ()) {
218
- player->GetSession ()-> SendNotification (" Estás en combate!" );
218
+ ChatHandler ( player->GetSession ()). PSendSysMessage (" Estás en combate!" );
219
219
CloseGossipMenuFor (player);
220
220
}
221
221
else {
@@ -243,29 +243,29 @@ class SystemVipPet : CreatureScript {
243
243
if (player->IsInCombat ())
244
244
{
245
245
CloseGossipMenuFor (player);
246
- player->GetSession ()-> SendNotification (" Estás en combate!" );
246
+ ChatHandler ( player->GetSession ()). PSendSysMessage (" Estás en combate!" );
247
247
return false ;
248
248
}
249
249
else if (player->getPowerType () == POWER_MANA)
250
250
player->SetPower (POWER_MANA, player->GetMaxPower (POWER_MANA));
251
251
252
252
player->SetHealth (player->GetMaxHealth ());
253
- player->GetSession ()-> SendNotification (" HP/MANA Restaurados!" );
253
+ ChatHandler ( player->GetSession ()). PSendSysMessage (" HP/MANA Restaurados!" );
254
254
creature->CastSpell (player, 31726 , true );
255
255
OnGossipHello (player, creature);
256
256
break ;
257
257
case 6 :
258
258
if (player->HasAura (15007 ))
259
259
player->RemoveAura (15007 );
260
- player->GetSession ()-> SendNotification (" Tu dolencia fué removido." );
260
+ ChatHandler ( player->GetSession ()). PSendSysMessage (" Tu dolencia fué removido." );
261
261
creature->CastSpell (player, 31726 , true );
262
262
OnGossipHello (player, creature);
263
263
break ;
264
264
case 7 :
265
265
// remover desertor
266
266
if (player->HasAura (26013 ))
267
267
player->RemoveAura (26013 );
268
- player->GetSession ()-> SendNotification (" Tu marca de desertor fué removido." );
268
+ ChatHandler ( player->GetSession ()). PSendSysMessage (" Tu marca de desertor fué removido." );
269
269
creature->CastSpell (player, 31726 );
270
270
OnGossipHello (player, creature);
271
271
break ;
@@ -291,7 +291,7 @@ class SystemVipPet : CreatureScript {
291
291
}
292
292
}
293
293
294
- player->GetSession ()-> SendNotification (" Tus instancias fueron reinicidas!" );
294
+ ChatHandler ( player->GetSession ()). PSendSysMessage (" Tus instancias fueron reinicidas!" );
295
295
creature->CastSpell (player, 59908 );
296
296
OnGossipHello (player, creature);
297
297
return true ;
0 commit comments