Ir para conteúdo

NewAge

Artesão
  • Total de itens

    114
  • Registro em

  • Última visita

Tudo que NewAge postou

  1. Eu to usando esse script pra aparecer um efeito pro player que tiver o storage 4001, ele ta funcionando, mas a function ta Onlogin,ou seja, ele só funciona quando o player loga, ai eu queria que o efeito aparecesse logo quando o player recebesse ele, sem precisa relogar e tb por tempo indeterminado, se possivel effect.lua local effect = 55 -- Efeito que vai usar local pos = { x = 1342, y = 1659, z = 5 } local storage = 4001 -- Storage que o player precisa ter function onLogin(cid) if getPlayerStorageValue(cid, storage) == 1 then SendEffect(cid) end return TRUE end function SendEffect(cid) doSendMagicEffect(pos, effect) return TRUE end
  2. E se eu criasse um cliente proprio, não teria como adicionar de algum jeito?
  3. Passei meu sv pra versao 9.60 e ele perdeu essa função, ja tentei colocar um script da otland, mas parece q só funciona com numeros, alguem pode me dizer como adicionar essa função no meu ot? Pq to querendo fazer tp falante mas não funfa: dosendanimatedtext is now a deprecated function e tb quando mato bixos nao ta aparecendo a quantidade de xp ganhada, algue function doSendAnimatedText(pos, value, color, player) if(not tonumber(value))then return error("arg #2 in doSendAnimatedText is not a number") end if(isPlayer(player))then doSendTextMessage(player, MESSAGE_EXPERIENCE, "", pos, value, color) else for _, v in ipairs(getSpectators(pos, 7, 5, true)) do if(isPlayer(v))then doSendTextMessage(v, MESSAGE_EXPERIENCE, "", pos, value, color) end end end end function doPlayerAddExpEx(cid, amount) if(not doPlayerAddExp(cid, amount)) then return false end local position = getThingPosition(cid) doPlayerSendTextMessage(cid, MESSAGE_EXPERIENCE, "You gained " .. amount .. " experience.", amount, COLOR_WHITE, position) local spectators, name = getSpectators(getThingPosition(cid), 7, 7), getCreatureName(cid) for _, pid in ipairs(spectators) do if isPlayer(pid) and pid ~= cid then doPlayerSendTextMessage(pid, MESSAGE_EXPERIENCE_OTHERS, name .. " gained " .. amount .. " experience.", amount, COLOR_WHITE, position) end end return true end function isInArray(array, value, caseSensitive) if (caseSensitive == nil or caseSensitive == false) and type(value) == "string" then local lowerValue = value:lower() for _, _value in ipairs(array) do if type(_value) == "string" and lowerValue == _value:lower() then return true end end else for _, _value in ipairs(array) do if (value == _value) then return true end end end return false end function doPlayerGiveItem(cid, itemid, amount, subType) local item = 0 if(isItemStackable(itemid)) then item = doCreateItemEx(itemid, amount) if(doPlayerAddItemEx(cid, item, true) ~= RETURNVALUE_NOERROR) then return false end else for i = 1, amount do item = doCreateItemEx(itemid, subType) if(doPlayerAddItemEx(cid, item, true) ~= RETURNVALUE_NOERROR) then return false end end end return true end function doPlayerGiveItemContainer(cid, containerid, itemid, amount, subType) for i = 1, amount do local container = doCreateItemEx(containerid, 1) for x = 1, getContainerCapById(containerid) do doAddContainerItem(container, itemid, subType) end if(doPlayerAddItemEx(cid, container, true) ~= RETURNVALUE_NOERROR) then return false end end return true end function doPlayerTakeItem(cid, itemid, amount) return getPlayerItemCount(cid, itemid) >= amount and doPlayerRemoveItem(cid, itemid, amount) end function doPlayerSellItem(cid, itemid, count, cost) if(not doPlayerTakeItem(cid, itemid, count)) then return false end if(not doPlayerAddMoney(cid, cost)) then error('[doPlayerSellItem] Could not add money to: ' .. getPlayerName(cid) .. ' (' .. cost .. 'gp).') end return true end function doPlayerWithdrawMoney(cid, amount) if(not getBooleanFromString(getConfigInfo('bankSystem'))) then return false end local balance = getPlayerBalance(cid) if(amount > balance or not doPlayerAddMoney(cid, amount)) then return false end doPlayerSetBalance(cid, balance - amount) return true end function doPlayerDepositMoney(cid, amount) if(not getBooleanFromString(getConfigInfo('bankSystem'))) then return false end if(not doPlayerRemoveMoney(cid, amount)) then return false end doPlayerSetBalance(cid, getPlayerBalance(cid) + amount) return true end function doPlayerAddStamina(cid, minutes) return doPlayerSetStamina(cid, getPlayerStamina(cid) + minutes) end function isPremium(cid) return (isPlayer(cid) and (getPlayerPremiumDays(cid) > 0 or getBooleanFromString(getConfigValue('freePremium')))) end function getMonthDayEnding(day) if(day == "01" or day == "21" or day == "31") then return "st" elseif(day == "02" or day == "22") then return "nd" elseif(day == "03" or day == "23") then return "rd" end return "th" end function getMonthString(m) return os.date("%B", os.time{year = 1970, month = m, day = 1}) end function getArticle(str) return str:find("[AaEeIiOoUuYy]") == 1 and "an" or "a" end function doNumberFormat(i) local str, found = string.gsub(i, "(%d)(%d%d%d)$", "%1,%2", 1), 0 repeat str, found = string.gsub(str, "(%d)(%d%d%d),", "%1,%2,", 1) until found == 0 return str end function doPlayerAddAddons(cid, addon) for i = 0, table.maxn(maleOutfits) do doPlayerAddOutfit(cid, maleOutfits[i], addon) end for i = 0, table.maxn(femaleOutfits) do doPlayerAddOutfit(cid, femaleOutfits[i], addon) end end function getTibiaTime(num) local minutes, hours = getWorldTime(), 0 while (minutes > 60) do hours = hours + 1 minutes = minutes - 60 end if(num) then return {hours = hours, minutes = minutes} end return {hours = hours < 10 and '0' .. hours or '' .. hours, minutes = minutes < 10 and '0' .. minutes or '' .. minutes} end function doWriteLogFile(file, text) local f = io.open(file, "a+") if(not f) then return false end f:write("[" .. os.date("%d/%m/%Y %H:%M:%S") .. "] " .. text .. "\n") f:close() return true end function getExperienceForLevel(lv) lv = lv - 1 return ((50 * lv * lv * lv) - (150 * lv * lv) + (400 * lv)) / 3 end function doMutePlayer(cid, time) local condition = createConditionObject(CONDITION_MUTED, (time == -1 and time or time * 1000)) return doAddCondition(cid, condition, false) end function doSummonCreature(name, pos) local cid = doCreateMonster(name, pos, false, false) if(not cid) then cid = doCreateNpc(name, pos) end return cid end function getPlayersOnlineEx() local players = {} for i, cid in ipairs(getPlayersOnline()) do table.insert(players, getCreatureName(cid)) end return players end function getPlayerByName(name) local cid = getCreatureByName(name) return isPlayer(cid) and cid or nil end function isPlayer(cid) return isCreature(cid) and cid >= AUTOID_PLAYERS and cid < AUTOID_MONSTERS end function isPlayerGhost(cid) return isPlayer(cid) and (getCreatureCondition(cid, CONDITION_GAMEMASTER, GAMEMASTER_INVISIBLE, CONDITIONID_DEFAULT) or getPlayerFlagValue(cid, PLAYERFLAG_CANNOTBESEEN)) end function isMonster(cid) return isCreature(cid) and cid >= AUTOID_MONSTERS and cid < AUTOID_NPCS end function isNpc(cid) -- Npc IDs are over int32_t range (which is default for lua_pushnumber), -- therefore number is always a negative value. return isCreature(cid) and (cid < 0 or cid >= AUTOID_NPCS) end function isUnderWater(cid) return isInArray(underWater, getTileInfo(getCreaturePosition(cid)).itemid) end function doPlayerAddLevel(cid, amount, round) local experience, level, amount = 0, getPlayerLevel(cid), amount or 1 if(amount > 0) then experience = getExperienceForLevel(level + amount) - (round and getPlayerExperience(cid) or getExperienceForLevel(level)) else experience = -((round and getPlayerExperience(cid) or getExperienceForLevel(level)) - getExperienceForLevel(level + amount)) end return doPlayerAddExperience(cid, experience) end function doPlayerAddMagLevel(cid, amount) local amount = amount or 1 for i = 1, amount do doPlayerAddSpentMana(cid, getPlayerRequiredMana(cid, getPlayerMagLevel(cid, true) + 1) - getPlayerSpentMana(cid), false) end return true end function doPlayerAddSkill(cid, skill, amount, round) local amount = amount or 1 if(skill == SKILL__LEVEL) then return doPlayerAddLevel(cid, amount, round) elseif(skill == SKILL__MAGLEVEL) then return doPlayerAddMagLevel(cid, amount) end for i = 1, amount do doPlayerAddSkillTry(cid, skill, getPlayerRequiredSkillTries(cid, skill, getPlayerSkillLevel(cid, skill) + 1) - getPlayerSkillTries(cid, skill), false) end return true end function isPrivateChannel(channelId) return channelId >= CHANNEL_PRIVATE end function doBroadcastMessage(text, class) local class = class or MESSAGE_STATUS_WARNING if(type(class) == 'string') then local className = MESSAGE_TYPES[class] if(className == nil) then return false end class = className elseif(class < MESSAGE_FIRST or class > MESSAGE_LAST) then return false end for _, pid in ipairs(getPlayersOnline()) do doPlayerSendTextMessage(pid, class, text) end print("> Broadcasted message: \"" .. text .. "\".") return true end function doPlayerBroadcastMessage(cid, text, class, checkFlag, ghost) local checkFlag, ghost, class = checkFlag or true, ghost or false, class or TALKTYPE_BROADCAST if(checkFlag and not getPlayerFlagValue(cid, PLAYERFLAG_CANBROADCAST)) then return false end if(type(class) == 'string') then local className = TALKTYPE_TYPES[class] if(className == nil) then return false end class = className elseif(class < TALKTYPE_FIRST or class > TALKTYPE_LAST) then return false end for _, pid in ipairs(getPlayersOnline()) do doCreatureSay(cid, text, class, ghost, pid) end print("> " .. getCreatureName(cid) .. " broadcasted message: \"" .. text .. "\".") return true end function doCopyItem(item, attributes) local attributes = ((type(attributes) == 'table') and attributes or { "aid" }) local ret = doCreateItemEx(item.itemid, item.type) for _, key in ipairs(attributes) do local value = getItemAttribute(item.uid, key) if(value ~= nil) then doItemSetAttribute(ret, key, value) end end if(isContainer(item.uid)) then for i = (getContainerSize(item.uid) - 1), 0, -1 do local tmp = getContainerItem(item.uid, i) if(tmp.itemid > 0) then doAddContainerItemEx(ret, doCopyItem(tmp, true).uid) end end end return getThing(ret) end function doSetItemText(uid, text, writer, date) local thing = getThing(uid) if(thing.itemid < 100) then return false end doItemSetAttribute(uid, "text", text) if(writer ~= nil) then doItemSetAttribute(uid, "writer", tostring(writer)) if(date ~= nil) then doItemSetAttribute(uid, "date", tonumber(date)) end end return true end function getItemWeightById(itemid, count, precision) local item, count, precision = getItemInfo(itemid), count or 1, precision or false if(not item) then return false end if(count > 100) then -- print a warning, as its impossible to have more than 100 stackable items without "cheating" the count print('[Warning] getItemWeightById', 'Calculating weight for more than 100 items!') end local weight = item.weight * count return precission and weight or math.round(weight, 2) end function choose(...) local arg = {...} return arg[math.random(1, table.maxn(arg))] end function doPlayerAddExpEx(cid, amount) if(not doPlayerAddExp(cid, amount)) then return false end local position = getThingPosition(cid) doPlayerSendTextMessage(cid, MESSAGE_EXPERIENCE, "You gained " .. amount .. " experience.", amount, COLOR_WHITE, position) local spectators, name = getSpectators(position, 7, 7), getCreatureName(cid) for _, pid in ipairs(spectators) do if(isPlayer(pid) and cid ~= pid) then doPlayerSendTextMessage(pid, MESSAGE_EXPERIENCE_OTHERS, name .. " gained " .. amount .. " experience.", amount, COLOR_WHITE, position) end end return true end function getItemTopParent(uid) local parent = getItemParent(uid) if(not parent or parent.uid == 0) then return nil end while(true) do local tmp = getItemParent(parent.uid) if(tmp and tmp.uid ~= 0) then parent = tmp else break end end return parent end function getItemHolder(uid) local parent = getItemParent(uid) if(not parent or parent.uid == 0) then return nil end local holder = nil while(true) do local tmp = getItemParent(parent.uid) if(tmp and tmp.uid ~= 0) then if(tmp.itemid == 1) then -- a creature holder = tmp break end parent = tmp else break end end return holder end function valid(f) return function(p, ...) if(isCreature(p)) then return f(p, ...) end end end function addVipAccount(cid, count) --function by Mirto, MiltonHit - ###### db.executeQuery("UPDATE `accounts` SET `premium_points` = premium_points + '"..count.."' WHERE `name` ='"..getPlayerAccount(cid).."'") end function getVipBalance(cid) --function by Mirto, MiltonHit - ###### local skpo = db.getResult("SELECT * FROM `accounts` where `name`='"..getPlayerAccount(cid).."'") return skpo:getDataInt("premium_points") end function getNumber(txt) --return number if its number and is > 0, else return 0 (function maded by Gesior) x = string.gsub(txt,"%a","") x = tonumber(x) if x ~= nill and x > 0 then return x else return 0 end end function getItemsFromList(items) local str = '' if table.maxn(items) > 0 then for i = 1, table.maxn(items) do str = str .. items[i][2] .. ' ' .. getItemNameById(items[i][1]) if i ~= table.maxn(items) then str = str .. ', ' end end end return str end function doRemoveItemsFromList(cid,items) -- by vodka local count = 0 if table.maxn(items) > 0 then for i = 1, table.maxn(items) do if getPlayerItemCount(cid,items[i][1]) >= items[i][2] then count = count + 1 end end end if count == table.maxn(items) then for i = 1, table.maxn(items) do doPlayerRemoveItem(cid,items[i][1],items[i][2]) end else return false end return true end m pode me ajudar?
  4. NewAge

    Sistema De Natação

    Malz ai, não saiu o texto Eu to usando um sistema de natação, ele funciona certinho, só que na hora do player voltar pra terra ele continua nadando. Alguém sabe como arrumar isso?
  5. function onStepIn(cid, item, position, fromPosition) swimvalue = 3330 --storagevalue to check diveroutfit = { lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 } standardoutfit = { lookType = getPlayerStorageValue(cid, 3331), lookHead = getPlayerStorageValue(cid, 3332), lookBody = getPlayerStorageValue(cid, 3333), lookLegs = getPlayerStorageValue(cid, 3334), lookFeet = getPlayerStorageValue(cid, 3335), lookAddons = getPlayerStorageValue(cid, 3336) } isswimming = getPlayerStorageValue(cid, swimvalue) if isPlayer(cid) then if (isswimming == -1) or (isswimming == 2) then pozycja = {x = 124, y = 58, z= 7} if item.itemid == 4632 then pos = {x = position.x - 3, y = position.y - 2, z = position.z} elseif item.itemid == 4633 then pos = {x = position.x - 3, y = position.y, z = position.z} elseif item.itemid == 4634 then pos = {x = position.x + 2, y = position.y + 2, z = position.z} elseif item.itemid == 4635 then pos = {x = position.x + 2, y = position.y, z = position.z} elseif item.itemid == 4636 then pos = {x = position.x + 2, y = position.y + 2, z = position.z} elseif item.itemid == 4637 then pos = {x = position.x - 3, y = position.y + 2, z = position.z} elseif item.itemid == 4638 then pos = {x = position.x + 2, y = position.y - 2, z = position.z} elseif item.itemid == 4639 then pos = {x = position.x - 3, y = position.y - 2, z = position.z} elseif item.itemid == 4640 then pos = {x = position.x + 2, y = position.y + 2, z = position.z} elseif item.itemid == 4641 then pos = {x = position.x - 3, y = position.y + 2, z = position.z} elseif item.itemid == 4642 then pos = {x = position.x + 2, y = position.y - 2, z = position.z} elseif item.itemid == 4643 then pos = {x = position.x - 3, y = position.y - 2, z = position.z} end setPlayerStorageValue(cid, 3331, getCreatureOutfit(cid).lookType) setPlayerStorageValue(cid, 3332, getCreatureOutfit(cid).lookHead) setPlayerStorageValue(cid, 3333, getCreatureOutfit(cid).lookBody) setPlayerStorageValue(cid, 3334, getCreatureOutfit(cid).lookLegs) setPlayerStorageValue(cid, 3335, getCreatureOutfit(cid).lookFeet) setPlayerStorageValue(cid, 3336, getCreatureOutfit(cid).lookAddons) setPlayerStorageValue(cid, swimvalue, 1) doSetCreatureOutfit(cid, diveroutfit, 60000) if item.actionid == 3333 then player1pos = {x = position.x, y = position.y + 2, z = position.z} player1 = getThingfromPos(player1pos) doTeleportThing(cid, player1pos) doSendMagicEffect(player1pos, CONST_ME_WATERSPLASH) end end if isswimming == 1 then if item.itemid == 4632 then dir = 2 elseif item.itemid == 4633 then dir = 1 elseif item.itemid == 4634 then dir = 1 elseif item.itemid == 4635 then dir = 3 elseif item.itemid == 4636 then dir = 3 elseif item.itemid == 4637 then dir = 1 elseif item.itemid == 4638 then dir = 3 elseif item.itemid == 4639 then dir = 2 elseif item.itemid == 4640 then dir = 3 elseif item.itemid == 4641 then dir = 1 elseif item.itemid == 4642 then dir = 3 elseif item.itemid == 4643 then dir = 1 end doSetCreatureOutfit(cid, standardoutfit, 1) doMoveCreature(cid, dir) setPlayerStorageValue(cid, swimvalue, 2) end end return TRUE end movements.xml Quote <movevent event="StepIn" actionid="3333" script="swimm.lua"/>
  6. Eu criei um npc de quest que da um storage pro player, ai ativa a quest normalmente, só que se o player voltar e falar denovo com o npc recebe novamente o storage e reinicia a quest. Eu tentei adicionar um storage no firstitems e colocar pro npc checar se o player tem o storage, ele só vai ter quando criar uma conta nova, pq dps que ele abre o bau, o storage é setado pra -1. Só que não ta funcionando, nao sei pq, de vez em quando funciona, outras vezes não. Firstitems: NPC: E não da erro nenhum no console, o script ta funcionando, só parece que não ta checando corretamente. Alguem sabe o que pode ser e como arrumar? Rep +
  7. to usando esse script: Eu consigo abrir a porta com ou sem a chave, mesmo adicionando action id na porta pelo rme Quote function onUse(cid, item, frompos, item2, topos) -------- Pausa -------- local door = {x=1355, y=1662, z=5, stackpos=1} local ddoor = getThingfromPos(door) -------- ITEM -------- local open_door = 5128 local itemU = 24000 local verify = 0 --- NÃO MEXA AQUI -------- PRIMEIRO SISTEMA -------- if item2.uid == itemU then if ddoor.itemid ~= verify then doTransformItem(ddoor.uid,open_door) end else setPlayerStorageValue(cid,config.s,os.time()+config.exhau) doPlayerSendCancel(cid,"Daki 30 segundos a porta ira fechar entre logo") end return 1 end function close(door) -------- ITEM -------- local to_close_door = 5129 ------- SEGUNDO SISTEMA -------- local the_close_door = getThingfromPos(door) if (getPlayerStorageValue(cid, config.s) <= os.time()) then doTransformItem(the_close_door.uid,to_close_door) end end pra abrir a porta 5128, só que quando vou abrir com essa chave a porta não abre, ai eu abro a porta sem a chave e ai eu consigo fechar a porta com a chave, só nao consigo abrir com ela, sabe como resolver? Responder Denunciar Editar
  8. NewAge

    Bug Nas Doors 9.60

    Agora ta dando outro erro: http://imageshack.us/photo/my-images/560/1234r123413243.png/
  9. Troquei meu servidor pra 9.60 e agora toda vez que tento abrir portas da esse erro no console: Alguém sabe como arrumar?
  10. To usando esse script pra pegar a chave com action id junto -- Bau com BoneKey 2016 (By Conde Sapo) -- Exclusivo para XTIBIA -- denunciar se aparecer em outro forum function onUse(cid, item, frompos, item2, topos) queststatus = getPlayerStorageValue(cid,25173) == 1 if queststatus == -1 then chave = doPlayerAddItem(cid,2088,1) doSetItemActionId(chave,5123) doSetItemSpecialDescription(chave,"Chave da sala dos guardas.") doPlayerSendCancel(cid,'Você encontrou a chave da sala dos guardas! Número 5123.') setPlayerStorageValue(cid, 25173, -1) setPlayerStorageValue(cid, 96745, -1) else doPlayerSendCancel(cid,'Você ja pegou a chave.') end return 1 end só que na hora de usar a chave na porta ( id: 1220 ) não funciona, a porta não abre e eu consigo abrir a porta sem a chave, ja botei action id 5123, tentei uniqueid, tentei trocar a porta, nada funciona alguem sabe arrumar? e fica dando esse erro: http://imageshack.us/photo/my-images/401/451232.png/
  11. Queria um script que mudasse a cidade do player quando ele passasse em cima de um piso, ou fosse teleportado por um npc, ou num portal mesmo. Ja vi em alguns ots que vc pode escolher sua cidade passando por cima de um piso, se alguem me ajudar dou REP
  12. Baixei um servidor outro dia, Azeroth 2.0 versão 9.60, só que na hora de criar uma account por 1/1 ou entrar com qualquer outra conta no servidor diz que a conta não existe. No servidor não veio database nenhuma, coloquei um forgottenserver.s3db Alguem poderia ajudar?
  13. Continua a mesma coisa, queria saber como marcar que a quest foi feita quando o player fizer a quest
  14. Eu coloquei minhas quests no quest log, mas quando o player faz alguma quest não acontece nada no quest log, fica a mesma coisa, não marca que foi feita, e tb a descrição nao ta aparecendo quando abre a missão no jogo. <?xml version="1.0" encoding="UTF-8"?> <quests> <quest name="Liberdade!" startstorageid="19231" startstoragevalue="1"> <mission name="A chave para a liberdade" storageid="19231" startvalue="1" endvalue="2"> <missionstate id="1" description="Procure a chave para a sala dos guardas nos corpos."/> </mission> <mission name="Matar e roubar" storageid="25173" startvalue="1" endvalue="2"> <missionstate id="1" description="Entre na sala dos guardas e roube os itens do bau."/> </mission> <mission name="Uma nova vida" storageid="19231" startvalue="1" endvalue="2"> <missionstate id="1" description="Ache um jeito de escapar da ilha."/> </mission> </quest> </quests>
  15. O que há de errado nesse script? Ta dando um erro: Attempt to call a nill value Stack traceback. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} storage1 = 19231 -------------- Storagevalue 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 if msgcontains(msg, "quest") or msgcontains(msg, "mission") then selfSay("Para voce sair eu preciso de 1 "..getItemNameById(itemid)..", You bringing me draconian steel and obsidian lance in exchange for obsidian knife?", cid) talkState[talkUser] == 0 elseif msgcontains(msg, 'yes') then if getPlayerStorageValue(cid,storage1) < 1 then doPlayerAddItem(cid,5908,1) setPlayerStorageValue(cid,storage1,1) selfSay("Adeus.", cid) doTeleportThing(cid, pos) else selfSay("Voce nao possui o item que eu preciso.", cid) end end return TRUE end
  16. NewAge

    Npc Que Da Quest

    e como eu vo fazer isso?
  17. Quero um NPC que quando o player diga hi, ele ofereça a quest, ai o player pode aceitar ou não. Mas não é quest de itens, é essa aqui: <parameter key="message_greet" value="|PLAYERNAME|! Eu consegui invadir a prisao e abrir a sua cela, mas um guarda que sobreviveu se trancou dentro da {sala} e fechou o portao." /> <parameter key="module_keywords" value="1" /> <parameter key="keywords" value="hi;bye;sala;chave" /> <parameter key="keyword_reply1" value="|PLAYERNAME|! Eu consegui invadir a prisao e abrir a sua cela, mas um guarda que sobreviveu se trancou dentro da {sala} e fechou o portao." /> <parameter key="keyword_reply2" value="Quando conseguir abrir o portao, venha falar comigo novamente." /> <parameter key="keyword_reply3" value="Voce tem que achar a {chave} da sala dos guardas, entrar e abrir o portao, nao posso ajuda-lo, estou muito ferido e nao posso mais lutar. " /> <parameter key="keyword_reply4" value="A chave deve estar com os guardas mortos." /> </parameters> </npc> Ai o player pega a chave, entra na sala, usa a alavanca e abre o portao, dps volta pra falar com o npc O script de abrir portao, pegar chave, ja tenho, só preciso que o npc de a quest pro player.
  18. Quero um NPC que teleporte quando falar com ele, sem cobrar nada pra OT 9.60. Obrigado
  19. NewAge

    Npc Que Teleporta

    eu ja arrumei isso, agora quando tento importar diz que o arquivo xml não ta em um formato valido <?xml version="1.0"?> encoding="UTF-8"?> <npc name="Heller" script="ilha.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <feet="128" legs="0" body="114" head="0" looktype="194"/> <parameters> <parameter value=" |PLAYERNAME|. ! Ate que enfim voce chegou, entre no barco, vou te levar para a ilha.(Diga ilha)" key="message_greet"/> <parameter value="Nao temos tempo a perder, vamos la. Quando chegar la procure a entrada para o refugio." key="message_decline"/> <parameter value="Onde voce vai? Temos que fugir!"/> </parameters> </npc> olha ai como ta
  20. NewAge

    Npc Que Teleporta

    O meu npc não aparece no mapa, como faço pra ele aparecer? Ele não ta aparecendo nem no mapa editor, mesmo quando coloco pra importar
  21. Eu preciso de um NPC que teleporte o player pra um lugar x, y, z quando ele falar com esse npc
  22. Quero saber como usar esse script para mudar o local onde o player nasce quando morre function onDeath(cid, corpse, killer) local Ppos = {x = 340, y = 840, z = 15} -- posicao para onde ele vai ir local monstName = "Pythius The Rotten" -- nome do monstro if isMonster(cid) then if string.lower(getCreatureName(cid)) == string.lower(monstName) then doTeleportThing(killer[1], Ppos) end end return TRUE end <script> <event name="TelePort"/> </script> <event type="death" name="TelePort" event="script" value="teleportmon.lua"/>
  23. Não, acho que vc não entendeu Eu quero que o player nasça numa cidade 1 normalmente, isso eu ja fiz, só que quando ele morrer ele vá para o templo de uma cidade 2? entendeu? Tipo criar uma nova cidade e colocar novas coordenadas pro player nascer, só que não sei arrumar
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...