Добро пожаловать на форум, Гость, это ваша панель
  • Страница 1 из 1
  • 1
How to give more helms and necklaces from shopmenu to VIP?
dancerek
Дата: Понедельник, 28.05.2012, 00:29 | Сообщение # 1
офлайн

  • Сообщения: 65
  • Награды: 0
  • Замечания:
 
I want to make when VIP buy helms from shopmenu, he doesn't get just 3 helms like normal player, but gets more (for example 6 helms). This same way with necklaces. Price of necklace and helms to VIP and normal players would be this same but normal players would get 3 helms and 4 necklaces and VIP would get 6 helms and 8 necklaces. That's all :)

Добавлено (25.05.2012, 11:38)
---------------------------------------------
Bump. Someone could make it?

Добавлено (28.05.2012, 00:29)
---------------------------------------------
Bump. Someone could make it? Help me please!

Сообщение отредактировал dancerek - Понедельник, 28.05.2012, 00:28
 
SMaster
Дата: Понедельник, 28.05.2012, 05:41 | Сообщение # 2
офлайн

  • Сообщения: 2189
  • Награды: 46
  • Замечания:
 
Step 1.

Open items.h
Add new variables:
Code
#define NECKLACE_CHARGES_VIP  8 // Quantity of charges for "Necklace"
#define HELM_CHARGES_VIP      6 // Quantity of charges for "Helms"


Screen:


Step 2.

Open items.inl
Replace code for "Necklace":
Code
g_iNecklaceCharges[idUser] += NECKLACE_CHARGES;

on
Code
if((get_user_flags(idUser) & ADMIN_LEVEL_H))
      g_iNecklaceCharges[idUser] += NECKLACE_CHARGES_VIP;
else
      g_iNecklaceCharges[idUser] += NECKLACE_CHARGES;


Screen:


Step 3.

Open items.inl
Replace code for "Helms":
Code
g_iHelmCharges[idUser] += HELM_CHARGES;

on
Code
if((get_user_flags(idUser) & ADMIN_LEVEL_H))
      g_iHelmCharges[idUser] += HELM_CHARGES_VIP;
else
      g_iHelmCharges[idUser] += HELM_CHARGES;


Screen:


Наша группа вконтакте http://vk.com/nano_world_cs

Контакты:
ICQ 607786179
Skype xonahead

 
  • Страница 1 из 1
  • 1
Поиск: