poderia postar o Script do Amulet?
info
Group: Conde
Joined: 27/07/12
Posts: 757
Reputation: +57
Tibia Character: [ADM] Bhoris

info
Group: Campones
Joined: 17/12/12
Posts: 19
Reputation: 0
Tibia Character: Extreme War

function onEquip(cid, item, slot)
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
if isSorcerer(cid) or isDruid(cid) then
doPlayerAddMagLevel(cid, 10)
elseif (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196 and isPaladin(cid) or isKnight(cid)) then
doPlayerAddSkill(cid, 2, 10, 1)
doPlayerAddSkill(cid, 3, 10, 1)
doPlayerAddSkill(cid, 4, 10, 1)
doPlayerAddSkill(cid, 5, 10, 1)
end
return true
end
return true
end
function onDeEquip(cid, item, slot)
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
if isSorcerer(cid) or isDruid(cid) then
doPlayerRemoveMagLevel(cid, -10)
elseif (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196 and isPaladin(cid) or isKnight(cid)) then
doPlayerRemoveSkill(cid, 2, -10, 1)
doPlayerRemoveSkill(cid, 3, -10, 1)
doPlayerRemoveSkill(cid, 4, -10, 1)
doPlayerRemoveSkill(cid, 5, -10, 1)
end
return true
end
return true
end
info
Group: Conde
Joined: 27/07/12
Posts: 757
Reputation: +57
Tibia Character: [ADM] Bhoris

1°: Quando for postar script use spoiler ou code ([ spoiler] txt [ /spoiler] [ CODE]txt [ /CODE])
Amigo Tente Assim:
function onEquip(cid, item, slot)
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
if isSorcerer(cid) or isDruid(cid) then
doPlayerAddMagLevel(cid, 10)
elseif (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196 and isPaladin(cid) or isKnight(cid)) then
doPlayerAddSkill(cid, 2, 10, 1)
doPlayerAddSkill(cid, 3, 10, 1)
doPlayerAddSkill(cid, 4, 10, 1)
doPlayerAddSkill(cid, 5, 10, 1)
end
return true
end
return true
end
function onDeEquip(cid, item, slot)
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
if isSorcerer(cid) or isDruid(cid) then
doPlayerRemoveMagLevel(cid, -0)
elseif (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196 and isPaladin(cid) or isKnight(cid)) then
doPlayerRemoveSkill(cid, 2, -0, 1)
doPlayerRemoveSkill(cid, 3, -0, 1)
doPlayerRemoveSkill(cid, 4, -0, 1)
doPlayerRemoveSkill(cid, 5, -0, 1)
end
return true
end
return true
end
(Nao testei)
Edited Dezembro 20 by DinoAdmin
info
Group: Campones
Joined: 17/12/12
Posts: 19
Reputation: 0
Tibia Character: Extreme War

Consegui abri sim, obrigado
Edited Dezembro 20 by pinheirog3
info
Group: Lorde
Joined: 05/06/12
Posts: 2.2k
Reputation: +215
Gender: Masculino

Dúvida Resolvida!
Movido.
Edited Dezembro 20 by Yan18
info
Group: Lorde
Joined: 05/06/12
Posts: 2.2k
Reputation: +215
Gender: Masculino

Tópico movido para a seção de dúvidas e pedidos resolvidos.



info
Group: Campones
Joined: 17/12/12
Posts: 19
Reputation: 0
Tibia Character: Extreme War
Tipo no meu servidor tem um item vip : "You see a VIP amulet (protection all +15%, speed +20)"
eu queria colocar ele pra ser infinito, que ao morrer não perdia nada, igual o amulet of loss , mas porem infinito. alguem pode me ajudar nisso ? como eu faço. quando morre está perdendo o Vip Amulet.
obrigado
abrass