749676
-
Total de itens
22 -
Registro em
-
Última visita
Histórico de Reputação
-
749676 deu reputação a Vodkart em [Pedido] Tile Que Remove Storage
function onStepIn(cid, item, position, fromPosition) return setPlayerStorageValue(cid, 9000, -1) end
-
-
749676 deu reputação a MatheusGlad em Ajuda Alavanca.
smp_id = 7589 -- Item a ser vendido custosmp_id = 1600 -- Valor quant = 100 function onUse(cid, item, fromPosition, itemEx, toPosition) local name = getItemNameById(smp_id) if doPlayerRemoveMoney(cid, custosmp_id) then doPlayerAddItem(cid, smp_id, quant) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have purchased " .. quant .. " ".. name .."s for ".. custosmp_id .." gold.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You need ".. custosmp_id .." gold coins for ".. quant .. " ".. name .."s.") end end
-
749676 deu reputação a Vodkart em Vodkart Ou Alguem Q Manje Tbm, Ajuda Ake !
function onStepIn(cid, item, position, fromPosition) local QuestStorage,MsgDeny = 354,"You cannot pass." if getPlayerStorageValue(cid, QuestStorage) <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendCancel(cid, MsgDeny) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return TRUE end return TRUE end
-
749676 deu reputação a jedian1 em Help Ake !
Não vi problemas no script, apenas o erro de criar uma função para colocar apenas uma função .-.
tente assim:
local config = { time = 60, -- tempo em segundos pos = {x=284,y=443,z=11}, -- posição da parede que ira sumir paredeid = 3608 -- id da parede } function onDeath(cid, corpse, killer) local parede = getTileItemById(config.pos, config.paredeid) if parede then doRemoveItem(parede.uid, 1) doCreatureSay(cid, "A pedra Será criada Novamente em "..config.time.." segundos.", TALKTYPE_ORANGE_1) addEvent(doCreateItem, config.time*1000, config.paredeid, 1, config.pos) end return true end
-
749676 recebeu reputação de tuycb em Toque Especial E Simples Para Seu Ot! Confiram!
nossa ja vi post desorganizado mais esse vence
-
-
749676 deu reputação a galaverna em Como Poe Comando De !aol
crie um talaction/scripts .lua chamado aol
nele coloque :
function onSay(cid, words, param) if getPlayerItemCount(cid,2160) >=10 then doPlayerAddItem(cid,2173) doPlayerRemoveItem(cid,2160,10) else doPlayerSendCancel(cid,"Você não tem dinheiro suficiente") end end
e no talkactions.xml é só voce colocar esta tag
<talkaction words="!aol" event="script" value="aol.lua"/>
ajudei ?? rep+
Para trocar o valor da aol troque aqui : if getPlayerItemCount(cid,2160) >=10 then
2160 = id de um dinheiro , nao sei ao certo qual é, e o >=10 é a quantidade maior ou igual a 10 é so modificar aí!! AJUDEI?? REP+ POR FAVOR
-
749676 deu reputação a galaverna em Alguem Que Relamente Entenda De Scrit
sei la tenta assim :
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 npcHandler:setMessage(MESSAGE_GREET, "Olá, eu sou a {Ministra dos Carimbos}, como vai?") function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid -- Conversa Jogador/NPC if(msgcontains(msg, 'ministra dos carimbos')) then selfSay('Eu faço parte das missões do Ministério, aposto que você tem algo pra {entregar} a mim.',cid) talkState[talkUser] = 1 -- Confirmação da Compra elseif(msgcontains(msg, 'entregar') and talkState[talkUser] == 1 and getPlayerStorageValue(cid,valueid) ) then if doPlayerRemoveItem(cid,13584,1) then if getPlayerStorageValue(cid, 5668, 1) then selfSay('Muito bem, quero que vc entregue essa pena de tinta para o carteiro Bruno, da city mais gelada da redondeza.', cid) doPlayerAddItem(cid, 13594, 1) talkState[talkUser] = 0 else selfSay('Poxa, ta me achando com cara de idiota? trate de arranjar a carta, senão não vai continuar com as missões.', cid) talkState[talkUser] = 0 end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
Não esqueça de trocar ali no código o storage value o value
Se não for avisa que eu do um jeito
-
749676 recebeu reputação de xupael em Alguem Que Tenha Experiencia Em Script.
Alguem ai que manje de scrit poderia mi passar o script da desert quest, um script de uma quest q tenha 4 sqm estilo annihi so q cada sqm tem a sua voc, druid, kina, pally e sorc.. eu até achei um script desse aki no xtibia mais não tinha o sistema de remover o item igual no global, que precisa levar maçã, crossbow, sword e book e por atras do sqm.
-
749676 deu reputação a MatheusGlad em Alguem Que Entenda De Script Ajuda Ake!
Testa ai:
function removeAll(configs, leverpos, tp, water, leveroff, leveron) for i,x in pairs(configs) do for s, t in pairs(x) do for l = 0,255 do if isPlayer(getThingFromPos({x=t.x, y=t.y, z=t.z, stackpos = l}).uid) then player = {x=t.x, y=t.y, z=t.z, stackpos = l} break end end end end if player then doTeleportThing(getThingFromPos(player).uid, tp) end for i,x in pairs(configs) do for s, t in pairs(x) do for l = 0,255 do t.stackpos = l if getThingFromPos(t).itemid == i then if l == 0 then doTransformItem(getThingFromPos(t).uid, water) else doRemoveItem(getThingFromPos(t).uid) end end end end end for l = 0,255 do leverpos.stackpos = l if getThingFromPos(leverpos).itemid == leveron then doTransformItem(getThingFromPos(leverpos).uid, leveroff) break end end end function onUse(cid, item, fromPosition, itemEx, toPosition) local configs = { [1284] = {{x=56, y=60, z=7},{x=56, y=61, z=7},{x=56, y=62, z=7},{x=56, y=63, z=7},{x=56, y=64, z=7},{x=56, y=65, z=7},{x=56, y=66, z=7},{x=55, y=60, z=7},{x=55, y=61, z=7},{x=55, y=62, z=7},{x=55, y=63, z=7},{x=55, y=64, z=7},{x=55, y=65, z=7},{x=55, y=66, z=7},{x=54, y=60, z=7},{x=54, y=61, z=7},{x=54, y=62, z=7},{x=54, y=63, z=7},{x=54, y=64, z=7},{x=54, y=65, z=7},{x=54, y=66, z=7}}, [2742] = {{x=55, y=62, z=7}}, [1543] = {{x=54, y=60, z=7},{x=54, y=61, z=7},{x=54, y=62, z=7},{x=54, y=63, z=7},{x=54, y=64, z=7},{x=54, y=65, z=7},{x=54, y=66, z=7},{x=56, y=60, z=7},{x=56, y=61, z=7},{x=56, y=62, z=7},{x=56, y=63, z=7},{x=56, y=64, z=7},{x=56, y=65, z=7},{x=56, y=66, z=7}} } local firstpos = {x=56,y=67,z=7} -- Posiçao do lado inicial da ponte local waterid = 4612 -- Item ID da agua. local time = 15 -- Em segundos local leveroff, leveron = 1945, 1946 if item.itemid == leveroff then for i,x in pairs(configs) do for s, t in pairs(x) do doCreateItem(i, t) doTransformItem(item.uid, leveron) end end addEvent(removeAll, time*1000, configs, getThingPos(item.uid), firstpos, waterid, leveroff, leveron) end return TRUE end
Nao se esqueça de configurar essa linha:
local firstpos = {x=000,y=000,z=000} -- Posiçao do lado inicial da ponte
Testei aqui e funcionou perfeitamente.
-
-
-
749676 recebeu reputação de luan12 em Preciso De Um Script Fast.
Ola, gente ate agora so vi nego burro, ninguem monto um script que funfa de alavanca q remove pedra e dps de um tempo q pedra volte aonde estava sozinha.
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.