- Dołączył
- Grudzień 15, 2012
- Posty
- 1032
- Liczba reakcji
- 39
Siemano mam dziwny problem. Dodaje mi skill-shield tylko na 1 sec np mam 23 to dodaje 43 i znowu 23.
[LUA]local power = 50
local condition1 = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition1, CONDITION_PARAM_SKILL_SHIELD, 20)
function onEquip(cid, item, slot, param)
if getPlayerSlotItem(cid, CONST_SLOT_HEAD).itemid == 2493 and
getPlayerSlotItem(cid, CONST_SLOT_ARMOR).itemid == 2494 and
getPlayerSlotItem(cid, CONST_SLOT_LEGS).itemid == 2495 and
getPlayerSlotItem(cid, CONST_SLOT_LEFT).itemid == 2520 then
absorbObject(cid, ABSORB_DEATH, power)
doAddCondition(cid, condition1)
doSetCreatureOutfit(cid, {lookType=35}, -1)
doSendMagicEffect(getPlayerPosition(cid), 5)
doCreatureSay(cid, "You wore Demon Set! 50% odpornosci na Death", TALKTYPE_ORANGE_1)
end
return TRUE
end
function onDeEquip(cid, item, slot)
if not getPlayerSlotItem(cid, CONST_SLOT_HEAD).itemid == 2493 then
doRemoveCondition(cid, CONDITION_OUTFIT)
doCreatureSay(cid, "You took off Demon Set!", TALKTYPE_ORANGE_1)
end
return TRUE
end[/LUA]
[LUA]local power = 50
local condition1 = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition1, CONDITION_PARAM_SKILL_SHIELD, 20)
function onEquip(cid, item, slot, param)
if getPlayerSlotItem(cid, CONST_SLOT_HEAD).itemid == 2493 and
getPlayerSlotItem(cid, CONST_SLOT_ARMOR).itemid == 2494 and
getPlayerSlotItem(cid, CONST_SLOT_LEGS).itemid == 2495 and
getPlayerSlotItem(cid, CONST_SLOT_LEFT).itemid == 2520 then
absorbObject(cid, ABSORB_DEATH, power)
doAddCondition(cid, condition1)
doSetCreatureOutfit(cid, {lookType=35}, -1)
doSendMagicEffect(getPlayerPosition(cid), 5)
doCreatureSay(cid, "You wore Demon Set! 50% odpornosci na Death", TALKTYPE_ORANGE_1)
end
return TRUE
end
function onDeEquip(cid, item, slot)
if not getPlayerSlotItem(cid, CONST_SLOT_HEAD).itemid == 2493 then
doRemoveCondition(cid, CONDITION_OUTFIT)
doCreatureSay(cid, "You took off Demon Set!", TALKTYPE_ORANGE_1)
end
return TRUE
end[/LUA]