Postado Outubro 15, 2023 1 ano Porem não atribui atribuibuto no player Ja tentei <movevent event="Equip" itemid="7739" slot="backpack" function="onEquipItem"/> <movevent event="DeEquip" itemid="7739" slot="backpack" function="onDeEquipItem"/> <movement type="DeEquip" itemid="7739" slot="nackpack" event="function" value="onDeEquipItem"/> <movement type="Equip" itemid="7739" slot="backpack" event="function" value="onEquipItem"> 17:20 You see a Golden Bag (fist fighting +300, club fighting +300, sword fighting +300, axe fighting +300, distance fighting +300, shielding +300, magic level +150, protection all +100%, speed +150). ItemID: [7739]. items.xml <item id="7739" article="a" name="Golden Bag"> <attribute key="weight" value="0" /> <attribute key="containerSize" value="36" /> <attribute key="skillDist" value="300"/> <attribute key="skillAxe" value="300"/> <attribute key="skillSword" value="300"/> <attribute key="skillClub" value="300"/> <attribute key="absorbPercentAll" value="100"/> <attribute key="magiclevelpoints" value="150" /> <attribute key="skillShield" value="300"/> <attribute key="skillFist" value="300"/> <attribute key="speed" value="300" /> <attribute key="showattributes" value="1" /> <attribute key="slotType" value="backpack" /> </item>
Postado Outubro 16, 2023 1 ano Solução crie em "data/scripts" goldenbag.lua function onEquipItem(cid, item, slot) if item.itemid == 7739 and slot == CONST_SLOT_BACKPACK then doPlayerAddSkill(cid, SKILL_DISTANCE, 300) -- Adiciona 300 pontos na skill Distance doPlayerAddSkill(cid, SKILL_AXE, 300) -- Adiciona 300 pontos na skill Axe doPlayerAddSkill(cid, SKILL_SWORD, 300) -- Adiciona 300 pontos na skill Sword doPlayerAddSkill(cid, SKILL_CLUB, 300) -- Adiciona 300 pontos na skill Club doPlayerAddSkill(cid, SKILL_SHIELD, 300) -- Adiciona 300 pontos na skill Shield doPlayerAddSkill(cid, SKILL_FIST, 300) -- Adiciona 300 pontos na skill Fist doPlayerAddSpeed(cid, 300) -- Adiciona 300 pontos na velocidade do jogador doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você ganhou habilidades ao equipar a Golden Bag.") end return true end function onDeEquipItem(cid, item, slot) if item.itemid == 7739 and slot == CONST_SLOT_BACKPACK then doPlayerAddSkill(cid, SKILL_DISTANCE, -300) -- Remove 300 pontos na skill Distance doPlayerAddSkill(cid, SKILL_AXE, -300) -- Remove 300 pontos na skill Axe doPlayerAddSkill(cid, SKILL_SWORD, -300) -- Remove 300 pontos na skill Sword doPlayerAddSkill(cid, SKILL_CLUB, -300) -- Remove 300 pontos na skill Club doPlayerAddSkill(cid, SKILL_SHIELD, -300) -- Remove 300 pontos na skill Shield doPlayerAddSkill(cid, SKILL_FIST, -300) -- Remove 300 pontos na skill Fist doPlayerAddSpeed(cid, -300) -- Remove 300 pontos na velocidade do jogador doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você perdeu habilidades ao remover a Golden Bag.") end return true end teste ai e veja se é isso mesmo Regras Gerais "Califórnia Brasileira "
Postado Outubro 17, 2023 1 ano Autor Eu consegui resolve amigo eu tinha colocado nil no oz (pezo) agora ta pegando vlw pela intenção e obrigado pelo suporte.
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.