Histórico de Curtidas
-
DKnight recebeu reputação de Nerivalhs em Problema para nadar naTem sim amigo vá no seu remers e abra seu mapa e va em:
Terrain Pallete > Nature
Vai ter 2 tipos de água passe o mouse por cima.
Uma das águas vai estar (walkable sea) algo do tipo.
-
DKnight recebeu reputação de ZackBell em Problema para nadar naTem sim amigo vá no seu remers e abra seu mapa e va em:
Terrain Pallete > Nature
Vai ter 2 tipos de água passe o mouse por cima.
Uma das águas vai estar (walkable sea) algo do tipo.
-
DKnight recebeu reputação de mikkas70 em [Pedido] Verifica se tem itens equipados.Vamos lá, você terá que criar 1 script para cada parte
Motivo: Eu sou burro... estou aprendendo scripting ainda...
movements\scripts\
helmetvip.lua
--> Set System By: Dknight --- CONFIGURAÇOES --- local config = { -- INICIO DAS CONFIGURAÇOES sto = 8000, -- NÃO MEXA slot1 = 1, -- ID DO SLOT item1 = 2160, -- ID EQUIPE eff1 = 10, -- EFEITO AO EQUIPAR O ITEM eff2 = 8 -- EFEITO AO DESEQUIPAR O ITEM } -- FIM DAS CONFIGURAÇOES ------ SCRIPT ---- if getPlayerSlotItem(cid, 1).itemid == xxxx and getPlayerSlotItem(cid, 4).itemid == xxxx and getPlayerSlotItem(cid, 7).itemid == xxxx and getPlayerSlotItem(cid, 8).itemid == xxxx then return doPlayerSendCancel(cid, "Voce esta 100% com itens VIP") end function onEquip(cid, item, slot) if getPlayerSlotItem(cid, config.slot1).itemid == config.item1 then setPlayerStorageValue(cid, sto, getPlayerStorageValue(cid, sto)+20) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce equipou um item VIP voce esta com ..getPlayerStorageValue(cid, sto)..% do seu Set VIP") end return true end function onDeEquip(cid, item, slot) setPlayerStorageValue(cid, sto, getPlayerStorageValue(cid, sto)-20) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce desequipou um item VIP voce esta com ..getPlayerStorageValue(cid, sto)..% do seu Set VIP") return true end movements.xml
<movevent type="Equip" itemid="11234" slot="feet" event="script" value="helmetvip.lua"/> <movevent type="DeEquip" itemid="11234" slot="feet" event="script" value="helmetvip.lua"/> Observação !!!
if getPlayerSlotItem(cid, 1).itemid == xxxx and getPlayerSlotItem(cid, 4).itemid == xxxx and getPlayerSlotItem(cid, 7).itemid == xxxx and getPlayerSlotItem(cid, 8).itemid == xxxx then return doPlayerSendCancel(cid, "Voce esta 100% com itens VIP") end Aonde está xxxx mude para o id do item,
slot 1 = helmet,
slot 4 = armor,
slot 7 =legs
slot 8 = boots
---------------------------------------------------
Creditos:
WhiteWolf, por me ensinar a usar getPlayerSlotItem e .itemid === (não sabia usar)
Eu, pelo resto.
-
DKnight recebeu reputação de xDeft em Avaliação - Capa Ytb LIFE CRAFTBem legal xD.
-
DKnight recebeu reputação de mikkas70 em [Ideia] Bonus por set.Achei esse script do WhiteWolf... testa ele ai...
movements\scripts\set.lua:
-- NW SET SYSTEM local config = { slot1 = 4, slot2 = 8, item1 = 8889, item2 = 11234 } local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, -1) setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, 50) setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, 50) setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, 50) setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, 50) function onEquip(cid, item, slot) if getPlayerSlotItem(cid, config.slot2).itemid == config.item2 and getPlayerSlotItem(cid, config.slot1).itemid == config.item1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Now that you're using the full set you'll receive a special bonus...") doAddCondition(cid, condition) doSendMagicEffect(getCreaturePos(cid), 10) end return true end function onDeEquip(cid, item, slot) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You're no longer receiving the special bonus..") doRemoveCondition(cid, CONDITION_ATTRIBUTES) return true end movements.xml
<!-- Set Items --> <movevent type="Equip" itemid="11234" slot="feet" event="script" value="set.lua"/> <movevent type="Equip" itemid="8889" slot="armor" event="script" value="set.lua"/> <movevent type="DeEquip" itemid="11234" slot="feet" event="script" value="set.lua"/> <movevent type="DeEquip" itemid="8889" slot="armor" event="script" value="set.lua"/> ID Dos Slots:
CONST_SLOT_FIRST = 1 CONST_SLOT_HEAD = CONST_SLOT_FIRST CONST_SLOT_NECKLACE = 2 CONST_SLOT_BACKPACK = 3 CONST_SLOT_ARMOR = 4 CONST_SLOT_RIGHT = 5 CONST_SLOT_LEFT = 6 CONST_SLOT_LEGS = 7 CONST_SLOT_FEET = 8 CONST_SLOT_RING = 9 CONST_SLOT_AMMO = 10