Histórico de Curtidas
-
Roeyekon deu reputação a fezeRa em (Resolvido)Itens com +SKILLS!Sempre que voce quiser que um item que voce editou no items.xml de o skill você tem que adicionar no movements.xml a seguinte tag:
<movevent type="Equip" itemid="ID" slot="TIPO" level="500" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="ID" slot="TIPO" level="500" event="function" value="onDeEquipItem"/> Da pra editar o level pra usar o item também por ai!!
Acho que deu pra entender né?
em ID, seria o item do item, voce tem que colocar nas 2 tags o mesmo ID e Tipo.
E no caso o TIPO é o TIPO do item mesmo, ou seja, armor, legs, boots, shield, ring...
Mas no movements é diferente os tipos, então vou colocar aqui pra você:
Armor = Body
Legs = Legs
Boots = Feet
Shield = Shield
Ring = Ring
Helmet = Head
Caso for alguma weapon voce coloca = Hand
-
Roeyekon deu reputação a Tael em Spell De Heala Conforme o Lvl Do Playerlocal combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE) setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) function getCombatFormulas(cid, lv) local formula_min = (lv * 18) local formula_max = (lv * 22) if(formula_max < formula_min) then local tmp = formula_max formula_max = formula_min formula_min = tmp end return formula_min, formula_max end setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombatFormulas") function onCastSpell(cid, var) return doCombat(cid, combat, var) end
lv 25 vai healar de 450 a 550
lv 50 vai healar de 900 a 1100
lv 75 vai healar de 1350 a 1650
lv 100 vai healar de 1800 a 2200
E pra aparecer quanto healou de vida se vai no config.lua e procura por: "showHealingDamage" e poem "true".
-
Roeyekon deu reputação a Tricoder em Player Morre Mas Não Aparece "Dead Human"@Roeyekon
Isso é problema no script da Inquisition no creaturescript. Recomendo que troque o script ou a pasta creaturescript pra de outro server.
-
Roeyekon deu reputação a Jeff Owns em [Elfbot NG] Lita De Hotkeys Elfbot 8.60Bom Galera , Nao Sei Se Já tem algum Topico Com Lista de Hotkeys Aki no Tk , Mais Eu Vou postar msm assim.. Entao vamos Lá
Hotkeys Simples:
Hotkeys Grandes:
Hotkeys OtEditados:
Espero Que Gostem, Se Gostarem Reputem Rep+ , Nao Cai o Dedo '-'
-
Roeyekon deu reputação a Daniel augusto silva em Ajuda AquiScript
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
function playerHaveItems(cid, itemid)
local items = type(itemid) == "table" and itemid or {itemid}
for i = 1, #items do
if getPlayerItemCount(cid, items) <= 0 then
return false
end
end
return true
end
function doPlayerRemoveItems(cid, itemid, count)
local items = type(itemid) == "table" and itemid or {itemid}
for i = 1, #items do
doPlayerRemoveItem(cid, items, count ~= nil and count or 1)
end
return nil
end
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
if msgcontains(msg, "trocar") then
if playerHaveItems(cid, {2134, 2174, 2159}) then
doPlayerRemoveItems(cid, {2134, 2174, 2159}, 300)
doPlayerAddItem(cid, 2090, 1)
else
selfSay("Você Não tem os itens necessarios.")
end
end
return true
endnpcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
Agora vá em Data/Npc/Nomedonpc.xml
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Fernando" script="trocaitems.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="169" head="114" body="86" legs="114" feet="0" addons="2"/>
<parameters>
<parameter key="message_greet" value="Ola, diga {trocar} para trocar 3 items por 1."/>
</parameters>
</npc>
Ta Dando esse erro
[10/02/2016 12:58:23] [Error - LuaScriptInterface::loadFile] data/npc/scripts/trocaitems.lua:45: 'end' expected (to close 'function' at line 29) near 'endnpcHandler'
[10/02/2016 12:58:23] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/trocaitems.lua
[10/02/2016 12:58:23] data/npc/scripts/trocaitems.lua:45: 'end' expected (to close 'function' at line 29) near 'endnpcHandler'
-
Roeyekon deu reputação a dominus em Ajuda AquiEncontrei o erro na variável da função doplayerremoveitems ()
playerHaveItems(cid, iremos)
Troca "iremos" por "items"