Postado Maio 1, 2015 10 anos Ola Galera Eu Tenho 1 ot de dbz i queria qui esse npc que vai ta enbaixo dessa mensagem , quero que ele possa teleporta as pessoas sem premium e nivel 200 + , Como Consigo faser isso? rep + pra quem me ajudar local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then if getPlayerAccess(cid) >= 1 then selfSay('Ola ' .. getCreatureName(cid) .. '!Sou o Npc De Quests Tenho Essas Quests , Janemba Set') focus = cid talk_start = os.clock() else selfSay('Sorry, only premium players can travel by boat.') focus = 0 talk_start = 0 end elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. getCreatureName(cid) .. '! I talk to you in a minute.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'janemba set') then if pay(cid,100) then travel(cid, 502, 800, 6) selfSay('Let\'s go!') focus = 0 talk_start = 0 else selfSay('Desculpe, Voce Nao Tem Nivel 200.') end elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Good bye, ' .. getCreatureName(cid) .. '!') focus = 0 talk_start = 0 end end end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 45 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end Meu Servidor Minecraft : Ip - Skylowcraft.minecraftbr.net:25585 = Servidor 24hrs Sem Lag , Sem Hackers (1.7.2) Servidor De Fullpvp e Survival - Vamos Colocar Minigames!.
Postado Maio 1, 2015 10 anos Tem como postar seu 050-functions ? fica em data/lib não sei se em wodbo tem (não lembro ) mais se tiver e puder postar Ando devagar, porque já tive pressa. E levo esse sorriso, porque já chorei demais... ________________________________________________________________________________ Minhas Sprites: Mega Metagross Mega Abomasnow Pack de Shinys [Posso atualizá-lo com novos shinys a qualquer momento] Tutoriais: [Completo] Criando e adicionando um novo Pokémon [Actions] Criando quest no RME Editores Lua/Xml/Sync Entre outros: Editores Win/Mac/Linux
Postado Maio 1, 2015 10 anos Autor Desculpe Mas Wodbo Nao Tem Essa Pasta 'Lib' Meu Servidor Minecraft : Ip - Skylowcraft.minecraftbr.net:25585 = Servidor 24hrs Sem Lag , Sem Hackers (1.7.2) Servidor De Fullpvp e Survival - Vamos Colocar Minigames!.
Postado Maio 1, 2015 10 anos Então não tem 050-functions , deve ser nas sources (que talvez não existam ) é porque creio que seja uma função ele não mostrar o local de configuração do level. Note: pay = quanto player paga para usar o npc travel = pos de onde o player vai porém nenhuma configuração para o level tem certeza que a mensagem não esta errada, e se o player não estiver pago vai mostrar essa mensagem de ele não tem level (há uma possibilidade de isso acontecer) Editado Maio 1, 2015 10 anos por Vinicius Xxgamexx (veja o histórico de edições) Ando devagar, porque já tive pressa. E levo esse sorriso, porque já chorei demais... ________________________________________________________________________________ Minhas Sprites: Mega Metagross Mega Abomasnow Pack de Shinys [Posso atualizá-lo com novos shinys a qualquer momento] Tutoriais: [Completo] Criando e adicionando um novo Pokémon [Actions] Criando quest no RME Editores Lua/Xml/Sync Entre outros: Editores Win/Mac/Linux
Postado Maio 1, 2015 10 anos Autor nao porque eu peguei 1 Npc Que Teleporta Soq Vip". i Qual quer level pode Ir Pro Canto Soque Ele Tenque Ter dinheiro e Vip. Dai To Querendo Ajeita 1 Npc De QUESTER. soq so de level. To Presisando Muito.! Quinem Voce Disse Sobre lib. Axei 1 pasta chamada lib mas ela so tinha 1 bloco de notas Chamado Npc Nao Tinha esse qui vc cito Tem como postar seu 050-functions ? fica em data/lib não sei se em wodbo tem (não lembro ) mais se tiver e puder postar Tinha esse aki o \/ -- get the distance to a creature function getDistanceToCreature(id) if id == 0 or id == nil then selfGotoIdle() end cx, cy, cz = creatureGetPosition(id) if cx == nil then return nil end sx, sy, sz = selfGetPosition() return math.max(math.abs(sx-cx), math.abs(sy-cy)) end -- do one step to reach position function moveToPosition(x,y,z) selfMoveTo(x, y, z) end -- do one step to reach creature function moveToCreature(id) if id == 0 or id == nil then selfGotoIdle() end tx,ty,tz=creatureGetPosition(id) if tx == nil then selfGotoIdle() else moveToPosition(tx, ty, tz) end end -- stop talking function selfGotoIdle() following = false attacking = false selfAttackCreature(0) target = 0 end -- getCount function by Jiddo function getCount(msg) b, e = string.find(msg, "%d+") if b == nil or e == nil then count = 1 else count = tonumber(string.sub(msg, b, e)) end if count > 2000 then count = 2000 end return count end -- buy an item function buy(cid, itemid, count, cost) cost = count*cost amount = count if doPlayerRemoveMoney(cid, cost) == 1 then if getItemStackable(itemid) then while count > 100 do doPlayerAddItem(cid, itemid, 100) count = count - 100 end doPlayerAddItem(cid, itemid, count) -- add the last items, if there is left else while count > 0 do doPlayerAddItem(cid, itemid, 1) count = count - 1 end end if amount <= 1 then selfSay('Here is your '.. getItemName(itemid) .. '!') else selfSay('Here are your '.. amount ..' '.. getItemName(itemid) .. 's!') end else selfSay('Sorry, you do not have enough money.') end end function getText(msg) local commapos = string.find(msg,",") text = string.sub(msg,commapos+1,string.len(msg)) return text end function buyFluidContainer(cid, itemid, count, cost, fluidtype) cost = count*cost amount = count if doPlayerRemoveMoney(cid, cost) == 1 then while count > 0 do doPlayerAddItem(cid, itemid, fluidtype) count = count - 1 end if amount <= 1 then selfSay('Here is your '.. getItemName(itemid) .. '!') else selfSay('Here are your '.. amount ..' '.. getItemName(itemid) .. 's!') end else selfSay('Sorry, you do not have enough money.') end end function doWriteFile(file, text) local f = io.open(file, "a+") if(not f) then return false end f:write("" .. text .. "\n") f:close() return true end -- sell an item function sell(cid, itemid, count, cost) cost = count*cost if doPlayerRemoveItem(cid, itemid, count) == 1 then coins = math.floor(cost/10000) crystals = coins while coins > 100 do doPlayerAddItem(cid, 2160, 100) coins = coins - 100 end doPlayerAddItem(cid, 2160, coins) cost = cost - crystals*10000 coins = math.floor(cost/100) if coins > 0 then doPlayerAddItem(cid, 2152, coins) cost = cost - coins*100 end coins = cost if cost > 0 and cost < 100 then doPlayerAddItem(cid, 2148, coins) cost = cost - coins end if cost > 0 then selfSay('You couldn\'t retrieve '.. cost ..' gold pieces, please contact the admin.') end if count <= 1 then selfSay('Thanks for this '.. getItemName(itemid) .. '!') else selfSay('Thanks for these '.. count..' '.. getItemName(itemid) .. 's!') end else selfSay('Sorry, you do not have this item.') end end -- pay for anything? function pay(cid, cost) if doPlayerRemoveMoney(cid, cost) == 1 then return true else return false end end -- Travel player function travel(cid, x, y, z) destpos = {x = x, y = y, z = z} doTeleportThing(cid, destpos) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end Meu Servidor Minecraft : Ip - Skylowcraft.minecraftbr.net:25585 = Servidor 24hrs Sem Lag , Sem Hackers (1.7.2) Servidor De Fullpvp e Survival - Vamos Colocar Minigames!.
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.