
Solutions
-
Lurk's post in (Resolvido)Da storage apenas se for x vocação was marked as the answer@diarmaint assim
local vocacoes = {1, 2 , 3, 4} -- vocacoes que podem ganhar essa skin function onUse(cid, item) if getPlayerStorageValue(cid, 11140) < 1 and isInArray(vocacoes, getPlayerVocation(cid)) then setPlayerStorageValue(cid, 11140, 1) doPlayerSendCancel(cid, "Voce já ganhou essa skin!.") doSendMagicEffect(getPlayerPosition(cid), 5) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você recebeu a skin!.") doRemoveItem(item.uid, 1) elseif getPlayerStorageValue(cid, 11140) == 1 then doPlayerSendCancel(cid, "Voce já tem essa skin.") else doPlayerSendCancel(cid, "Sua vocacao nao pode ganhar essa skin.") end return true end -
Lurk's post in (Resolvido)[Creaturescript] Spam No Default was marked as the answer@Thony D. Serv deixa assim
local cfg = { life = 20000, storage = 9999, tempo = 1 -- em segundos } function onCast(cid, target) local master = getCreatureMaster(cid) if exhaustion.check(master, cfg.storage) == false then local pos = getCreaturePosition(master) local pos2 = getCreaturePosition(target) doCreatureAddHealth(master, cfg.life) doCreatureAddMana(master, cfg.life) doSendAnimatedText(pos2, "Absorve", TEXTCOLOR_BLUE) exhaustion.set(master, cfg.storage,cfg.tempo*7) doSendMagicEffect(pos, 12) else -- exhaustion.set(master, cfg.storage,0) doPlayerSendTextMessage(master, MESSAGE_STATUS_WARNING, "Sua Mana E Seu Hp Encheram 20k Proximo Buff em " ..exhaustion.get(master, cfg.storage).." segundos.") end return true end -
Lurk's post in (Resolvido)(HELP) Action Autoloot System was marked as the answer@El Reverso concordo sim man, mas poe esse aq
local blocked_items = {8413, 5726} -- adicione aqui os itens que vc quer bloquear separados por , function onUse(cid, item, fromPosition, itemEx, toPosition) if getItemAttribute(item.uid, "corpseowner") ~= cid then return doPlayerSendCancel(cid, "You're not the owner.") end local items = {} for i = 0, getContainerSize(item.uid) do local it = getContainerItem(item.uid, i) if it.uid > 0 and not isInArray(blocked_items,it.itemid) then table.insert(items, {it.itemid, it.type}) doRemoveItem(it.uid) end end if #items > 0 then for k = 1, #items do local playerItem = getPlayerItemById(cid, true, items[k][1]) if playerItem.uid > 0 then if (playerItem.type + items[k][2]) > 100 then doPlayerAddItem(cid, items[k][1], (playerItem.type + items[k][2]) - 100) doTransformItem(playerItem.uid, items[k][1], 100) else doTransformItem(playerItem.uid, items[k][1], playerItem.type + items[k][2]) end else doPlayerAddItem(cid, items[k][1], items[k][2]) end end return true end doSetItemActionId(item.uid, 0) return false end e confere q ta funfando, pelo q vi tinha 1 palavra sobrando lá
-
Lurk's post in (Resolvido)Creature script erro was marked as the answer@Mor3nao cara pior que tem, vi um mlk falando disso hj no otland, vou ve se acho aq dnv o post lá e se achar edito a resposta aq
edit:
aqui, só muda o criticalHitSystemXHP pro nome do seu evento ai
Open data/events/events.xml Find <event class="Creature" method="onTargetCombat" enabled="0" /> and change enabled="0" to enabled="1" Open data/events/scripts/creature.lua Find function Creature:onTargetCombat(target) and add there target:registerEvent("criticalHitSystemXHP") -
Lurk's post in (Resolvido)Ao usar armas servidor congela was marked as the answercara, é muito simples
cada vocação tem uma "especialização" com armas digamos assim, knight upa bem a sword mas upa mal o ml, e o knight de alguma forma pegar ml 120 e usar um exura vita da vida o servidor vai freezar, do mesmo jeito que se um sorcerer pegar sword 120 e tentar atacar com ela o servidor vai freezar. Isso é definido no vocations.xml
ve o valor da sword do knight e poe esse valor em sword de todos, ml do mage pra todas tambem, desse jeito n vai ter freeze