Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local blockAttack = {
- ['monsteName'] = {storageValue = 9990, needValue = 4},
- }
- function onStatsChange(cid, attacker, type, combat, value, spellType)
- if not attacker or isMonster(attacker) then
- return false
- end
- local name = getCreatureName(cid)
- if not name then
- return false
- end
- if blockAttack[name] then
- if getPlayerStorageValue(attacker, blockAttack[name].storageValue) ~= blockAttack[name].needValue then
- return false
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement