Tudo que gabriel28 postou
-
(Resolvido)colocar exaustão nesse item
@Emooooo Tas usando o script que ta ali em cima? Porque não vejo sentido nesse erro ai.
-
(Resolvido)Vocation
@Platinun O script que você está usando é pra ir de knight pra elite knight? Se for, mude o doPlayerSetPromotionLevel(cid, 2) para doPlayerSetPromotionLevel(cid, 1) Leia meu comentário anterior que tem tudo explicado.
-
(Resolvido)Vocation
@Platinun @Platinun Sobre a pergunta da criação de outras vocs, a lógica é a seguinte: knight>elite knight>extreme knight>supreme knight O from voc do knight é a id dele mesmo. O from voc do elite knight é a id do knight. O from voc do extreme knight é a id do elite knight. O from voc do supreme knight é a id do extreme knight. Então pra subir de uma pra outra você usa: doPlayerSetPromotionLevel(cid, level) onde 'level' é o nível de promoção, que começa a partir de elite knight (sendo a 1). Então se quiser promover de elite knight pra extreme knight, fica: doPlayerSetPromotionLevel(cid, 2). Se quiser um item que passe de knight pra supreme knight, fica: doPlayerSetPromotionLevel(cid, 3)
-
(Resolvido)Vocation
@Platinun O erro é coluna faltando na database, não tem a ver com o script. Do jeito que o Crypter fez no xml, não vai funcionar mesmo, teria que fazer de outro jeito, dai caso você fizesse um script pra várias vocações ao mesmo tempo, teria que fazer um check pra todas as vocações e ir atribuindo a nova. Manda teu xml pra eu ver como está, não era pra tá voltando.
-
(Resolvido)Vocation
@Platinun function onUse(cid, item) if (isPremium(cid)) then if (getPlayerVocation(cid) >= 5 and getPlayerVocation(cid) <=8) then doPlayerSendTextMessage(cid,25,"Voce ja foi promovido!") else doRemoveItem(item.uid, 1) -- remove o promotion scroll doPlayerSendTextMessage(cid,25,"Voce foi promovido com sucesso!") doPlayerSetPromotionLevel(cid, 2) end end end
-
(Resolvido)Vocation
@Platinun Se o script usa 'doPlayerSetVocation(cid, voc)', o 'fromvoc' em vocations.xml tem que ter a mesma id da vocation. Se o script usa 'doPlayerSetPromotionLevel(cid, prom)', o 'fromvoc' em vocations.xml tem que ter a id de sua vocação prévia.
-
(Resolvido)colocar exaustão nesse item
@Emooooo local outfits = {"rat", "ghost", "chicken", "pig"} -- outfits (randomicos) local duration = 45 -- tempo de duraçao dos outfits (em segundos) local breakchance = 90 --chance de perder a varinha magica function onUse(cid, item, fromPosition, itemEx, toPosition) if exhaustion.check(cid, 100020) == true then doPlayerSendCancel(cid, "Wait "..exhaustion.get(cid, 100020).." second(s) to use this item again.") return false else if math.random(100) <= breakchance then doSummonCreature("Mad Sheep",toPosition) doSendMagicEffect(toPosition,CONST_ME_SOUND_BLUE) doRemoveItem(item.uid,1) exhaustion.set(cid, 100020, 3600) return true end if isPlayer(itemEx.uid) == true then doSetMonsterOutfit(itemEx.uid,outfits[math.random(#outfits)],duration*1000) doSendMagicEffect(toPosition,CONST_ME_MAGIC_BLUE) exhaustion.set(cid, 100020, 3600) return true end end end
-
AJuda Spells.cpp Sources
@mateusmoretti Já verificou em spells.xml como ta o exhaust?
-
(Resolvido)[AJUDA] Spell de teleport estilo Goku!
@Nother Talkaction.
-
Cliente NTO Under Full Sprites by Phsilva!
@Wase Wiss Entendo.
-
(Resolvido)BUG memoria e CPU do cloud alguem me ajuda pldm
@poko360 Podia postar a solução, caso, futuramente, outra pessoa venha a ter o mesmo problema.
-
Cliente NTO Under Full Sprites by Phsilva!
O projeto dele se encerrou, alguém acabou descompilado e ele resolveu postar pra não se darem bem ou resolveu postar por postar mesmo? É só uma curiosidade.
-
Como tira o tele do poke para nao fala com nurse
@DarkRed Posta o script do teleport pra dar uma olhada.
-
[Spell] Dano Por Skill
@Christinacsa Tenta com a formula desse jeito: function onGetFormulaValues(cid, level, skill, attack, factor) local lvl_skill = getPlayerSkillLevel(cid, SKILL_CLUB) local lvl_skill2 = getPlayerSkillLevel(cid, SKILL_FIST) local min = -(level * 3 + lvl_skill * 5 + lvl_skill2 * 5) * 3 local max = -(level * 3 + lvl_skill * 5 + lvl_skill2 * 5) * 3 return min, max end
-
Evento de matar o Pain
@MeloDev Fazendo uma função onKill no creatureevents pra dar o gold a todos que estavam atacando o boss (Pain). Ou uma função onDeath pra dar apenas pra quem deu o último hit e pro que deu maior hit (caso queira).
- Getcreatureinrange(Type, Frompos, Topos, Toget)
-
[DUVIDA] para adicionar um item de estética no servidor
@nickyfull Em ambos.
-
player dropar x item aparecer x mensagem Creaturescript
@gabrielbuff Vê:
-
[AJUDA] TASK SYSTEM DO VODKART
@joaovitorbk9 Acho que não causava conflito, só era um arquivo avulso ai. Toca o MOD por esse:
-
[AJUDA] TASK SYSTEM DO VODKART
@joaovitorbk9 Pelo que estou vendo, esse creaturescript fora do MOD não tem nada a ver com o MOD, e no próprio MOD já tem uma função onKill pra registrar os monstros que tas matando.
-
player dropar x item aparecer x mensagem Creaturescript
@gabrielbuff testa
-
(Resolvido)Creaturescript de pvp enforced ganhando xp no summon, help pls
@poko360 Se o de cima não funcionar, tenta assim: function onKill(cid, target, lastHit) local target = getCreatureTarget(cid) if isPlayer(cid) and isPlayer(target) then doSendAnimatedText(getPlayerPosition(cid), "10000000", 215) doPlayerAddExperience(cid, getPlayerExperience(target) / 5000) else return false end return true end
-
[AJUDA] TASK SYSTEM DO VODKART
Retorna algum erro no console?
-
Wand Vip trocadora de Elemento.
@Pifafa w = { [12031] = {ef = 36, sh = 3, dmg = COMBAT_FIREDAMAGE}, [12032] = {ef = 42, sh = 28, dmg = COMBAT_ICEDAMAGE}, [12033] = {ef = 45, sh = 38, dmg = COMBAT_POISONDAMAGE}, [12034] = {ef = 17, sh = 31, dmg = COMBAT_DEATHDAMAGE}, [12035] = {ef = 11, sh = 35, dmg = COMBAT_ENERGYDAMAGE}, [12036] = {ef = 49, sh = 37, dmg = COMBAT_HOLYDAMAGE} } function onUseWeapon(cid, var) local level = getPlayerLevel(cid) local maglevel = getPlayerMagLevel(cid, SKILL__MAGLEVEL) min, max = (level * 575 + maglevel * 575), (level * 695 + maglevel * 695) -- dano minimo e maximo target = getCreatureTarget(cid) for stor, info in pairs(w) do if getPlayerStorageValue(cid, stor) == 1 then if target ~= 0 then doSendDistanceShoot(getThingPos(cid), getThingPos(target), info.sh) addEvent(doAreaCombatHealth, 100, cid, info.dmg, getThingPos(target), 0, -min, -max, info.ef) end end end return true end
-
Wand Vip trocadora de Elemento.
@Pifafa Onde tem x, y, w, z.