Jump to content

[Lua]Убираем выдачу exp в данжах


Go-piratia

Recommended Posts

variable.lua:

MapExpZero = {}
MapExpZero["Карта"] = true
MapExpZero["Карта2"] = true
MapExpZero["Карта3"] = true


exp_and_level.lua:
Находим функцию:

function ShareTeamExp ( dead , team_atker , dead_exp , The_Killer)


И в ней находим строчку:

exp = exp + exp_up


К ней добавляем:

exp = exp + exp_up* zero_exp


Затем выше этой строчки добавим код:

zero_exp = 1
local map_name = GetChaMapName (TurnToCha(t[i]) )
if(MapExpZero[map_name] ~= nil)then
   zero_exp = 0
end

В итоге у Вас должно получиться так:

zero_exp = 1
local map_name = GetChaMapName (TurnToCha(t[i]) )
if(MapExpZero[map_name] ~= nil)then
   zero_exp = 0
end
exp = exp + exp_up* zero_exp



 

Link to comment
Share on other sites

  • Go-piratia changed the title to [Lua]Убираем выдачу exp в данжах

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Chat

Chat

Please enter your display name

×
×
  • Create New...