Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''help''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Encontrar resultados em...

Encontrar resultados que contenham...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


Sou

  1. Bom gente, sei que existem vários scripts disso, mas como estou tentando entender a linguagem LUA, estou tentando criar o script, com o que eu já observei nos fórums, e que foi gravado na minha memória ^^. Bom, o script é pra checar se o player tem X storage, se ele tiver, ele pode passar pelo tile com a actionID Y, se não tiver a storage, ele é teleportado para a "fromposition".. Ai vai o script: function onStepIn(cid, item, position, fromposition) local storage = 18597 if getPlayerStorageValue(cid) <= 0 then doSendPlayerCancel(cid, "You/'re not a VIP player.") doTeleportThing(cid, fromposition) doSendMagicEffect(position, 13) else getPlayerStorageValue(cid) == getStorageValue(storage) then doSendTextMessage(cid, "Welcome to the VIP Area!", 27) doSendMagicEffect(position, 14) end return true end EDIT: Quando inicio o server, acontece isso:
  2. Alguém poderia me ajudar. Meu pvp ele esta da seguinte forma. Eu entro na Pvp zona então posso fazer target no pokemon e também no player, porém o player, eu não posso usar ataques que requer target, diz " You don't have any targets. " Porém o ataque passivo do pokemon quando esta em target no player e também ataques de área retiram damage do player! O pokemon eu posso atacar mas não retira damage alguma. Quando entro em Party no pvp eu posso atacar o pokemon e também retirar damage normalmente até mata-lo, e o player continua podendo tirar damage apenas com ataques de área mas ataques que requer target não podem atacar. Bem se alguém poder me ajudar, eu gostaria de poder atacar o player com meus ataques que requer target, e retirar damage do pokemon sem precisar esta em party. Irei deixar meu exp.lua suponho que deva resolver por aqui.
  3. I ae,gostaria que alguem modificasse como eu queria. oq eu quero que edite? Gostaria de tirar o dinheiro e botar para comprar outfit por x item e quantia. Só isso obg! Meu script: 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 out = {Jam = 181601, Rap = 181602, Ori = 181603, Roc = 181604, Adv = 181605, Bus = 181606, Atl = 181607, Punk = 181608, Mer = 181610, Hik = 181611} if (msgcontains(msg, 'Outfit') or msgcontains(msg, 'roupas') or msgcontains(msg, 'Outfits') or msgcontains(msg, 'outfits')) then selfSay("I sell this outfits Male..{Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}, which outfit do you want??", cid) talkState[talkUser] = 2 ----Fodao elseif (msgcontains(msg, 'Fodao') or msgcontains(msg, 'fodao')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 3 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 3 then if getPlayerStorageValue(cid, out.Jam) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1562, 1) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Jam, 1) else doPlayerAddOutfit(cid, 1562, 1) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Jam, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 3 then selfSay("So... I have this other outfits {Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Gordo Alto elseif (msgcontains(msg, 'Gordo Alto') or msgcontains(msg, 'gordo alto')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 4 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 4 then if getPlayerStorageValue(cid, out.Rap) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1563, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Rap, 1) else doPlayerAddOutfit(cid, 1563, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Rap, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 4 then selfSay("So... I have this other outfits {Fodao, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Jogado de Basquete elseif (msgcontains(msg, 'Jogado de Basquete') or msgcontains(msg, 'jogado de basquete')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 5 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 5 then if getPlayerStorageValue(cid, out.Ori) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1568, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Ori, 1) else doPlayerAddOutfit(cid, 1568, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Ori, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Gordo Alto, Sktista, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 5 then selfSay("So... I have this other outfits {Fodao, Gordo Alto, Sktista, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Sktista elseif (msgcontains(msg, 'Sktista') or msgcontains(msg, 'sktista')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 6 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 6 then if getPlayerStorageValue(cid, out.Roc) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1569, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Roc, 1) else doPlayerAddOutfit(cid, 1569, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Roc, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Gordo Alto, Jogado de Basquete, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 6 then selfSay("So... I have this other outfits {Fodao, Gordo Alto, Jogado de Basquete, Punk 1, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Punk 1 elseif (msgcontains(msg, 'Punk 1') or msgcontains(msg, 'punk 1')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 7 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 7 then if getPlayerStorageValue(cid, out.Adv) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1570, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Adv, 1) else doPlayerAddOutfit(cid, 1570, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Adv, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 7 then selfSay("So... I have this other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Malandro, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Malandro elseif (msgcontains(msg, 'Malandro') or msgcontains(msg, 'malandro')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 8 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 8 then if getPlayerStorageValue(cid, out.Bus) <= 0 then if getPlayerMoney(cid) >= 30000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1574, 0) doPlayerRemoveMoney(cid, 30000) setPlayerStorageValue(cid, out.Bus, 1) else doPlayerAddOutfit(cid, 1574, 0) doPlayerRemoveMoney(cid, 30000) setPlayerStorageValue(cid, out.Bus, 1) end else selfSay("You need 300dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 8 then selfSay("So... I have this other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Negao, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Negao elseif (msgcontains(msg, 'Negao') or msgcontains(msg, 'negao')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 9 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 9 then if getPlayerStorageValue(cid, out.Atl) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1573, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Atl, 1) else doPlayerAddOutfit(cid, 1573, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Atl, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 9 then selfSay("So... I have this other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Novinho, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Novinho elseif (msgcontains(msg, 'Novinho') or msgcontains(msg, 'novinho')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 10 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 10 then if getPlayerStorageValue(cid, out.Punk) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1575, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Punk, 1) else doPlayerAddOutfit(cid, 1575, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Punk, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 10 then selfSay("So... I have this other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Dr House e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Dr House elseif (msgcontains(msg, 'Dr House') or msgcontains(msg, 'dr house')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 12 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 12 then if getPlayerStorageValue(cid, out.Mer) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1579, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Mer, 1) else doPlayerAddOutfit(cid, 1579, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Mer, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho e Malandro Jr}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 12 then selfSay("So... I have this other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho e Malandro Jr}.", cid) talkState[talkUser] = 2 ----Malandro Jr elseif (msgcontains(msg, 'Malandro Jr') or msgcontains(msg, 'malandro jr')) and talkState[talkUser] == 2 then selfSay("Are you sure which want buy that outfit?", cid) talkState[talkUser] = 13 elseif (msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 13 then if getPlayerStorageValue(cid, out.Hik) <= 0 then if getPlayerPremiumDays(cid) > 0 then if getPlayerMoney(cid) >= 20000 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 1571, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Hik, 1) else doPlayerAddOutfit(cid, 1571, 0) doPlayerRemoveMoney(cid, 20000) setPlayerStorageValue(cid, out.Hik, 1) end else selfSay("You need 200dl to buy this outfit!", cid) talkState[talkUser] = 2 return false end else selfSay("Need be premium to buy this Outfit.", cid) talkState[talkUser] = 0 return false end else selfSay("You already have this outfit, so... I have other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho e Dr House}.", cid) talkState[talkUser] = 2 return false end selfSay("So... Here is.", cid) elseif (msgcontains(msg, 'no') or msgcontains(msg, 'nao')) and talkState[talkUser] == 13 then selfSay("So... I have this other outfits {Fodao, Gordo Alto, Jogado de Basquete, Sktista, Punk 1, Malandro, Negao, Novinho e Dr House}.", cid) talkState[talkUser] = 2 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) @up
  4. Gostaria de um script que ao usar X Item,meu Pokemon iria ganhar fly permanentemente,igual os baloes da pxg no raichu e shiny Raichu Exemplo Ao usar x item -o item sumisse da pokebag. o player usar x item na pokeball do pokemon ai o pokemon ganha a abilidade de fly e ao dar fly ele tenha x outfit permanente! @EDIT Se puder ajudar,deixei os arquivos aqui zipter,se puder adaptar,eu nao intendo muito sobre adapta-los! itens.rar
  5. Salve,gostaria de saber onde edito as posiçao das city do meu script de teleport do /h do pokemon Base:PDA 1.2 Meu Script: local config = { premium = true, -- se precisa ser premium account (true or false) battle = true -- se precisa estar sem battle (true). Se colocar false, poderá usar teleport no meio de batalhas } local places = { [1] = {name = "Celadon", id = 1}, [2] = {name = "Saffron", id = 2}, [3] = {name = "Cerulean", id = 3}, [4] = {name = "Lavender", id = 4}, [5] = {name = "Vermilion", id = 5}, [6] = {name = "Fuchsia", id = 6}, [7] = {name = "Cinnabar", id = 7}, [8] = {name = "Viridian", id = 9}, [9] = {name = "Pewter", id = 10}, [10] = {name = "Pallet Town", id = 12}, [11] = {name = "Azalea", id = 13}, [12] = {name = "Cianwood", id = 14}, [13] = {name = "Olivine", id = 15}, [14] = {name = "Goldenrod", id = 16}, [15] = {name = "Violet", id = 18}, [16] = {name = "Outland North", id = 20}, [17] = {name = "Outland South", id = 21}, [18] = {name = "Outland East", id = 19}, [19] = {name = "Rod", id = 22}, } function onSay(cid, words, param) if #getCreatureSummons(cid) == 0 then doPlayerSendCancel(cid, "You need a pokemon to use teleport.") return true end if not isInArray(specialabilities["teleport"], getCreatureName(getCreatureSummons(cid)[1])) then return 0 end if getPlayerStorageValue(cid, 22545) == 1 then --golden arena doPlayerSendCancel(cid, "You can't do that while the golden arena!") return true end if getPlayerStorageValue(cid, 212124) >= 1 then --alterado v2.6 return doPlayerSendCancel(cid, "You can't do it with a pokemon with mind controlled!") end if getPlayerStorageValue(cid, 52480) >= 1 then return doPlayerSendCancel(cid, "You can't do it while a duel!") --alterado v2.6 end if getPlayerStorageValue(cid, 6598754) == 1 or getPlayerStorageValue(cid, 6598755) == 1 then return doPlayerSendCancel(cid, "You can't do it while in the PVP Zone!") --alterado v2.7 end if exhaustion.get(cid, 180) and exhaustion.get(cid, 180) > 0 then local tempo = exhaustion.get(cid, 180) or 0 local min = math.floor(tempo) doPlayerSendCancel(cid, "Your pokemon is tired, wait "..getStringmytempo(tempo).." to teleport again.") return true end if config.premium and not isPremium(cid) then doPlayerSendCancel(cid, "Only premium members are allowed to use teleport.") return true end if config.battle and getCreatureCondition(cid, CONDITION_INFIGHT) then doPlayerSendCancel(cid, "Your pokemon can't concentrate during battles.") return true end if (param == '') then local str = "" str = str .. "Places to go :\n\nHouse\n" for a = 1, #places do str = str..""..places[a].name.."\n" end doShowTextDialog(cid, 7416, str) return true end local item = getPlayerSlotItem(cid, 8) local nome = getPokeballName(item.uid) local summon = getCreatureSummons(cid)[1] local lastppos = getThingPos(cid) local lastspos = getThingPos(summon) local telepos = {} local myplace = "" local townid = 0 local citySto = 0 --alterado v2.7 if string.lower(param) == "house" then if not getHouseByPlayerGUID(getPlayerGUID(cid)) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You don't own a house.") return true end telepos = getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid))) myplace = "our home" else for x = 1, #places do if string.find(string.lower(places[x].name), string.lower(param)) then townid = places[x].id myplace = places[x].name citySto = places[x].sto or -1 --alterado v2.7 end end if myplace == "" then doPlayerSendCancel(cid, "That place doesn't exist.") return true end if isInArray({"Outland North", "Outland South", "Outland East"}, myplace) then if getPlayerLevel(cid) < 150 then doPlayerSendTextMessage(cid, 27, "You need level 150 to enter in Outland.") return true end end end if myplace ~= "" and townid > 0 then telepos = getTownTemplePosition(townid) end if getDistanceBetween(getThingPos(cid), telepos) <= 15 then doPlayerSendCancel(cid, "You are too near to the place you want to go!") return true end doSendMagicEffect(getThingPos(summon), 29) doSendMagicEffect(getThingPos(cid), 29) doTeleportThing(cid, telepos, false) local pos2 = getClosestFreeTile(cid, getPosByDir(getThingPos(cid), SOUTH)) doTeleportThing(summon, pos2, false) doSendMagicEffect(getThingPos(cid), 29) doCreatureSay(cid, ""..nome..", teleport to "..myplace.."!", TALKTYPE_MONSTER) doCreatureSay(cid, ""..nome..", teleport to "..myplace.."!", TALKTYPE_MONSTER, false, 0, lastppos) doCreatureSay(summon, "TELEPORT!", TALKTYPE_MONSTER) doCreatureSay(summon, "TELEPORT!", TALKTYPE_MONSTER, false, 0, lastspos) doCreatureSetLookDir(cid, SOUTH) doCreatureSetLookDir(summon, SOUTH) doSendMagicEffect(getThingPos(summon), CONST_ME_TELEPORT) exhaustion.set(cid, 180, 180) if isInArray({"Outland North", "Outland South", "Outland East"}, myplace) then setPlayerStorageValue(cid, 31040, 1) else setPlayerStorageValue(cid, 31040, -1) end return true end
  6. Olá, Conclui um projeto de otserver offline editando sistemas,mapa,etc. Porém descobri q ele é feito pra rodar aopenas em Linux e não manjo de linux p/ ot. Alguem pode me guiar com tutoriais p/ isso? Tenho duvidas basicas mesmo, por exemplo: Como eu faria p/ editar um arquivo no dedicado em linux; Como fazer upload dos meus arquivos p/ o server inux; Como reiniciar o server no linux,etc HALP? o/
  7. Ola galera ja coloquei 10092109 de vezes os destinos das libs mas mesmo assim continua dando esse erro ! alguem me ajuda ? Estou tentando compilar este server para a versao 7.72 https://code.google.com/p/avesta74/ Foto do ero:
  8. Olá, então gente, preciso de ajuda, eu sempre mexi com servidores e tudo mais; eu dei uma pausa em tudo isso, e voltei a mexer hoje, só que eu não consigo deixar meu otserver online de jeito nenhum! Nem por IP Changer, Nem IP Fixo, tentei por hamachi, ele até loga, só que no game ele da DBug, não sei o motivo Ja liberei as portas e fiz tudo certo... Talvez seja algum problema, porque eu tinha mudado meu plano de internet, talvez uma consequência ? não sei, preciso de muita ajuda, obrigado!
  9. Alguém Poderia Me Ajudar a Compilar Meu Servidor? Estou a + De 2 Horas Tentando e Sem Sucesso REP+
  10. Bom galera vou tentar explicar o que ta acontecendo, ando procurando por eventos pra colocar no meu servidor faz 3 dias e não axo nada pra tfs 1.0 mas enfim acabei encontrando esse evento que é o last man standing que é do nevix la do otland, o problema é que ele não colocou nenhum mapa então eu adaptei um mapa aqui e queria que fosse bem grande a area de combate, e não só uma arena, então eu criei essa arena do meu jeito: A principio funcionou tudo tranquilo, mas tem um bug que anda me incomodando por exemplo, o evento começa e todos são teletransportados para o meio desse mapa que eu criei, fiz o teste com 2 players, quando um sai e deixa o outro no centro do combate, por exemplo se afasta pros cantos seja esquerda direita cima ou baixo e fica sozinho o evento termina e da o premio pros dois e as vezes pra um só, sem ao menos ter morrido ninguém. eu queria que não tivesse isso, que desse o premio pra apenas 1 independente se ele saiu e ficou sozinho por um tempo (fugindo do outro player), queria que desse o premio pro único sobrevivente que restar segue os scripts do evento: Globalevents lms.lua movements lmsjoin.lua movements lmsleave.lua Eu espero a ajuda de vocês pra resolver esse problema, agradeço desde já. todos que tentarem me ajudar darei rep+
  11. Helflin

    Movements Sql

    Fala galera, Tenho esse código em um arquivo.lua: doPlayerSendTextMessage(cid,22,"Voce entrou na sala de treinamento.") db.query("UPDATE `players` SET `is_training` = 1 WHERE name = '".. getCreatureName(cid).."'") Porém tem um problema, quando o CreatureName tem ' no meio, tipo Knight'Fulano, ele da erro de sql. Pensei em algo(função) tipo o ADDSLASHES() do PHP, que insere \(barra invertida) antes do ' para realizar inserção no bd, mas não sei se existe isso pra configurações .lua, pois não sei mexer em .lua ... Alguma solução? Vlw Galera..
  12. Ola! Eu estou tentando abrir um servidor mas não consigo conectar à database! O site funciona perfeitamente, mas o OT não abre!! Estou utilisando o Xampp e o Gesior... O OT é este http://www.xtibia.com/forum/topic/233223-1078-tfs-12-cast-system-novos-outfits-mounts/ O Xampp é v.3.2.1 e o Gesior 2012 TFS 1.0 O nome da database é schema No meu config.lua está assim: Ajudem, por favor! E desde já, obrigado! Encontrei o problema e consegui resolver! Se puderem trancar o tópico, obrigado!
  13. Bem sempre rezei a Deus por esse script, já tentei fazer e nada.. foi um fracasso total.. Agora estou aqui, humildemente tentando realizar um pequeno mais simbólico sonho, não só meu e sim de todos que querem fazer um belo RPG ou PokeTibia Bem o script seria assim: Seriam 3 Tabelas (Com o nome do elemento e em seguida o nome dos monstros e vocations que receberiam as seguintes alterações dependendo do damage da spell). Dano Duplo (Dobra o dado da spell com X damage) Metade do Dado (Corta o dado da spell com X damage pela metade) Dano Nulo (Nula o dado da spell com X damage totalmente) Exemplo de tabela: [COMBAT_FIREDAMAGE] = {Bulbasaur, Ivysaur, Venusaur}, [COMBAT_ENERGYDAMAGE] = {Sorcerer, Druid, Paladin}, E assim por diante. Esse é um pedido MUITO importante, tanto pra quem quer fazer um RPG normal ou um PokeTibia, até mesmo desenvolver um sistema de summon em cima desse script. Resumindo ajudaria MUITA, mais MUITA gente. Bem é isso.. Obrigado pela atenção, boa noite
  14. Bom meu otserv 7.92, mapa de 22 mb aguente no maximo 40 player, benny me indicou este weblara. E a primeira vez que irei contratar e gostaria de uma ajuda para preencher os campos!. como eu vaço para ter acesso dps que eu contratar?
  15. Olá! Eu baixei um OT 8.60, mapa Yurots limpo, sqlite. E não consigo deixar o mesmo online de jeito nenhum! Já baixei o DUC da No-Ip, criei o host, mudei o ip no config.lua, abri as portas 7171 e 7172, mas ainda assim não fica online! Não consigo entrar nem mesmo como 127.0.0.1... Somente se eu mudar no lua pra esse ip... Se alguém puder me ajudar, agradeço desde já! Obrigado!!!
  16. Olá galera do Xt Vim pedir uma ajudinha en um script de um npc meu aki! e o seguinte este npc ele energyza aol so que eu gostaria que ele so energyzase o aol si estivesse equipado no slot de cordao necklace Versao do meu Otserver 7.92
  17. Ola galera do XT Preciso de uma ajudinha em um script de talkaction que fiz! e um script de um item que add skill no personagem, so que os player podem usar quanto quiserem. quero colocar para este script subir a skill so ate certo nivel. Versao do ot 7.92 function onSay(cid, words, param) pos = getPlayerPosition(cid) pz = getTilePzInfo(pos) if pz == 0 then doPlayerSendTextMessage(cid,22,"Voce so pode upar seu skill en protect zone.") else if doPlayerRemoveItem(cid, 5891,1) == TRUE then doPlayerAddSkill(cid,3, 1) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_ENERGYAREA) else doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,"Você precisa de 1 enchanted chicken wing para upar seu skill.") end end return 1 end
  18. galera é o seguinte precissava de um script que se eu usar em alguem ele fica paralizado, e fica rancando 50 mana por segundo durante 10 segundos, versao e 8.54 e dps de 10 segundos ele volta ao normal agradeo mt a quem em ajudar rep ++ lindos de plantão ! e esqueci de mencionar eu queria pedir por favorzão que ficasse aparencendo um efeito sem parar o numero do efeito e 78
  19. galera eu começei a usar otcliente em meu server o problema é que os itens nao apareçem ., no cliente da cipsoft apareçe normal porem quando loga no otcliente some tudo ajuda ae rep++ agradeço
  20. Ola, criei um tópico sobre duvidas algumas horas atras, só quera sobre o ip, consegui resolver com a ajuda do Slyton, mas agora estou com problemas nas portas do modem, vou trazer abaixo uma print de como abri as portas e queria saber oq esta errado pq só eu que entro no ot, para as outras pessoas aparece offline.
  21. galera precisso de uma action assim, se eu usar ela em min, eu ireia healar 75 % da minha vida agora se eu usar em algum inimigo eu irei rancar 70 % de life e 70% de mana, e quero que tenha enxausted de 400 secundos porfavor agradeço desdeja rep++ !! <#3 versao do tibia 8.54
  22. galera to precissando de uma action que ao passar nela voce ganha exemplo 4 items porem so ganha 1 x se passar de novo nao acontece nada pf agradeço a todos que me ajudarem rep ++ S2
  23. tile que ao passar voce peder 5 de mana e quando nao tiver mana perde life eu vou por num tile de agua exemplo voce vai andando e a cada sqm perde 5 de mana quando nao houver mais mana perde life . acho que é um movements agradeço a quem me ajuda s2 versao 8.54
  24. galera queria transformar essa spell Em actions e que ao inves de eu ficar no target eu queria por na opção de Witch use , que funcione se eu acertar em outro player !!! ...... local newPos1 = {x = 0, y = 0, z = 0} --pos pra onde sera levado o caster da spell local newPos2 = {x = 1517, y = 417, z = 6} --pos pra onde sera levado o target local function teleport(cid, pid, pos, pos2) if isCreature(cid) then doTeleportThing(cid, getClosestFreeTile(cid, pos)) doSendMagicEffect(getPlayerPosition(cid), 30) end if isCreature(pid) then doTeleportThing(pid, getClosestFreeTile(pid, pos2 or pos)) doSendMagicEffect(getPlayerPosition(pid), 30) end end function onCastSpell(cid, var) local target = getCreatureTarget(cid) if not isCreature(target) or not isPlayer(target) then return doPlayerSendTextMessage(cid, 27, "Voce precisa selecionar um alvo para usar o Mangekyou Kamui.") end if getPlayerStorageValue(cid, 33333) < os.time () then local target = getCreatureTarget(cid) local posCid = getPlayerPosition(cid) local posTarget = getPlayerPosition(target) local tempo = 10000 -- 10s setPlayerStorageValue(cid, 33333, os.time () + 30) teleport(cid, target, newPos1, newPos2) else doPlayerSendCancel(cid, "Voce so pode usar esse jutsu daki a "..getPlayerStorageValue(cid, 33333) - os.time ().." segundos ") end return true end rep++ pra qm ajudar )); )):
  25. GALERA PRECISSO DE UM SCRIPT QUE AO PUXAR A A ALANCA ADICIONA NA FRENTE Do nome [TRAIDOR] eu tinha visto um topico porem nao acho mais ............ u´p
×
×
  • Criar Novo...