-
Total de itens
1233 -
Registro em
-
Última visita
-
Dias Ganhos
7
Tudo que Lumus postou
-
Não, não, eu testei aqui e funcionou da mesma forma. 13:29 ADM Master Viciado [41578: hi 13:29 Dona dos Portais: Como vai? ADM Master Viciado, Você deseja uma missao? 13:29 ADM Master Viciado [41578: missao 13:29 Dona dos Portais: Muito obrigado, como recompensa aqui está sua experiência por ter me ajudado! 13:29 ADM Master Viciado [41585: missao 13:29 Dona dos Portais: Você já me ajudou, sou grato por isso!
-
Tenta: if item.itemid == xxxx then elseif item2.itemid == xxxx or item2.itemid == xxxx or item2.itemid == xxxx or item2.itemid == xxxx then doSendMagicEffect(frompos, 5) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você Fabricou Uma MP.") doRemoveItem(xxxx,2) doPlayerAddItem(cid,xxxx,1) else doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você Não Possui 2 YP na Bolsa.") end Esse seu provavelmente não vai funcionar porque tá faltando um end ai, se o de cima não funcionar tenta com esse: if item.itemid == xxxx then if item2.itemid == xxxx or item2.itemid == xxxx or item2.itemid == xxxx or item2.itemid == xxxx then doSendMagicEffect(frompos, 5) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você Fabricou Uma MP.") doRemoveItem(xxxx,2) doPlayerAddItem(cid,xxxx,1) else doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você Não Possui 2 YP na Bolsa.") end end Sou novato em script pode ser que não funcione =/ PS: A identação do xrtibia ta bugando meu código todo --'
- 11 respostas
-
- opnião de scripters
- resolvido
- (e 1 mais)
-
@Edit Depois de quebrar a cabeça aqui dar reload 500000x agora deu certíssimo! 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 -----------#Início das configurações#------------ local stg = 14278 -- storage da quest, para não fazer 2x. local item1 = 2160 -- id do item local qtd = 3 -- quantidade a ser removida. local level = 7 -- quantidade de level a dar ao jogador. local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local msg = string.lower(msg) -----------#Fim das configurações#------------ if(msgcontains(msg, 'missao')) and getPlayerStorageValue(cid, stg) >= 1 then selfSay('Você já me ajudou, sou grato por isso!', cid) talkState[talkUser] = 0 end if(msgcontains(msg, 'missao')) and getPlayerStorageValue(cid, stg) <= 0 then if (getPlayerItemCount(cid, item1) == qtd) then selfSay('Você não tem '..qtd..' {'..getItemNameById(item1)..'s}. Volte aqui quando tiver', cid) elseif doPlayerRemoveItem(cid, item1, qtd) then setPlayerStorageValue(cid, stg, 1) selfSay('Muito obrigado, como recompensa aqui está sua experiência por ter me ajudado!', cid) doPlayerAddLevel(cid, level) end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
Sim testei e aqui ele está respondendo... estranho vou verificar novamente, peço que aguarde. Agora vai funcionar, achei o erro: 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 stg = 1458 local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid if(msgcontains(msg, 'missao')) and getPlayerStorageValue(cid, stg) >= 1 then selfSay('Você já me ajudou.', cid) talkState[talkUser] = 0 end if(msgcontains(msg, 'missao')) and getPlayerStorageValue(cid, stg) <= 0 then if getPlayerItemCount(cid, item1, qtd) then setPlayerStorageValue(cid, stg, 1) selfSay('Muito obrigado, como recompensa aqui está sua experiência por ter me ajudado!', cid) doPlayerAddLevel(cid, level) else selfSay('Você não tem '..qtd..' {"..getItemNameById(item1).."s}. Volte aqui quando tiver', cid) end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
Já testou o que coloquei novamente?
-
Editei meu post, veja se funciona agora.
-
pedido [Encerrado] Ajuda Sistema Akatsuki
tópico respondeu ao wesleybeek de Lumus em Tópicos Sem Resposta
Área incorreta o certo seria em pedidos de servidores derivados. Reportado para que movam. Abraços!- 8 respostas
-
- sistema akatsuki nto shinobi
- resolvido
- (e 2 mais)
-
eita, nem vi brigadãaao!
-
Basta adicionar coldoown na spell, use esta tag no seu spells.xml <instant name="Sharpshooter" words="utito tempo san" lvl="60" mana="450" prem="1" aggressive="0" selftarget="1" exhaustion="2000" groups="2,10000;3,10000" icon="135" needlearn="0" event="script" value="support/sharpshooter.lua">
-
missao.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 -----------#Início das configurações#------------ local stg = 1425 -- storage da quest, para não fazer 2x. local item1 = 9971 -- id do item local qtd = 3 -- quantidade a ser removida. local level = 7 -- quantidade de level a dar ao jogador. local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local msg = string.lower(msg) -----------#Fim das configurações#------------ if(msgcontains(msg, 'missao')) and getPlayerStorageValue(cid, stg) >= 1 then selfSay('Você já me ajudou, sou grato por isso!', cid) talkState[talkUser] = 0 end if(msgcontains(msg, 'missao')) and getPlayerStorageValue(cid, stg) <= 0 then if getPlayerItemCount(cid, item1, qtd) then setPlayerStorageValue(cid, stg, 1) selfSay('Muito obrigado, como recompensa aqui está sua experiência por ter me ajudado!', cid) doPlayerAddLevel(cid, level) else selfSay('Você não tem '..qtd..' {"..getItemNameById(item1).."s}. Volte aqui quando tiver', cid) end end return true end XML: <?xml version="1.0" encoding="ISO-8859-1"?> <npc name="Oclahoma" script="data/npc/scripts/missao.lua" walkinterval="3000" floorchange="0"> <health now="100" max="100"/> <look type="132" head="20" body="39" legs="45" feet="7" addons="0"/> <parameters> <parameter key="message_greet" value="Olá |PLAYERNAME|. Eu tenho uma {missão} para você." /> <parameter key="message_farewell" value="Até mais, |PLAYERNAME|!"/> </parameters> </npc>
-
Veja se funciona: function onStepIn(cid, item, frompos, item2, topos) local MyGuild = getPlayerGuildName(cid) if not HaveGuild(cid) then return doPlayerSendTextMessage(cid,22,"Sorry, you're not in a guild.") elseif not HaveAcess(MyGuild) then return doPlayerSendTextMessage(cid,22,"Your guild no has access to this area.") end doTeleportThing(cid, topos, TRUE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Welcome,The access of your guild in this area ends in "..getAcessDate(getGuildWinnerName())) return true end
-
Tó: local MIN = 950 local MAX = 1050 local EMPTY_POTION = 7635 local RANGE = -1 local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) if isPlayer(itemEx.uid) == FALSE then return FALSE end if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end if(RANGE > 0 and cid ~= itemEx.uid and getDistanceBetween(getThingPosition(cid), getThingPosition(itemEx.uid)) > RANGE) then return FALSE end if doPlayerAddMana(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then return FALSE end doAddCondition(cid, exhaust) doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) doCreatureSay(itemEx.uid, "Aaaah!!!", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) pot_count = getPlayerItemCount(cid, EMPTY_POTION) doPlayerRemoveItem(cid, EMPTY_POTION, pot_count) return TRUE end
-
pedido Script que limpa storage para poder refazer quest
pergunta respondeu ao kleitonalan321 de Lumus em Scripts
Caso queira que ele seja teleportado para uma X posição, use este: function onStepIn(cid, item, position, fromPosition) local storage = xxx --- Storage do baú local pos = {x=100, y=100, z=7} if not isPlayer(cid) then return false end doTeleportThing(cid, pos) setPlayerStorageValue(cid, storage, -1) return true end créditos do usuário acima.- 7 respostas
-
- script que limpa storage para
- resolvido
- (e 1 mais)
-
[Encerrado] Level system como modificar para max level no poke 1000
tópico respondeu ao LeoTK de Lumus em Tópicos Sem Resposta
Seção errada amigo. Reportado para que movam. -
O fórum bugou a fala... Tipo ele não aparece no rme mas vai aparecer ingame normalmente Reportado para que movam.
-
dúvida [Encerrado] Comando fechar ot linux
tópico respondeu ao davidjohson de Lumus em Tópicos Sem Resposta
Tem acesso ao servidor pelo client do tibia? -
<p>Então é no seu rme mesmo que não possuí o item configurado.</p> <p> </p> <p>Mas ao colocar ele irá aparecer normalmente in-game.</p>
-
É porque o looktype não é compatível com a versão do seu RME. Ele aparece in-game normalmente?
-
Da algum erro no RME?
-
Qual erro? @Edit Tenta assim: <?xml version="1.0" encoding="UTF-8"?> <monster name="Estatua" nameDescription="a estatua" race="fire" experience="0" speed="0" manacost="0"> <health now="25000" max="25000"/> <look typeex="8635"/> <targetchange interval="5000" chance="8"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="0"/> <flag canpushcreatures="0"/> <flag targetdistance="0"/> <flag staticattack="90"/> <flag runonhealth="10"/> </flags> <attacks> </attacks> <defenses armor="10" defense="10"/> <immunities> <immunity lifedrain="1"/> <immunity paralyze="1"/> <immunity outfit="1"/> <immunity drunk="1"/> <immunity invisible="1"/> <immunity ice="1"/> <immunity fire="1"/> <immunity holy="1"/> <immunity death="1"/> <immunity physical="1"/> <immunity earth="1"/> <immunity energy="1"/> </immunities> <summons maxSummons="3"> <summon name="Vampire" interval="2000" chance="10"/> </summons> <voices interval="5000" chance="10"> <voice sentence="You have disturbed my thoughts!"/> </voices> <loot> </loot> </monster>
-
<?xml version="1.0" encoding="UTF-8"?> <monster name="Estatua" nameDescription="a estatua" race="fire" experience="0" speed="0" manacost="0"> <health now="25000" max="25000"/> <look typeex="9791"/> <targetchange interval="5000" chance="8"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="0"/> <flag canpushcreatures="0"/> <flag targetdistance="0"/> <flag staticattack="90"/> <flag runonhealth="10"/> </flags> <attacks> </attacks> <defenses armor="10" defense="10"/> <immunities> <immunity lifedrain="1"/> <immunity paralyze="1"/> <immunity outfit="1"/> <immunity drunk="1"/> <immunity invisible="1"/> <immunity icePercent="1"/> <immunity firePercent="1"/> <immunity holyPercent="1"/> <immunity deathPercent="1"/> <immunity physicalPercent="1"/> <immunity earthpercent="1"/> <immunity energyPercent="1"/> </immunities> <summons maxSummons="3"> <summon name="Vampire" interval="2000" chance="10"/> </summons> <voices interval="5000" chance="10"> <voice sentence="You have disturbed my thoughts!"/> </voices> <loot> </loot> </monster> tá ai
-
[Encerrado]Formação de Equipe - BIOHAZARD ONLINE
tópico respondeu ao BrenoNeto de Lumus em Formação de Equipes
Estamos a todo vapor, vamos que vamos!!! -
mas já está incluído os 3 pisos, pois a função isInRange possibilita isso. Vod, no caso eu declarei a 3° variável, será que funciona? sou novato em scripting.
-
Só você selecionar o primeiro piso e o terceiro piso que o segundo já ficará automaticamente.
-
pedido Pedido/Erro Script de transformação 8.6
pergunta respondeu ao gustavo3754 de Lumus em Scripts
Se não funcionar o do Profissao quando eu chegar em casa eu tentarei fazer. Acho que dando uma storage e chegando ela no login.lua deve funcionar.
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.