Plugin Available Vip extra Item Discounts

Unpaid Requests, Public Plugins
User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 258
Joined: 3 Months Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 19 times
Age: 33
Contact:

Re: Vip extra Item Discounts

#31

Post by Mark » 2 Months Ago

Raheem wrote:
2 Months Ago
This hardcode for the 3 cases:
    1. #include <zombie_escape>
    2. #include <ze_vip>
    3.  
    4. native ze_has_vip_discount(iItemid)
    5. native Float:ze_get_item_discount(iItemid)
    6.  
    7. new g_iCurrentEC,
    8.     g_iRequiredEC
    9.  
    10. public plugin_init()
    11. {
    12.     register_plugin("[ZE] Items Manager: Escape Coins", ZE_VERSION, AUTHORS)
    13. }
    14.  
    15. public ze_select_item_pre(id, itemid, ignorecost)
    16. {
    17.     if (ignorecost)
    18.         return ZE_ITEM_AVAILABLE
    19.    
    20.     g_iCurrentEC = ze_get_escape_coins(id)
    21.    
    22.     if ((ze_get_vip_flags(id) & VIP_A) && ze_has_vip_discount(itemid))
    23.     {
    24.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.1))
    25.        
    26.         new szText[32]
    27.         formatex(szText, charsmax(szText), " \w(\r%i %% OFF\w)", floatround(0.1 * 100))
    28.         ze_add_text_to_item(szText)
    29.     }
    30.     else if ((ze_get_vip_flags(id) & VIP_B) && ze_has_vip_discount(itemid))
    31.     {
    32.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.2))
    33.        
    34.         new szText[32]
    35.         formatex(szText, charsmax(szText), " \w(\r%i %% OFF\w)", floatround(0.2 * 100))
    36.         ze_add_text_to_item(szText)
    37.     }
    38.     else if ((ze_get_vip_flags(id) & VIP_C) && ze_has_vip_discount(itemid))
    39.     {
    40.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.3))
    41.        
    42.         new szText[32]
    43.         formatex(szText, charsmax(szText), " \w(\r%i %% OFF\w)", floatround(0.3 * 100))
    44.         ze_add_text_to_item(szText)
    45.     }
    46.     else
    47.     {
    48.         g_iRequiredEC = ze_get_item_cost(itemid)
    49.     }
    50.    
    51.     if (g_iCurrentEC < g_iRequiredEC)
    52.         return ZE_ITEM_UNAVAILABLE
    53.    
    54.     return ZE_ITEM_AVAILABLE
    55. }
    56.  
    57. public ze_select_item_post(id, itemid, ignorecost)
    58. {
    59.     if (ignorecost)
    60.         return
    61.    
    62.     g_iCurrentEC = ze_get_escape_coins(id)
    63.    
    64.     if ((ze_get_vip_flags(id) & VIP_A) && ze_has_vip_discount(itemid))
    65.     {
    66.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.1))
    67.     }
    68.     if ((ze_get_vip_flags(id) & VIP_B) && ze_has_vip_discount(itemid))
    69.     {
    70.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.2))
    71.     }
    72.     if ((ze_get_vip_flags(id) & VIP_C) && ze_has_vip_discount(itemid))
    73.     {
    74.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.3))
    75.     }
    76.     else
    77.     {
    78.         g_iRequiredEC = ze_get_item_cost(itemid)
    79.     }
    80.    
    81.     ze_set_escape_coins(id, g_iCurrentEC - g_iRequiredEC)
    82. }
Try it.

Edit: Also i updated this: viewtopic.php?p=8396#p8396
Now the menu when you hit M wont open :D

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1717
Joined: 1 Year Ago
Location: Egypt
Has thanked: 28 times
Been thanked: 78 times
Age: 21
Contact:

#32

Post by Raheem » 2 Months Ago

Any error in the console?
You don't know? Learn and you will know.

User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 258
Joined: 3 Months Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 19 times
Age: 33
Contact:

#33

Post by Mark » 2 Months Ago

Raheem wrote:
2 Months Ago
Any error in the console?
  1. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_main_menu.amxx" failed to load: Plugin uses an unknown function (name "ze_show_items_menu") - check your modules.ini.
  2. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_items_manager.amxx" failed to load: Plugin uses an unknown function (name "ze_add_text_to_item") - check your modules.ini.
  3. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_items_escape_coins.amxx" failed to load: Plugin uses an unknown function (name "ze_add_text_to_item") - check your modules.ini.
  4. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_items_limit.amxx" failed to load: Plugin uses an unknown function (name "ze_add_text_to_item") - check your modules.ini.
  5. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_items_level.amxx" failed to load: Plugin uses an unknown function (name "ze_get_item_name") - check your modules.ini.
  6. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_items_vip.amxx" failed to load: Plugin uses an unknown function (name "ze_get_item_name") - check your modules.ini.
  7. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_tuacannon.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  8. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_fire_nade.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  9. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_frost_nade.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  10. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_vip_b_extra_compound_bow.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  11. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_dual_uzi.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  12. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_ak47_paladin.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  13. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_coilgun.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  14. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_plasmagun.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  15. L 09/16/2018 - 21:06:32: [AMXX] Plugin "force_shield_grenade.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  16. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_unlimited_clip.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  17. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_no_recoil.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  18. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_paintball_gun.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  19. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_zombie_madness.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  20. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_zombie_multijump.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  21. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_zombie_jumpnade.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  22. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_zombie_knockback_bomb.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  23. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_zombie_kill_bomb_v3.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  24. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_zombie_confused.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  25. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_zombie_antidote.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  26. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_zombie_tvirus.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  27. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_zombie_leap.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  28. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_extra_zombie_blind_bomb.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  29. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_vip_a_extra_mw2-auto.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  30. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_vip_a_extra_cyclone.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  31. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_vip_a_extra_railcannon.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  32. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_vip_a_extra_tact_knife.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  33. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_vip_b_extra_dual_infinity.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  34. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_vip_b_extra_frost_m4a1.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  35. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_vip_b_extra_balrog11.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  36. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_vip_b_extra_thanatos3.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  37. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_vip_c_extra_stun_rifle.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  38. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_vip_c_extra_fglauncher.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  39. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_vip_c_extra_starchasersr.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  40. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_vip_c_extra_thanatos7.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  41. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_vip_c_extra_janus7.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.
  42. L 09/16/2018 - 21:06:32: [AMXX] Plugin "ze_vip_a_extra_wallclimb.amxx" failed to load: Plugin uses an unknown function (name "ze_register_item") - check your modules.ini.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1717
Joined: 1 Year Ago
Location: Egypt
Has thanked: 28 times
Been thanked: 78 times
Age: 21
Contact:

#34

Post by Raheem » 2 Months Ago

Hmm, strange. What you did?
You don't know? Learn and you will know.

User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 258
Joined: 3 Months Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 19 times
Age: 33
Contact:

#35

Post by Mark » 2 Months Ago

Raheem wrote:
2 Months Ago
Hmm, strange. What you did?
Used this
  1. #include <zombie_escape>
  2. #include <ze_vip>
  3.  
  4. native ze_has_vip_discount(iItemid)
  5. native Float:ze_get_item_discount(iItemid)
  6.  
  7. new g_iCurrentEC,
  8.     g_iRequiredEC
  9.  
  10. public plugin_init()
  11. {
  12.     register_plugin("[ZE] Items Manager: Escape Coins", ZE_VERSION, AUTHORS)
  13. }
  14.  
  15. public ze_select_item_pre(id, itemid, ignorecost)
  16. {
  17.     if (ignorecost)
  18.         return ZE_ITEM_AVAILABLE
  19.    
  20.     g_iCurrentEC = ze_get_escape_coins(id)
  21.    
  22.     if ((ze_get_vip_flags(id) & VIP_A) && ze_has_vip_discount(itemid))
  23.     {
  24.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.1))
  25.        
  26.         new szText[32]
  27.         formatex(szText, charsmax(szText), " \w(\r%i %% OFF\w)", floatround(0.1 * 100))
  28.         ze_add_text_to_item(szText)
  29.     }
  30.     else if ((ze_get_vip_flags(id) & VIP_B) && ze_has_vip_discount(itemid))
  31.     {
  32.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.2))
  33.        
  34.         new szText[32]
  35.         formatex(szText, charsmax(szText), " \w(\r%i %% OFF\w)", floatround(0.2 * 100))
  36.         ze_add_text_to_item(szText)
  37.     }
  38.     else if ((ze_get_vip_flags(id) & VIP_C) && ze_has_vip_discount(itemid))
  39.     {
  40.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.3))
  41.        
  42.         new szText[32]
  43.         formatex(szText, charsmax(szText), " \w(\r%i %% OFF\w)", floatround(0.3 * 100))
  44.         ze_add_text_to_item(szText)
  45.     }
  46.     else
  47.     {
  48.         g_iRequiredEC = ze_get_item_cost(itemid)
  49.     }
  50.    
  51.     if (g_iCurrentEC < g_iRequiredEC)
  52.         return ZE_ITEM_UNAVAILABLE
  53.    
  54.     return ZE_ITEM_AVAILABLE
  55. }
  56.  
  57. public ze_select_item_post(id, itemid, ignorecost)
  58. {
  59.     if (ignorecost)
  60.         return
  61.    
  62.     g_iCurrentEC = ze_get_escape_coins(id)
  63.    
  64.     if ((ze_get_vip_flags(id) & VIP_A) && ze_has_vip_discount(itemid))
  65.     {
  66.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.1))
  67.     }
  68.     if ((ze_get_vip_flags(id) & VIP_B) && ze_has_vip_discount(itemid))
  69.     {
  70.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.2))
  71.     }
  72.     if ((ze_get_vip_flags(id) & VIP_C) && ze_has_vip_discount(itemid))
  73.     {
  74.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.3))
  75.     }
  76.     else
  77.     {
  78.         g_iRequiredEC = ze_get_item_cost(itemid)
  79.     }
  80.    
  81.     ze_set_escape_coins(id, g_iCurrentEC - g_iRequiredEC)
  82. }

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1717
Joined: 1 Year Ago
Location: Egypt
Has thanked: 28 times
Been thanked: 78 times
Age: 21
Contact:

#36

Post by Raheem » 2 Months Ago

Try (NOT SURE :?):

  1. #include <zombie_escape>
  2. #include <ze_vip>
  3.  
  4. native ze_has_vip_discount(iItemid)
  5.  
  6. new g_iCurrentEC,
  7.     g_iRequiredEC
  8.  
  9. public plugin_init()
  10. {
  11.     register_plugin("[ZE] Items Manager: Escape Coins", ZE_VERSION, AUTHORS)
  12. }
  13.  
  14. public ze_select_item_pre(id, itemid, ignorecost)
  15. {
  16.     if (ignorecost)
  17.         return ZE_ITEM_AVAILABLE
  18.    
  19.     g_iCurrentEC = ze_get_escape_coins(id)
  20.    
  21.     if ((ze_get_vip_flags(id) & VIP_A) && ze_has_vip_discount(itemid))
  22.     {
  23.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.1))
  24.        
  25.         new szText[32]
  26.         formatex(szText, charsmax(szText), " \w(\r10 %% OFF\w)")
  27.         ze_add_text_to_item(szText)
  28.     }
  29.     else if ((ze_get_vip_flags(id) & VIP_B) && ze_has_vip_discount(itemid))
  30.     {
  31.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.2))
  32.        
  33.         new szText[32]
  34.         formatex(szText, charsmax(szText), " \w(\r20 %% OFF\w)")
  35.         ze_add_text_to_item(szText)
  36.     }
  37.     else if ((ze_get_vip_flags(id) & VIP_C) && ze_has_vip_discount(itemid))
  38.     {
  39.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.3))
  40.        
  41.         new szText[32]
  42.         formatex(szText, charsmax(szText), " \w(\r30 %% OFF\w)")
  43.         ze_add_text_to_item(szText)
  44.     }
  45.     else
  46.     {
  47.         g_iRequiredEC = ze_get_item_cost(itemid)
  48.     }
  49.    
  50.     if (g_iCurrentEC < g_iRequiredEC)
  51.         return ZE_ITEM_UNAVAILABLE
  52.    
  53.     return ZE_ITEM_AVAILABLE
  54. }
  55.  
  56. public ze_select_item_post(id, itemid, ignorecost)
  57. {
  58.     if (ignorecost)
  59.         return
  60.    
  61.     g_iCurrentEC = ze_get_escape_coins(id)
  62.    
  63.     if ((ze_get_vip_flags(id) & VIP_A) && ze_has_vip_discount(itemid))
  64.     {
  65.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * 0.9)
  66.     }
  67.     if ((ze_get_vip_flags(id) & VIP_B) && ze_has_vip_discount(itemid))
  68.     {
  69.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * 0.8)
  70.     }
  71.     if ((ze_get_vip_flags(id) & VIP_C) && ze_has_vip_discount(itemid))
  72.     {
  73.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * 0.7)
  74.     }
  75.     else
  76.     {
  77.         g_iRequiredEC = ze_get_item_cost(itemid)
  78.     }
  79.    
  80.     ze_set_escape_coins(id, g_iCurrentEC - g_iRequiredEC)
  81. }
You don't know? Learn and you will know.

User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 258
Joined: 3 Months Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 19 times
Age: 33
Contact:

#37

Post by Mark » 2 Months Ago

Raheem wrote:
2 Months Ago
Try (NOT SURE :?):

  1. #include <zombie_escape>
  2. #include <ze_vip>
  3.  
  4. native ze_has_vip_discount(iItemid)
  5.  
  6. new g_iCurrentEC,
  7.     g_iRequiredEC
  8.  
  9. public plugin_init()
  10. {
  11.     register_plugin("[ZE] Items Manager: Escape Coins", ZE_VERSION, AUTHORS)
  12. }
  13.  
  14. public ze_select_item_pre(id, itemid, ignorecost)
  15. {
  16.     if (ignorecost)
  17.         return ZE_ITEM_AVAILABLE
  18.    
  19.     g_iCurrentEC = ze_get_escape_coins(id)
  20.    
  21.     if ((ze_get_vip_flags(id) & VIP_A) && ze_has_vip_discount(itemid))
  22.     {
  23.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.1))
  24.        
  25.         new szText[32]
  26.         formatex(szText, charsmax(szText), " \w(\r10 %% OFF\w)")
  27.         ze_add_text_to_item(szText)
  28.     }
  29.     else if ((ze_get_vip_flags(id) & VIP_B) && ze_has_vip_discount(itemid))
  30.     {
  31.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.2))
  32.        
  33.         new szText[32]
  34.         formatex(szText, charsmax(szText), " \w(\r20 %% OFF\w)")
  35.         ze_add_text_to_item(szText)
  36.     }
  37.     else if ((ze_get_vip_flags(id) & VIP_C) && ze_has_vip_discount(itemid))
  38.     {
  39.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * (1.0 - 0.3))
  40.        
  41.         new szText[32]
  42.         formatex(szText, charsmax(szText), " \w(\r30 %% OFF\w)")
  43.         ze_add_text_to_item(szText)
  44.     }
  45.     else
  46.     {
  47.         g_iRequiredEC = ze_get_item_cost(itemid)
  48.     }
  49.    
  50.     if (g_iCurrentEC < g_iRequiredEC)
  51.         return ZE_ITEM_UNAVAILABLE
  52.    
  53.     return ZE_ITEM_AVAILABLE
  54. }
  55.  
  56. public ze_select_item_post(id, itemid, ignorecost)
  57. {
  58.     if (ignorecost)
  59.         return
  60.    
  61.     g_iCurrentEC = ze_get_escape_coins(id)
  62.    
  63.     if ((ze_get_vip_flags(id) & VIP_A) && ze_has_vip_discount(itemid))
  64.     {
  65.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * 0.9)
  66.     }
  67.     if ((ze_get_vip_flags(id) & VIP_B) && ze_has_vip_discount(itemid))
  68.     {
  69.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * 0.8)
  70.     }
  71.     if ((ze_get_vip_flags(id) & VIP_C) && ze_has_vip_discount(itemid))
  72.     {
  73.         g_iRequiredEC = floatround(ze_get_item_cost(itemid) * 0.7)
  74.     }
  75.     else
  76.     {
  77.         g_iRequiredEC = ze_get_item_cost(itemid)
  78.     }
  79.    
  80.     ze_set_escape_coins(id, g_iCurrentEC - g_iRequiredEC)
  81. }
same

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1717
Joined: 1 Year Ago
Location: Egypt
Has thanked: 28 times
Been thanked: 78 times
Age: 21
Contact:

#38

Post by Raheem » 2 Months Ago

No, i tested it and working for me. But there is issue in numbers but not all these errors.
You don't know? Learn and you will know.

User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 258
Joined: 3 Months Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 19 times
Age: 33
Contact:

#39

Post by Mark » 2 Months Ago

Raheem wrote:
2 Months Ago
No, i tested it and working for me. But there is issue in numbers but not all these errors.
What all did you do just add the above to the sma? or more with an item?

User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 258
Joined: 3 Months Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 19 times
Age: 33
Contact:

#40

Post by Mark » 2 Months Ago

Raheem wrote:
2 Months Ago
No, i tested it and working for me. But there is issue in numbers but not all these errors.
LOL if would help if i added it to the right sma ahahahahha

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest