Tudo que runeraserver postou
-
Grande Desafio - Scripters
Acredito que usando a analogia do utevo res, não seja uma tarefa tão difícil, porém demorada e requer um tempinho. Passando fds vou tentar
- [Showoff] Castelo de Pedra
-
[Pedido] Item que solta spell
Qual a versão do seu Server?
- [Showoff] Castelo de Pedra
-
[MAPPER]
Poderia postar algum portifolio seu amigo?
- (Resolvido)Dúvida exhaust onMoveItem
- (Resolvido)Dúvida exhaust onMoveItem
-
(Resolvido)Dúvida exhaust onMoveItem
Não deu certo a action pelo seguinte, o certo é, quando desequipar o ssa, começar a contar o exhaust, ou seja, quando acabar, ou o player trocar o ssa, adicionar exhaust. Outro erro crítico.. Se tu ativar o exhausted do ssa, comprá-lo e o slot de necklace estiver vazio, o servidor cai na hora. Ta hard isso !!
-
(Resolvido)Dúvida exhaust onMoveItem
Caraca brother, muito boa ideia declarar o exhausted na ação!! Se criar script na função onequip no movevents.xml, ele anula todas as funções do item que possui no items.xml!!! Vou tentar algo referente a isso que tu passou, só não sei se esse CONST_SLOT_NECKLACE possui no 0.4 3777. Vou testar e caso consiga posto aqui.. Valeu mesmo
- (Resolvido)Dúvida exhaust onMoveItem
-
[ERRO APACHE]
fecha o skype e tenta rodar novamente
-
(Resolvido)Dúvida exhaust onMoveItem
toPos.y == 2 Bom dia galera, Alguma alma poderia me ensinar como funcionam as conditions? Pegando um exemplo de introduzir um delay em um stone skin amulet e fazer ele ser equipado caso o exaust seja menor que 2 segundos e também consumir a sua carga, cheguei nessa conclusão que por fim não funcionou hehe!! Estou usando TFS 0.4 3777 local combat = createConditionObject(CONDITION_EXHAUST)setCombatParam(combat, CONDITION_PARAM_TICKS, 2000)setCombatParam(combat, CONDITION_PARAM_SUBID, 5)function onDeEquip(cid, item, slot, boolean) if(not boolean) then return true end doAddCondition(cid, combat)end
-
Mudança de Nick
Opa, também quero haha!! Teria como por gentileza alterar o meu pra Badenhask? Agradeço desde sempre!!!
-
NPC que atende com palavras diferente de hi
Fala galera, Venho compartilhar com vocês minha Queen Eloise, ela responde apenas se falar Hail Queen Eloise. obs: O NPC não está com a ação de promotion, o intuito do post é apenas pra quem não sabe como alterar a maneira do NPC pegar o focus do player. No exemplo abaixo, o npc só responderá se o player falar (hail queen eloise) 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) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if (msgcontains(msg, 'hail') and msgcontains(msg, 'queen') and msgcontains(msg, 'eloise') and (not npcHandler:isFocused(cid))) then npcHandler:say("I greet thee, my loyal subject", cid, true) npcHandler:addFocus(cid) talkState[cid] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) No exemplo abaixo o npc responderá se o player falar oi: if ((msgcontains(msg, 'oi') and (not npcHandler:isFocused(cid))) then
-
[NPC] A Sweaty Cyclops 100% Global TFS 0_4
Fala galera, Venho compartilhar com vocês o NPC A Sweaty Cyclops 100% idêntico ao global. O NPC precisa das 3 bast skirt para fazer as trocas, exceto o amulet da blue legs, como disse, 100% global. Para verificar suas ações, pode fazer uma busca sites de spoilers que está funcionando exatamente como descrito. créditos: runeraserver A Sweaty Cyclops.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="A Sweaty Cyclops" script="data/npc/scripts/asweatycyclops.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="22" head="0" body="0" legs="0" feet="0" addons="0"/> <parameters> <parameter key="message_greet" value="Hum Humm! Welcume lil' Player.."/> <parameter key="message_farewell" value="Good bye lil' one."/> </parameters> </npc> asweatycyclops.lua 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 talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local storage = getPlayerStorageValue(cid, 52180) -- Storage Quest A Sweaty Cyclops local storagexorlosh = getPlayerStorageValue(cid, 52186) -- Storage Xorlosh Mission local valuexorlosh = 1 -- Verifica Value Xorlosh Mission local ironore = 5880 -- Iron Ore ID local gearwheel = 9690 -- Gear Wheel ID -- no Quest if storage == -1 then if msgcontains(msg, 'uth\'lokr')then npcHandler:say("Firy steel it is. Need green ones' breath to melt. Or red even better. Me can make from shield. Lil' one want to trade?", cid) talkState[talkUser] = 1 elseif msgcontains(msg, "yes")then if talkState[talkUser] == 1 then npcHandler:say("Wait. Me work no cheap is. Do favour for me first, yes?", cid) talkState[talkUser] = 2 elseif talkState[talkUser] == 2 then npcHandler:say("Me need gift for woman. We dance, so me want to give her bast skirt. But she big is. So I need many to make big one. Bring three okay? Me wait.", cid) talkState[talkUser] = 3 elseif talkState[talkUser] == 4 then if getPlayerItemCount(cid,3983) >= 3 then npcHandler:say("Good good! Woman happy will be. Now me happy too and help you.", cid) doPlayerRemoveItem(cid,3983,3) setPlayerStorageValue(cid, 52180, 1) talkState[talkUser] = 0 else npcHandler:say("You do not have the gifts of my girlfriend.", cid) end elseif talkState[talkUser] == 10 then if getPlayerItemCount(cid,2152) >= 50 and getPlayerItemCount(cid,8262) >= 1 and getPlayerItemCount(cid,8263) >= 1 and getPlayerItemCount(cid,8264) >= 1 and getPlayerItemCount(cid,8265) >= 1 then npcHandler:say("Ahh, lil' one wants amulet. Here! Have it! Mighty, mighty amulet lil' one has. Don't know what but mighty, mighty it is!!!", cid) doPlayerRemoveItem(cid,8262,1) doPlayerRemoveItem(cid,8263,1) doPlayerRemoveItem(cid,8264,1) doPlayerRemoveItem(cid,8265,1) doPlayerRemoveItem(cid,2152,50) doPlayerAddItem(cid,8266,1) else npcHandler:say("Come back when you got the neccessary items.", cid) end end elseif msgcontains(msg, "bast skirt")then if talkState[talkUser] == 3 then npcHandler:say("Lil' one bring three bast skirts?", cid) talkState[talkUser] = 4 end elseif msgcontains(msg, "broken") or msgcontains(msg, "amulet") then npcHandler:say("Me can do unbroken but Big Ben want 5000 gold to make it unbroken. You accept??", cid) talkState[talkUser] = 10 elseif msgcontains(msg, "no") then npcHandler:say("What do you want here?", cid) elseif msgcontains(msg, "help") then npcHandler:say("I can forge Amulet, Huge Chunk of Crude Iron, Piece of Draconian Steel, Piece of Royal Steel, Piece of Hell Steal and Infernal Bolts!", cid) elseif msgcontains(msg, "uth'kean") or msgcontains(msg, "za'ralator") or msgcontains(msg, "uth'prta") or msgcontains(msg, "soul orb") then npcHandler:say("I need 3 bart skirt so I can help you.", cid) elseif(msgcontains(msg, "iron ore") or msgcontains(msg, "gear wheel") or msgcontains(msg, "gear wheels")) then npcHandler:say("You do not have the gifts of my girlfriend.", cid) talkState[talkUser] = 0 end end -- True Quest if storage == 1 then --Gear Wheel if(msgcontains(msg, "iron ore") or msgcontains(msg, "gear wheel") or msgcontains(msg, "gear wheels")) then if getPlayerStorageValue(cid,storagexorlosh) > 0 then if getPlayerStorageValue(cid, storagexorlosh) < 4 then npcHandler:say("Want to trade iron ore by gear wheel?", cid) talkState[talkUser] = 90 else npcHandler:say("You've traded 3 Iron Ores with me", cid) end else npcHandler:say("Go to talk with Xorlosh", cid) end --Amulet elseif msgcontains(msg, "broken") or msgcontains(msg, "amulet") then talkState[talkUser] = 10 npcHandler:say("Me can do unbroken but Big Ben want 5000 gold to make it unbroken. You accept??", cid) --Piece of Royal Steel elseif msgcontains(msg, "uth'kean") then talkState[talkUser] = 20 npcHandler:say("Very noble. Shiny. Me like. But breaks so fast. Me can make from shiny armour. Lil' one want to trade?", cid) --Piece of Draconian Steel elseif msgcontains(msg, "uth'lokr") then talkState[talkUser] = 30 npcHandler:say("Firy steel it is. Need green ones' breath to melt. Or red even better. Me can make from shield. Lil' one want to trade?", cid) --Piece of Hell Steel elseif msgcontains(msg, "za'ralator") then talkState[talkUser] = 40 npcHandler:say("Hellsteel is. Cursed and evil. Dangerous to work with. Me can make from evil helmet. Lil' one want to trade?", cid) --Huge Chunk of Crude Iron elseif msgcontains(msg, "uth'prta") then talkState[talkUser] = 50 npcHandler:say("Good iron is. Me friends use it much for fight. Me can make from weapon. Lil' one want to trade?", cid) --Infernal Bolts elseif msgcontains(msg, "soul orb") then talkState[talkUser] = 60 npcHandler:say("Uh. Me can make some nasty lil' bolt from soul orbs. Lil' one want to trade all?", cid) --Help elseif msgcontains(msg, "help") then npcHandler:say("I can forge Amulet, Huge Chunk of Crude Iron, Piece of Draconian Steel, Piece of Royal Steel, Piece of Hell Steal and Infernal Bolts!", cid) --No elseif msgcontains(msg, "no") then npcHandler:say("What do you want here?", cid) --Yes elseif msgcontains(msg, "yes") then --Piece of Royal Steel if talkState[talkUser] == 20 then if getPlayerItemCount(cid,2487) >= 1 then doPlayerRemoveItem(cid,2487,1) doPlayerAddItem(cid,5887,1) npcHandler:say("Cling clang!", cid) else npcHandler:say("Come back when you got the neccessary items.", cid) end --Piece of Draconian Steel elseif talkState[talkUser] == 30 then if getPlayerItemCount(cid,2516) >= 1 then doPlayerRemoveItem(cid,2516,1) doPlayerAddItem(cid,5889,1) npcHandler:say("Cling clang!", cid) else npcHandler:say("Come back when you got the neccessary items.", cid) end --Piece of Hell Steel elseif talkState[talkUser] == 40 then if getPlayerItemCount(cid,2462) >= 1 then doPlayerRemoveItem(cid,2462,1) doPlayerAddItem(cid,5888,1) npcHandler:say("Cling clang!", cid) else npcHandler:say("Come back when you got the neccessary items.", cid) end --Huge Chunk of Crude Iron elseif talkState[talkUser] == 50 then if getPlayerItemCount(cid,2475) >= 3 then doPlayerRemoveItem(cid,2475,3) doPlayerAddItem(cid,5892,1) npcHandler:say("Cling clang!", cid) else npcHandler:say("Come back when you got the neccessary items.", cid) end --Infernal Bolts elseif talkState[talkUser] == 60 then if getPlayerItemCount(cid,5944) >= 1 then doPlayerRemoveItem(cid,5944,1) doPlayerAddItem(cid,6529,6) npcHandler:say("Cling clang!", cid) else npcHandler:say("Come back when you got the neccessary items.", cid) end --Amulet elseif talkState[talkUser] == 10 then if getPlayerItemCount(cid,2152) >= 50 and getPlayerItemCount(cid,8262) >= 1 and getPlayerItemCount(cid,8263) >= 1 and getPlayerItemCount(cid,8264) >= 1 and getPlayerItemCount(cid,8265) >= 1 then npcHandler:say("Ahh, lil' one wants amulet. Here! Have it! Mighty, mighty amulet lil' one has. Don't know what but mighty, mighty it is!!!", cid) doPlayerRemoveItem(cid,8262,1) doPlayerRemoveItem(cid,8263,1) doPlayerRemoveItem(cid,8264,1) doPlayerRemoveItem(cid,8265,1) doPlayerRemoveItem(cid,2152,50) doPlayerAddItem(cid,8266,1) else npcHandler:say("Come back when you got the neccessary items.", cid) end --Gear Wheel elseif talkState[talkUser] == 90 then if getPlayerItemCount(cid,ironore) >= 1 then setPlayerStorageValue(cid, 52186, valuexorlosh + 1) doPlayerAddItem(cid, gearwheel, 1) doPlayerRemoveItem(cid, ironore, 1) npcHandler:say("Here's your Gear Wheel", cid) talkState[talkUser] = 0 else npcHandler:say("You've traded 3 Iron Ores with me", cid) talkState[talkUser] = 0 end end end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
[NPC] Virado pra sul, norte, leste ou oeste. TFS 0_4
Saudações TibiaKing Esse script faz com que o NPC comece o server virado pra determinada posição, pra não começar o server com NPC virado para a parede ou algo do tipo. Crie um arquivo no diretório data\globalevents\scripts\ com o nome npcpositioning.lua e com o seguinte conteúdo: local npcPositions = { { position={x = 2911, y = 2624, z = 7}, direction=NORTH }, -- NPC da poisção 2911, 2624, 7 virado para o norte { position={x = 2924, y = 2611, z = 7}, direction=SOUTH }, { position={x = 2914, y = 2633, z = 7}, direction=EAST }, { position={x = 2955, y = 2644, z = 7}, direction=NORTH }, { position={x = 2933, y = 2614, z = 7}, direction=WEST } } function onStartup(cid, item, pos) for indx, npcLoc in ipairs(npcPositions) do npcUid = getTopCreature(npcLoc.position).uid doCreatureSetLookDirection(npcUid, npcLoc.direction) end return true end adicione no seu globalevents.xml <globalevent name="npc positioning" event="script" type="start" value="npcpositioning.lua"/> Créditos: @Pteryx
-
Poderia Editar Meu Nome?
Pode ser até que eu esteja errado, mas Membro com a sigla Troll.. Acho que tu não vai ter o seu nome alterado não rs!
- Elime's NPC Editor
-
(Resolvido)Alguém já se deparou com esse erro?
Desculpe Reviver o tópico, eu estava navegando pelos meus conteúdos e lembrei que esqueci de postar a resolução do problema. Sugiro que sempre tenha um backup da sua schema.sql salvo. Também é recomendável que ela esteja crua (sem players, accounts ou outras linhas adicionadas). Drope sua tabela e importe-a novamente que o problema estará resolvido. Obrigado a todos que de alguma forma tentou me ajudar
- [LUA] onUse Vial > trough e não trough > vial
-
[LUA] onUse Vial > trough e não trough > vial
Bom dia galera, Estou com um problemão que o dia todo não estou conseguindo resolver. Meu script container está funcionando, porém quando clico com direito na potion e esquerdo em algum container simplesmente não funciona. A única maneira que funciona é clicando com o direito no container e esquerdo na poção. Está invertido. Já tentei de todas as formas possíveis e não encontro solução, ficaria grato se alguém puder me ajudar nessa. Uso a versao TFS 0.4 containers.lua local DISTILLERY = {5513, 5514, 5469, 5470} local ITEM_RUM_FLASK = 5553 local ITEM_POOL = 2016 local TYPE_EMPTY = 0 local TYPE_WATER = 1 local TYPE_BLOOD = 2 local TYPE_BEER = 3 local TYPE_SLIME = 4 local TYPE_MANA_FLUID = 7 local TYPE_LIFE_FLUID = 10 local TYPE_OIL = 11 local TYPE_WINE = 15 local TYPE_MUD = 19 local TYPE_LAVA = 26 local TYPE_RUM = 27 local TYPE_SWAMP = 28 local TYPE_MEAD = 43 local oilLamps = {[2046] = 2044} local casks = {[1771] = TYPE_WATER, [1772] = TYPE_BEER, [1773] = TYPE_WINE, [1369] = TYPE_WATER, [1368] = TYPE_WATER} local alcoholDrinks = {TYPE_BEER, TYPE_WINE, TYPE_RUM, TYPE_MEAD} local poisonDrinks = {TYPE_SLIME, TYPE_SWAMP} local drunk = createConditionObject(CONDITION_DRUNK) setConditionParam(drunk, CONDITION_PARAM_TICKS, 60000) local poison = createConditionObject(CONDITION_POISON) setConditionParam(poison, CONDITION_PARAM_DELAYED, true) -- Condition will delay the first damage from when it's added setConditionParam(poison, CONDITION_PARAM_MINVALUE, -50) -- Minimum damage the condition can do at total setConditionParam(poison, CONDITION_PARAM_MAXVALUE, -120) -- Maximum damage setConditionParam(poison, CONDITION_PARAM_STARTVALUE, -5) -- The damage the condition will do on the first hit setConditionParam(poison, CONDITION_PARAM_TICKINTERVAL, 4000) -- Delay between damages setConditionParam(poison, CONDITION_PARAM_FORCEUPDATE, true) -- Re-update condition when adding it(ie. min/max value) local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) if(itemEx.uid == cid) then if(item.type == TYPE_EMPTY) then doPlayerSendCancel(cid, "It is empty.") return true end if(item.type == TYPE_MANA_FLUID) then if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return true end if(not doPlayerAddMana(cid, math.random(80, 160))) then return false end doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doSendMagicEffect(toPosition, CONST_ME_MAGIC_BLUE) doAddCondition(cid, exhaust) elseif(item.type == TYPE_LIFE_FLUID) then if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return true end if(not doCreatureAddHealth(cid, math.random(40, 75))) then return false end doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doSendMagicEffect(toPosition, CONST_ME_MAGIC_BLUE) doAddCondition(cid, exhaust) elseif(isInArray(alcoholDrinks, item.type)) then if(not doTargetCombatCondition(0, cid, drunk, CONST_ME_NONE)) then return false end doCreatureSay(cid, "Aaah...", TALKTYPE_ORANGE_1) elseif(isInArray(poisonDrinks, item.type)) then if(not doTargetCombatCondition(0, cid, poison, CONST_ME_NONE)) then return false end doCreatureSay(cid, "Urgh!", TALKTYPE_ORANGE_1) else doCreatureSay(cid, "Gulp.", TALKTYPE_ORANGE_1) end doChangeTypeItem(item.uid, TYPE_EMPTY) return true end if(not isCreature(itemEx.uid)) then if(item.type == TYPE_EMPTY) then if(item.itemid == ITEM_RUM_FLASK and isInArray(DISTILLERY, itemEx.itemid)) then if(itemEx.actionid == 100) then doItemEraseAttribute(itemEx.uid, "description") doItemEraseAttribute(itemEx.uid, "aid") doChangeTypeItem(item.uid, TYPE_RUM) else doPlayerSendCancel(cid, "You have to process the bunch into the distillery to get rum.") end return true end if(isItemFluidContainer(itemEx.itemid) and itemEx.type ~= TYPE_EMPTY) then doChangeTypeItem(item.uid, itemEx.type) doChangeTypeItem(itemEx.uid, TYPE_EMPTY) return true end if(casks[itemEx.itemid] ~= nil) then doChangeTypeItem(item.uid, casks[itemEx.itemid]) return true end local fluidEx = getFluidSourceType(itemEx.itemid) if(fluidEx ~= false) then doChangeTypeItem(item.uid, fluidEx) return true end doPlayerSendCancel(cid, "It is empty.") return true end if(item.type == TYPE_OIL and oilLamps[itemEx.itemid] ~= nil) then doTransformItem(itemEx.uid, oilLamps[itemEx.itemid]) doChangeTypeItem(item.uid, TYPE_NONE) return true end if(hasProperty(itemEx.uid, CONST_PROP_BLOCKSOLID)) then return false end end doDecayItem(doCreateItem(ITEM_POOL, item.type, toPosition)) doChangeTypeItem(item.uid, TYPE_EMPTY) return true end actions.xml <action itemid="1775" event="script" value="liquids/containers.lua"/> <action itemid="2005" event="script" value="liquids/containers.lua"/> <action itemid="2006" event="script" value="liquids/containers.lua"/> <action itemid="2007" event="script" value="liquids/containers.lua"/> <action itemid="2008" event="script" value="liquids/containers.lua"/> <action itemid="2009" event="script" value="liquids/containers.lua"/> <action itemid="2011" event="script" value="liquids/containers.lua"/> <action itemid="2012" event="script" value="liquids/containers.lua"/> <action itemid="2013" event="script" value="liquids/containers.lua"/> <action itemid="2014" event="script" value="liquids/containers.lua"/> <action itemid="2015" event="script" value="liquids/containers.lua"/> <action itemid="2023" event="script" value="liquids/containers.lua"/> <action itemid="2031" event="script" value="liquids/containers.lua"/> <action itemid="2032" event="script" value="liquids/containers.lua"/> <action itemid="2033" event="script" value="liquids/containers.lua"/> <action itemid="2034" event="script" value="liquids/containers.lua"/> <action itemid="2562" event="script" value="liquids/containers.lua"/> <action itemid="2574" event="script" value="liquids/containers.lua"/> <action itemid="2575" event="script" value="liquids/containers.lua"/> <action itemid="2576" event="script" value="liquids/containers.lua"/> <action itemid="2577" event="script" value="liquids/containers.lua"/> <action itemid="3941" event="script" value="liquids/containers.lua"/> <action itemid="3942" event="script" value="liquids/containers.lua"/> <action itemid="5553" event="script" value="liquids/containers.lua"/> <action itemid="10150" event="script" value="liquids/containers.lua"/> Agradeço desde agora
-
[LUA] Function onUse
@zipter98 poderia por gentileza mandar uma PM pra ti? Galera, consegui sanar a minha dúvida!! Fico imensamente agradecimento pela ajuda e o tempo perdido de todos. Espero um dia poder contribuir com vocês!! O segredo estava em: if(isInArray(c.actionId, itemEx.actionid)) Grande abraço Moderação, podem fechar o tópico por gentileza
-
[LUA] Function onUse
ainda não.. o problema está exatamente aqui if item.aid == c.actionId then Conhece a função isInArray(c.item, itemEx.itemid)? Por ela eu consigo fazer funcionar, mas é aquilo que disse, não consigo limitar a ação apenas para o actionid definido fazendo assim com que outros itens pelo mapa executa a mesma ação
-
[LUA] Function onUse
Eu consegui de uma outra maneira, porém tenho que descartar a verificação do actionid.. Ele não funciona de jeito nenhum. Isso faz com que qualquer caldeirão (item 3695) que ele usar no mapa ative a quest. local c = { actionId = 18898, storage = 1889, item = {3695, 3696, 3694, 3693}, storageValueToCheckFor = 28 } function onUse(cid, item, fromPosition, itemEx, toPosition) --if item.aid == c.actionId then if(isInArray(c.item, itemEx.itemid)) then if getPlayerStorageValue(cid, c.storage) == c.storageValueToCheckFor then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_EXPLOSIONHIT) setPlayerStorageValue(cid, c.storage, c.storageValueToCheckFor + 1) doPlayerRemoveItem(cid, 7488, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You arent a inquisition member") end end --end return true end Pensei em mudar de: <action itemid="7488" event="script" value="quests/bigboil.lua" /> pra: <action actionid="18898" event="script" value="quests/bigboil.lua" /> mas dai o bigboil.lua não saberia como iria ficar deveria setar a potion a ser usada dentro do código
-
[LUA] Function onUse
Removi a linha e nada