

Refe
Conde-
Total de itens
645 -
Registro em
-
Última visita
-
Dias Ganhos
10
Tudo que Refe postou
-
poketibia [Encerrado] [Duvida] Como passar OTC para OLD Client
tópico respondeu ao jose rroberto de Refe em Tópicos Sem Resposta
Não suporta OTC ? -
Vou refazer function onUse(cid, item, fromPos, item2, toPos) local item1 = xxx -- 30 % de chance local item2 = xxx -- 60 % de chance local item3 = xxx -- 10% de chance local sto = 255465 local tempo = 24*60*60 -- Em segundos if os.time()-getPlayerStorageValue(cid, sto) > tempo then if math.random(1,10) == 1 or math.random(1,10) == 2 or math.random(1,10) == 3 then doPlayerAddItem(cid, item1) setPlayerStorageValue(cid, sto, os.time()) elseif math.random(1,10) == 4 or math.random(1,10) == 5 or math.random(1,10) == 6 or math.random(1,10) == 7 or math.random(1,10) == 8 or math.random(1,10) == 9 then doPlayerAddItem(cid, item2) setPlayerStorageValue(cid, sto, os.time()) elseif math.random(1,10) == 10 then doPlayerAddItem(cid, item3) setPlayerStorageValue(cid, sto, os.time()) else return doPlayerSendCancel(cid, "Voce precisa esperar 1 Dia fazer a quest!") end return true end tá ai
-
poketibia [Encerrado] [Duvida] Como passar OTC para OLD Client
tópico respondeu ao jose rroberto de Refe em Tópicos Sem Resposta
Então ele tinha mais sprites que o sem ser estendido aceita... -
poketibia [Encerrado] [Duvida] Como passar OTC para OLD Client
tópico respondeu ao jose rroberto de Refe em Tópicos Sem Resposta
Você baixou o client já estendido ? -
poketibia [Encerrado] [Duvida] Como passar OTC para OLD Client
tópico respondeu ao jose rroberto de Refe em Tópicos Sem Resposta
Pode enviar um print ? -
Tô sem servidor aqui para testar... mas tenta: function onLogout(cid, position) F = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y-2, z = getCreaturePosition(cid).z} -- frente /\ D = {x = getCreaturePosition(cid).x+2, y = getCreaturePosition(cid).y+1, z = getCreaturePosition(cid).z} -- direita E = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y+2, z = getCreaturePosition(cid).z} -- direita T = {x = getCreaturePosition(cid).x-2, y = getCreaturePosition(cid).y-1, z = getCreaturePosition(cid).z} -- tras doRemoveCreature(getThingfromPos(F).uid) doRemoveCreature(getThingfromPos(D).uid) doRemoveCreature(getThingfromPos(E).uid) doRemoveCreature(getThingfromPos(T).uid) end
-
No Forum tem o tutorial do Zipter sobre mega stone se não me engano
-
Um minuto. Em Movements: function onStepIn(cid, item, position, fromPosition) local colocar = { [19445] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y-1, z = getCreaturePosition(cid).z, stackpos = 253}, [19446] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y+1, z = getCreaturePosition(cid).z, stackpos = 253}, [19447] = {x = getCreaturePosition(cid).x-1, y = getCreaturePosition(cid).y-1, z = getCreaturePosition(cid).z, stackpos = 253}, [19448] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y+1, z = getCreaturePosition(cid).z, stackpos = 253} } local e = colocar[item.actionid] local get = getThingfromPos(e) if get.itemid < 1 then addEvent(doCreateMonster,1*1-1,"Training Monk", e) doSendMagicEffect(e, CONST_ME_TELEPORT) setPlayerStorageValue(cid, 5665454,1) end return true end function onStepOut(cid, item, position, fromPosition) local retirar = { [19445] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y-2, z = getCreaturePosition(cid).z, stackpos = 253}, -- frente /\ [19446] = {x = getCreaturePosition(cid).x+2, y = getCreaturePosition(cid).y+1, z = getCreaturePosition(cid).z, stackpos = 253}, -- direita [19447] = {x = getCreaturePosition(cid).x-2, y = getCreaturePosition(cid).y-1, z = getCreaturePosition(cid).z, stackpos = 253}, -- tras [19448] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y+2, z = getCreaturePosition(cid).z, stackpos = 253} } local e = retirar[item.actionid] local remove= getThingfromPos(e) if remove.itemid > -0 then doSendMagicEffect(e, CONST_ME_POFF) doRemoveCreature(getThingfromPos(e).uid) setPlayerStorageValue(cid, 5665454,0) end return true end Em Creaturescripts: function onLogout(cid) local retirar = { [19445] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y-2, z = getCreaturePosition(cid).z, stackpos = 253}, -- frente /\ [19446] = {x = getCreaturePosition(cid).x+2, y = getCreaturePosition(cid).y+1, z = getCreaturePosition(cid).z, stackpos = 253}, -- direita [19447] = {x = getCreaturePosition(cid).x-2, y = getCreaturePosition(cid).y-1, z = getCreaturePosition(cid).z, stackpos = 253}, -- tras [19448] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y+2, z = getCreaturePosition(cid).z, stackpos = 253} } local e = retirar[item.actionid] local remove= getThingfromPos(e) if getCreatureStorage(cid, 5665454) == 0 then else if remove.itemid > -0 then doSendMagicEffect(e, CONST_ME_POFF) doRemoveCreature(getThingfromPos(e).uid) end return true end end Tag creaturescripts: <event type="logout" name="LogoutTrainer" event="script" value="arquivo.lua"/> Em login.lua (creaturescripts/script), Põe perto das parecidas: registerCreatureEvent(cid, "LogoutTrainer")
-
Bom, Hoje vou ensinar a criar novas Escadas, só testei em servidores 8.54, 8.60, porém estarei dando suporte para outras versões caso venha a ocorrer erros Vamos lá, Em Movements/Scripts crie um arquivo chamado escadas.lua E Dentro cole: function onStepIn(cid, item, frompos, item2, topos) if not isPlayer(cid) then return true end local norte = {xxx, xxx, xxx, xxx} --Ecadas viradas para o Norte local sul = {xxx, xxx, xxx, xxx} -- Escadas viradas para o sul local leste = {xxx, xxx, xxx, xxx} -- Escadas viradas para o leste local oeste = {xxx, xxx, xxx, xxx} -- Escadas viradas para o Oeste local descer = {xxx, xxx, xxx, xxx} -- Escadas para descer -- NORTH if item2.itemid == [norte] then playerpos = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y-1, z=getCreaturePosition(cid).z-1} -- SOUTH elseif item2.itemid == [sul] then playerpos = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y+1, z=getCreaturePosition(cid).z-1} -- EAST elseif item2.itemid == [leste] then playerpos = {x=getCreaturePosition(cid).x+1, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z-1} -- WEST elseif item2.itemid == [oeste] then playerpos = {x=getCreaturePosition(cid).x-1, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z-1} --DOWN elseif item2.itemid == [descer] then playerpos = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z+1} end Bom, no próprio Script ensina como adiciona as escadas. Agora em Movements/movements.xml Adicione a tag: <movevent type="StepIn" itemid="item1;item2;item3" event="script" value="escadas.lua"/> E Pronto, já tem as novas escadas no seu Servidor Se for adicionar as escadas no client, elas devem ter as propriedades: Não pode Ser Movido
-
function onUse(cid, item, fromPos, item2, toPos) local premios = {xxx, xxx, xxx, xxx} local sto = 255465 local tempo = 24*60*60 -- Em segundos if os.time()-getPlayerStorageValue(cid, sto) > tempo then local randomChance = math.random(1, #premios) doPlayerAddItem(cid, premios[randomChance]) setPlayerStorageValue(cid, sto, os.time()) else return doPlayerSendCancel(cid, "Voce precisa esperar 1 Dia fazer a quest!") end return true end
-
function onStepIn(cid, item, position, fromPosition) local colocar = { [19445] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y-1, z = getCreaturePosition(cid).z, stackpos = 253}, [19446] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y+1, z = getCreaturePosition(cid).z, stackpos = 253}, [19447] = {x = getCreaturePosition(cid).x-1, y = getCreaturePosition(cid).y-1, z = getCreaturePosition(cid).z, stackpos = 253}, [19448] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y+1, z = getCreaturePosition(cid).z, stackpos = 253} } local e = colocar[item.actionid] local get = getThingfromPos(e) if get.itemid < 1 then addEvent(doCreateMonster,1*1-1,"Training Monk", e) doSendMagicEffect(e, CONST_ME_TELEPORT) setPlayerStorageValue(cid, 5665454,1) end return true end function onLogout(cid) local retirar = { [19445] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y-2, z = getCreaturePosition(cid).z, stackpos = 253}, -- frente /\ [19446] = {x = getCreaturePosition(cid).x+2, y = getCreaturePosition(cid).y+1, z = getCreaturePosition(cid).z, stackpos = 253}, -- direita [19447] = {x = getCreaturePosition(cid).x-2, y = getCreaturePosition(cid).y-1, z = getCreaturePosition(cid).z, stackpos = 253}, -- tras [19448] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y+2, z = getCreaturePosition(cid).z, stackpos = 253} } local e = retirar[item.actionid] local remove= getThingfromPos(e) if getCreatureStorage(cid, 5665454) == 0 then else if remove.itemid > -0 then doSendMagicEffect(e, CONST_ME_POFF) doRemoveCreature(getThingfromPos(e).uid) end return true end end function onStepOut(cid, item, position, fromPosition) local retirar = { [19445] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y-2, z = getCreaturePosition(cid).z, stackpos = 253}, -- frente /\ [19446] = {x = getCreaturePosition(cid).x+2, y = getCreaturePosition(cid).y+1, z = getCreaturePosition(cid).z, stackpos = 253}, -- direita [19447] = {x = getCreaturePosition(cid).x-2, y = getCreaturePosition(cid).y-1, z = getCreaturePosition(cid).z, stackpos = 253}, -- tras [19448] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y+2, z = getCreaturePosition(cid).z, stackpos = 253} } local e = retirar[item.actionid] local remove= getThingfromPos(e) if remove.itemid > -0 then doSendMagicEffect(e, CONST_ME_POFF) doRemoveCreature(getThingfromPos(e).uid) setPlayerStorageValue(cid, 5665454,0) end return true end
-
Sei sim, mas tinha o respawn de uma moto em um prédio lá :v
-
Segue o tutorial do Zipter. http://www.xtibia.com/forum/topic/235005-mega-evolution-system-pxg/
-
Tenta: function onStepIn(cid, item, position, fromPosition) local colocar = { [19445] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y-1, z = getCreaturePosition(cid).z, stackpos = 253}, [19446] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y+1, z = getCreaturePosition(cid).z, stackpos = 253}, [19447] = {x = getCreaturePosition(cid).x-1, y = getCreaturePosition(cid).y-1, z = getCreaturePosition(cid).z, stackpos = 253}, [19448] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y+1, z = getCreaturePosition(cid).z, stackpos = 253} } local e = colocar[item.actionid] local get = getThingfromPos(e) if get.itemid < 1 then addEvent(doCreateMonster,1*1-1,"Training Monk", e) doSendMagicEffect(e, CONST_ME_TELEPORT) setPlayerStorageValue(cid, 5665454,1) end return true function onLogout(cid) local retirar = { [19445] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y-2, z = getCreaturePosition(cid).z, stackpos = 253}, -- frente /\ [19446] = {x = getCreaturePosition(cid).x+2, y = getCreaturePosition(cid).y+1, z = getCreaturePosition(cid).z, stackpos = 253}, -- direita [19447] = {x = getCreaturePosition(cid).x-2, y = getCreaturePosition(cid).y-1, z = getCreaturePosition(cid).z, stackpos = 253}, -- tras [19448] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y+2, z = getCreaturePosition(cid).z, stackpos = 253} } local e = retirar[item.actionid] local remove= getThingfromPos(e) if getCreatureStorage(cid, 5665454) == 0 then else if remove.itemid > -0 then doSendMagicEffect(e, CONST_ME_POFF) doRemoveCreature(getThingfromPos(e).uid) end return true end end end function onStepOut(cid, item, position, fromPosition) local retirar = { [19445] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y-2, z = getCreaturePosition(cid).z, stackpos = 253}, -- frente /\ [19446] = {x = getCreaturePosition(cid).x+2, y = getCreaturePosition(cid).y+1, z = getCreaturePosition(cid).z, stackpos = 253}, -- direita [19447] = {x = getCreaturePosition(cid).x-2, y = getCreaturePosition(cid).y-1, z = getCreaturePosition(cid).z, stackpos = 253}, -- tras [19448] = {x = getCreaturePosition(cid).x+1, y = getCreaturePosition(cid).y+2, z = getCreaturePosition(cid).z, stackpos = 253} } local e = retirar[item.actionid] local remove= getThingfromPos(e) if remove.itemid > -0 then doSendMagicEffect(e, CONST_ME_POFF) doRemoveCreature(getThingfromPos(e).uid) setPlayerStorageValue(cid, 5665454,0) end return true end
-
Tenta aí function onUse(cid, item, fromPos, item2, toPos) local premios = {xxx, xxx, xxx, xxx} local sto = 255465 if getCreatureStorage(cid, stp) == 0 then doPlayerSendCancel(cid, "Você não pode fazer a quest!") else local randomChance = math.random(1, #premios) doPlayerAddItem(cid, premios[randomChance]) setPlayerStorageValue(cid, sto, 1) end return true end
-
pos = {x = X, y = Y, z = Z} -- XYZ do NPC nome = "" -- Nome do NPC function onStepIn(cid, position) doCreateNpc(nome, pos) end function onStepOut(cid, position) rd = getTopCreature(pos) if rd > 0 then doRemoveCreature(rd) end Deve dar certo
-
http://www.xtibia.com/forum/topic/234156-novas-sprites-nature-pxg/
-
[Show-Off Pokémon] Minha nova galeria .
tópico respondeu ao carlos fabian de Refe em Exposições (Show Off)
Se não muito parecidos
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.