Tudo que Orochi Elf postou
- setCreatureName(cid, name, description)
-
Atakes Pokemon
é um creatureScript.. Tem como postar eu go/back ai? Ou melhor.. Se for PDA, me passa o arquivo PokeMoves.lua Fica na Data/Lib
-
[Pedido] Npc de promotion
Teste assim -- Códigos do Suicide. local tab = { [5] = {prom = 9}, -- [vocid] = {prom = newvocid}, [6] = {prom = 10}, [7] = {prom = 11}, [8] = {prom = 12}, } 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 creatureSayCallback(cid, type, msg) if (not npcHandler:isFocused(cid)) then return false end local t = tab[getPlayerVocation(cid)] local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid if (msgcontains(msg, 'promotion')) then if t then talkState[talkUser] = 1 selfSay('Eu posso lhe ensinar uma nova promotion, voce aceita?', cid) else talkState[talkUser] = 0 selfSay('Eu nao posso te promover, voce ainda nao esta pronto.', cid) end elseif (msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if (getPlayerVocation(cid) ~= t.prom) then talkState[talkUser] = 0 doPlayerSetVocation(cid, t.prom) doSendMagicEffect(getThingPos(cid), CONST_ME_GIFT_WRAPS) selfSay('Parabens, voce evoluiu sua promotion!', cid) else talkState[talkUser] = 0 selfSay('Voce ja foi promovido, continue sua jornada.', cid) end elseif (msgcontains(msg, 'no') and talkState[talkUser] == 1) then talkState[talkUser] = 0 selfSay('Entao adeus, jovem gafanhoto.', cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
Já haviam visto essa doença?
HU3UH3UH3UHUH3UH3, esses mlqs tem aids, só pode HU3HUHU3UH3HU3U3UHU3HHU3
-
Re'Mover item quando a VIP acabar.
Não é pra por no script, é pra por no player .. @OFF: bom tou indo surfar agora, mais tarde tou aqui. Se continuar com o pedido, eu te ajudo. fuiz
- (Resolvido)[PEDIDO] Summon Monsters
-
Re'Mover item quando a VIP acabar.
Amigo, seguinte coloque o valor da storage "55555", 0. que irá funcionar perfeitamente. Código setPlayerStorageValue(cid, 55555, 0)
- (Resolvido)[PEDIDO] Summon Monsters
-
HardStyle SZ
O que? HU3UH3UH3HU3UHU3H
-
Re'Mover item quando a VIP acabar.
Amigo .. eu testei aqui e está tudo certinho.. Não está faltando o numero 3 não. o numero 3 é o slot da backpack. Você ja verificou se o ITEMID, dela está ali no script?
-
HardStyle SZ
Como pode ser tão bom ? https://www.youtube.com/watch?v=L2ZuiY5qG7Y
- (Resolvido)[PEDIDO] Summon Monsters
-
Re'Mover item quando a VIP acabar.
Eu não tinha adicionado a condição de VIP, desculpe local itemsVip = {12607} local bodySlots = {1, 2, 4, 5, 6, 7, 8, 9} function onLogin(cid) if getPlayerStorageValue(cid, 55555) <= 0 then return true end local bp = nil if isContainer(getPlayerSlotItem(cid, 3).uid) then bp = getPlayerSlotItem(cid, 3).uid elseif isContainer(getPlayerSlotItem(cid, 10).uid) then bp = getPlayerSlotItem(cid, 10).uid end if bp == nil then bp = doPlayerAddItem(cid, 1988, 1) end for slots = 1, #bodySlots do for items = 1, #itemsVip do if getPlayerSlotItem(cid, bodySlots[slots]).itemid == itemsVip[items] then doAddContainerItem(bp, itemsVip[items]) doRemoveItem(getPlayerSlotItem(cid, bodySlots[slots]).uid) end end end return true end
-
Re'Mover item quando a VIP acabar.
Não entendi nada.
-
(Resolvido)[PEDIDO] Summon Monsters
@J4dson Claro que é possível. local summons = {"Demon", "Orc", "Spider", "Rat", "Tarantula", "Orc Leader"} local maxSummons = 4 function onUse(cid) local s = maxSummons - #getCreatureSummons(cid) local str = "Voce sumonou" if s == 0 then doPlayerSendCancel(cid, "Voce ja tem 4 summons.") return false end for r = 1, s do local m = doCreateMonster(summons[math.random(1, #summons)], getThingPos(cid)) doConvinceCreature(cid, m) str = str .." " .. m .."," end doPlayerSendTextMessage(cid, 27, str) return true end @DBKO Amigo, caso não queria esses monstros, só põe na tabela qual você quer.
-
(Resolvido)Esconder words da talkaction
Prontinho local config = { battle = true, -- se precisa estar sem battle (true). Se colocar false, poder?usar teleport no meio de batalhas } function onSay(cid, words, param) local storage = 23564 local tempo = 30 if exhaustion.check(cid, storage) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar esse comando novamente.") return true end if config.battle and getCreatureCondition(cid, CONDITION_INFIGHT) then doPlayerSendCancel(cid, "Sair de Battle Primeiro.") return true end doSendMagicEffect(getPlayerPosition(cid),250) doPlayerSendCancel(cid,"Teleportado!") doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) exhaustion.set(cid, storage, tempo*60) return true end
-
Re'Mover item quando a VIP acabar.
Agora sim, está 100% Eu testei aqui, e funcionou direitinho. local itemsVip = {12607} local bodySlots = {1, 2, 4, 5, 6, 7, 8, 9} function onLogin(cid) local bp = nil if isContainer(getPlayerSlotItem(cid, 3).uid) then bp = getPlayerSlotItem(cid, 3).uid elseif isContainer(getPlayerSlotItem(cid, 10).uid) then bp = getPlayerSlotItem(cid, 10).uid end if bp == nil then bp = doPlayerAddItem(cid, 1988, 1) end for slots = 1, #bodySlots do for items = 1, #itemsVip do if getPlayerSlotItem(cid, bodySlots[slots]).itemid == itemsVip[items] then doAddContainerItem(bp, itemsVip[items]) doRemoveItem(getPlayerSlotItem(cid, bodySlots[slots]).uid) end end end return true end
-
[OTC] Bug
Alguém deve ter excluído o módulo do Terminal. Me passa o módulo de Enter Game ai.
-
Re'Mover item quando a VIP acabar.
Eu não coloquei o player, que deveria chegar o Slot Altere este -> doRemoveItem(getPlayerSlotItem(bodySlots[slots]).uid) Por este -> doRemoveItem(getPlayerSlotItem(cid, bodySlots[slots]).uid)
-
(Resolvido)Ao abrir canal
kkkkk, agora sim vai funcionar. local channels = { [5] = {txt = "(GC) Lembretes Rápidos: Este canal é apenas para CONVERSAS CASUAIS e SOCIALIZAÇÃO. Negociações e spam/flood são proibidas neste canal, e respeito e educação são essenciais. Siga as regras para não ser mutado"}, -- GameChat [6] = {txt = "(Trade) Lembretes Rápidos: Este canal é apenas para TROCAS de itens relacionados ao jogo ou FORMAÇÃO DE TIMES. Qualquer coisa além disso pode ocasionar um mute ou banimento."}, -- Trade [9] = {txt = "(Help) Lembretes Rápidos: Este canal é apenas para AJUDA. Faça sua pergunta educadamente, ou no caso se você estiver respondendo, seja claro e objetivo. Spoils são proibidos."}, -- Help } -- [ChannelID] = {txt = Texto que irá aparecer}, function onJoinChannel(cid, channelId, users) local t = channels[channelId] if t then addEvent(doPlayerSendChannelMessage, 150, cid, "", t.txt, TALKTYPE_CHANNEL_W, channelId) end return true end
-
[ShowOff]Smeargle System
Parabéns
-
(Resolvido)Ao abrir canal
Algum error no console, ou algo parecido?
-
Re'Mover item quando a VIP acabar.
Bom.. eu fiz uma versão bem bem bem lixosa. Eu coloquei pra verificar se a backpack está no slot da backpack, ou está no slot das munições. Bom.. caso não estiver em nenhum desses lugares, vai dar bug. Porém, testa ai! Se funcionar eu vou aprimorando. @OBS: Não testei. -- Developed by: Tony Araújo (Orochi Elf) -- local itemsVip = {12607} local bodySlots = {1, 2, 4, 5, 6, 7, 8, 9} function onLogin(cid) local bp = nil if isContainer(getPlayerSlotItem(cid, 3).uid) then bp = getPlayerSlotItem(cid, 3).uid elseif isContainer(getPlayerSlotItem(cid, 10).uid) then bp = getPlayerSlotItem(cid, 10).uid end for slots = 1, #bodySlots do for items = 1, #itemsVip do if getPlayerSlotItem(cid, bodySlots[slots]).itemid == itemsVip[items] then doAddContainerItem(bp, itemsVip[items]) doRemoveItem(getPlayerSlotItem(bodySlots[slots]).uid) end end end return true end
-
Mudando a COR do HIT
Bom amigo.. depende da magia que você está usando. Você pode estar customizando os textos de HITS dentro do script (spells) Ou você pode estar usando um tal elemento, como (terra), que tem a cor verde. Dá uma pesquisada la
-
Mudando a COR do HIT
Com o que você está batendo? Teste com a mão, e vê se é verde também.