Tudo que loreal postou
-
modificar esse script de bless
Olá amigos gostaria de deixar esse escritpt de bless para quando player tiver level 300+ perder apenas 20% da sua exp algum pode ajudar vai me ajudar muito!! só tenho ele em talkactions mais creio eu que da para fazer em creaturescripts script de bless em Talkactions local bless = {1, 2, 3, 4, 5} local cost = 50000 local maxlevel = 50000 function onSay(cid, words, param) local lvl = getPlayerLevel(cid) local new_cost = (lvl * cost) / 500 local target = getPlayerGUID(cid) for i = 1, table.maxn(bless) do if(getPlayerBlessing(cid, bless[i])) then doPlayerSendCancel(cid, "Voceja tem todas as bless.") return TRUE end end if (getPlayerLevel(cid) >= maxlevel) then if(doPlayerRemoveMoney(cid, new_cost) == TRUE) then for i = 1, table.maxn(bless) do doPlayerAddBlessing(cid, bless[i]) doPlayerSendTextMessage(cid,22,"Agora voce tem todas bless nao precissa de aol!") end else doPlayerPopupFYI(cid, "Voce precisa "..new_cost.." para a bless.") end elseif(getPlayerLevel(cid) < maxlevel) then if(doPlayerRemoveMoney(cid, cost) == TRUE) then for i = 1, table.maxn(bless) do doPlayerAddBlessing(cid, bless[i]) end doPlayerPopupFYI(cid, "Agora voce tem todas bless nao precissa de aol!") else doPlayerPopupFYI(cid, "voce precissa de "..cost.."para comprar bless.") end end return false end up
- itens house sumindo
-
(Resolvido)"You cannot use this object.", mesmo com o script no actions
tenta assim em actions.xml coloca <action itemid="2148;2152;2160" event="script" value="changegold.lua"/> changegold.lua local coins = { [ITEM_GOLD_COIN] = { to = ITEM_PLATINUM_COIN, effect = TEXTCOLOR_YELLOW }, [ITEM_PLATINUM_COIN] = { from = ITEM_GOLD_COIN, to = ITEM_CRYSTAL_COIN, effect = TEXTCOLOR_LIGHTBLUE }, [ITEM_CRYSTAL_COIN] = { from = ITEM_PLATINUM_COIN, effect = TEXTCOLOR_TEAL } } function onUse(cid, item, fromPosition, itemEx, toPosition) if(getPlayerFlagValue(cid, PLAYERFLAG_CANNOTPICKUPITEM)) then return false end local coin = coins[item.itemid] if(not coin) then return false end if(coin.to ~= nil and item.type == ITEMCOUNT_MAX) then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, coin.to, 1) doSendAnimatedText(fromPosition, "$$$", coins[coin.to].effect) elseif(coin.from ~= nil) then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, coin.from, ITEMCOUNT_MAX) doSendAnimatedText(fromPosition, "$$$", coins[coin.from].effect) end return true end
-
Ajuda pf
executa la no seu banco de dados essa query CREATE TABLE `ot.ip_bans` ( `id` int(11) NOT NULL auto_increment, `name` varchar(255) NOT NULL default '0', `password` int(11) NOT NULL default '0', `type` varchar(255) NOT NULL, `premdays` int(11) NOT NULL default '0', `lastday` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-
Ajuda- movements event zombie
tenta assim local config = { playerCount = 5991, -- Global storage for counting the players in the event maxPlayers = 15 -- Max players who can participate } function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) if getGlobalStorageValue(config.playerCount) < config.maxPlayers then setGlobalStorageValue(config.playerCount, getGlobalStorageValue(config.playerCount)+1) if getGlobalStorageValue(config.playerCount) == config.maxPlayers then doBroadcastMessage("O evento 'Zumbi' foi lotado! E começerá em alguns instantes.", MESSAGE_STATUS_CONSOLE_BLUE) else doBroadcastMessage("O jogador (" .. getPlayerName(cid) .. ") entrou no evento 'Zumbi'! Atualmente " .. getGlobalStorageValue(config.playerCount) .. " jogadores entraram!", MESSAGE_STATUS_CONSOLE_BLUE) doBroadcastMessage("Restando "..config.maxPlayers - getGlobalStorageValue(config.playerCount).." jogadores para entrar!", MESSAGE_STATUS_CONSOLE_BLUE) end else addEvent(tpBack, 1000, cid, fromposition) doPlayerSendCancel(cid, "") doBroadcastMessage("[EVENTO ZUMBI MENSAGEM] está cheio. Já existe " .. config.maxPlayers .. " jogadores participando.", MESSAGE_STATUS_CONSOLE_ORANGE) return false end print(getStorage(config.playerCount) .. " Players in the zombie event.") return true end function tpBack(cid, fromPosition) doTeleportThing(cid, fromPosition, true) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT) return true end
- itens house sumindo
-
itens house sumindo
nada
-
itens house sumindo
ajuda ai ainda estou com esse erro , algumas houses some os items somente em alguns titles igual tinha falado anteriormente n tem nada bugado ta tudo normal house zone,protect zone, normal igual as outras houses mais apenas alguns titles que os items some sendo que ta tudo normal alguém pode me ajudar nisso? estou passando muita dor de cabeça com esse erro , utilizo otxserver 2 , versão 8.60. obs: ja refiz a house por completo exlui tudo e refiz mais erro ainda persiste up up
-
[PEDIDO] BANNER PARA O MEU OTSERV
bk banner
-
[AJUDA] Aumentando a Velocidade do Item
amigo o magic forcefield do tibia e uma sprite do mesmo modo que vc postou ai no tópico só se você editar a sprite do magic forcefield no photo shop e criar um cliente próprio daria certo.
-
(Resolvido)Como por acentos em scripts .lua?
vlw isso mesmo ou também achei uma solução de colocar <?xml version="1.0" encoding="ISO-8859-1"?> antes do script deu certo com migo vlw
-
(Resolvido)Como por acentos em scripts .lua?
Ola galerinha e estou com uma duvida como ponho acentos em scripts ? ex: você, não, só, e assim por diante aguem podeira me ajudar ???? porque quando eu coloco com os acentos sai bugado as frases..
-
(Resolvido)[Erro] Event Zombie
tenta assim amigo. ocal config = {playerCount = 2001, -- Global storage for counting the players left/entered in the event zombieCount = 2002, -- Global storage for counting the zombies in the event teleportActionId = 2000, -- Action id of the teleport needed for the movement script teleportPosition = {x = 32364, y = 32232, z = 7, stackpos = 1}, -- Where the teleport will be created teleportToPosition = {x = 32324, y = 31941, z = 7}, -- Where the teleport will take you teleportId = 1387, -- Id of the teleport timeToStartEvent = 5, -- Minutes, after these minutes the teleport will be removed and the event will be declared started timeBetweenSpawns = 20, -- Seconds between each spawn of zombie zombieName = "event zombie", -- Name of the zombie that should be summoned playersNeededToStartEvent = 5, -- Players needed before the zombies can spawn. -- Should be the same as in the creaturescript! -- The zombies will spawn randomly inside this area fromPosition = {x = 32298, y = 31915, z = 7}, -- top left cornor of the playground toPosition = {x = 32357, y = 31970, z = 7}, -- bottom right cornor of the playground } function onTime() local tp = doCreateTeleport(config.teleportId, config.teleportToPosition, config.teleportPosition) doItemSetAttribute(tp, "aid", config.teleportActionId) doBroadcastMessage("Zombie Event iniciara em " .. config.timeToStartEvent .. " Minutos! O Teleporte sera fechado quando der inicio ao Evento!", MESSAGE_STATUS_WARNING) setGlobalStorageValue(config.playerCount, 0) setGlobalStorageValue(config.zombieCount, 0) addEvent(startEvent, config.timeToStartEvent * 1000 * 60) print(getGlobalStorageValue(2001)) end function startEvent() local get = getThingfromPos(config.teleportPosition) if get.itemid == config.teleportId then doRemoveItem(get.uid, 1) end local fromp, top = config.fromPosition, config.toPosition if getGlobalStorageValue(config.playerCount) >= config.playersNeededToStartEvent then addEvent(spawnZombie, config.timeBetweenSpawns * 1000) doBroadcastMessage("Boa Sorte Participantes! O Teleporte Foi Fechado", MESSAGE_STATUS_WARNING) for x = fromp.x, top.x do for y = fromp.y, top.y do for z = fromp.z, top.z do areapos = {x = x, y = y, z = z, stackpos = 253} getPlayers = getThingfromPos(areapos) if isPlayer(getPlayers.uid) then doPlayerSendTextMessage(getPlayers.uid, MESSAGE_EVENT_ADVANCE, "Os Primeiros Zombie Vao aparecer em " .. config.timeBetweenSpawns .. " Segundos! Boa Sorte!") end end end end else doBroadcastMessage("O Evento Zombie nao pode iniciar devido a alguns Participantes.\n Pelo Menos " .. config.playersNeededToStartEvent .. " Participantes Necessarios!", MESSAGE_STATUS_WARNING) for x = fromp.x, top.x do for y = fromp.y, top.y do for z = fromp.z, top.z do areapos = {x = x, y = y, z = z, stackpos = 253} getPlayers = getThingfromPos(areapos) if isPlayer(getPlayers.uid) then doTeleportThing(getPlayers.uid, getTownTemplePosition(getPlayerTown(getPlayers.uid)), false) doSendMagicEffect(getPlayerPosition(getPlayers.uid), CONST_ME_TELEPORT) end end end end end end function spawnZombie() if getGlobalStorageValue(config.playerCount) >= 2 then pos = {x = math.random(config.fromPosition.x, config.toPosition.x), y = math.random(config.fromPosition.y, config.toPosition.y), z = math.random(config.fromPosition.z, config.toPosition.z)} doSummonCreature(config.zombieName, pos) doSendMagicEffect(pos, CONST_ME_MORTAREA) setGlobalStorageValue(config.zombieCount, getGlobalStorageValue(config.zombieCount)+1) doBroadcastMessage("Um Zombie Tem Gerado! Nao Existe Atualmente " .. getGlobalStorageValue(config.zombieCount) .. " Zombie em Caso Zombies!", MESSAGE_STATUS_CONSOLE_RED) addEvent(spawnZombie, config.timeBetweenSpawns * 1000) end end
-
Anti push em area pz
ola galerinha vi um sistema em um ot que achei bem útil e um anti push em area pz. ex; se o player tiver em area pz outros players n conseguir puxar eles pode ser via lua ou source ficarei grato quem poder ajudar. up
-
Help comando para banir player no trade
olá galerinha do tk gostaria de um comando que god banisse o player do trade e do help, deixando ele sem acesso esses 2 channels alguém poderia ajudar ficarei muito agradecido!
-
help comando em talkactions!
Olá amigos eu to com um script de addon, gostaria de deixá-lo igual do undewar... exemplo player fala !addon first mage ele ganha first addon de mage ou !addon second mage ele ganha second addon de mage. Atualmente o script ta funcionado assim exemplo !addon mage,1 ou !addon mage,2 eu tentei mudar esse paramentos 1, e o 2 para first e second, mais os player quando usa comando n ganha as addons escolhidas.. if (x[2] == '1' or x[2] == '2') then SCRIPT function onSay(cid, words, param) local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["noblewoman"]={140}, ["summoner"]={141}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156}, ["beggar"]={157}, ["shaman"]={158}, ["norsewoman"]={252}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["yalaharian"]={324}, ["warmaster"]={336} } local maleOutfits = { ["citizen"]={128}, ["hunter"]={129}, ["mage"]={130}, ["knight"]={131}, ["nobleman"]={132},["summoner"]={133}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["norsewoman"]={251}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["yalaharian"]={325}, ["warmaster"]={335}, ["wayfarer"]={366} } local msg = {"Command requires GOOD param!", "You dont have Addon Doll!", "Bad param!", "Full Addon Set sucesfully added!"} local x = string.explode(param, ",") if(getPlayerItemCount(cid, 9693) > 0) then if param ~= "" then if maleOutfits[x[1]:lower()] and femaleOutfits[x[1]:lower()] then if (x[2] == '1' or x[2] == '2') then doPlayerRemoveItem(cid, 9693, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4]) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) if(getPlayerSex(cid) == 0)then doPlayerAddOutfit(cid, femaleOutfits[x[1]:lower()][1], x[2]) else doPlayerAddOutfit(cid, maleOutfits[x[1]:lower()][1], x[2]) end else doPlayerSendTextMessage(cid, 27, msg[3]) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[3]) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1]) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2]) end return true end
-
(Resolvido)Help comando em talkactions
vlw
-
(Resolvido)Help comando em talkactions
desse modo deu certo tem como fazer para quando player tentar utilizar comando novamente mostrar quantos minutos falta ? tentei "..exhaustion.get.." mais não deu certo
-
(Resolvido)Help comando em talkactions
não ta te teletransportando só fica com a mensagem Voce nao pode ir para templo com pk, nem com battle. mesmo eu sem battle
-
(Resolvido)Help comando em talkactions
galerinha estou fazendo um script para quando player tiver perdido utilizar comando !dp, fiz o script ta tudo certo só gostaria de por uma exhausted de 10 minutos para ser usado comando novamente alguém pode ajudar? creio eu que tenha que utilizar uma storage +ou- assim local STORAGE_IR = 12701 local delay = 1 * 10 local lastUse = getPlayerStorageValue(cid, STORAGE_IR) local ticks = os.time() - lastUse if ticks < delay then return true else setPlayerStorageValue(cid, STORAGE_IR, os.time()) script function onSay(cid, words, param, channel) local tmp = getCreaturePosition(cid) local pos = {x = 162, y = 49, z = 7} local minlevel = 8 local config = { battle = true, } if getPlayerLevel(cid) >= minlevel then if getPlayerSkullType(cid) >= 3 then elseif config.battle == true and getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE, "Voce nao pode ir para templo com pk, nem com battle.") return true end doTeleportThing(cid, pos, true) doSendMagicEffect(tmp, CONST_ME_POFF) doSendMagicEffect(pos, CONST_ME_TELEPORT) else doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_ORANGE, "Você deve ter level ".. minlevel ..".") end return true end
-
Duvida sobre posicionamento do mostro
x mostro com posição virada para direita e x mostro virado para esquerda. igual da imagem up
-
Duvida sobre posicionamento do mostro
sim isso eu já fiz como disse no tópico eu quero mudar as posição dele mesmo quando eles atacar algum player deixar igual da imagem...
-
Duvida sobre posicionamento do mostro
bom gostaria de saber como deixo para um mostro fica em só uma posição com speed 0 igual da imagem x mostro com posição virada para direita e x mostro virado para esquerda. obs; na imagem apenas puxei os demons para posição desejadas para servir como demostração. .
- Trade OFF 8.60
-
Errro nesse script de tp help
função desse escript e checar x getThingPos(i) para ver se tem algum player em algum title com as uid de 2700 até 3900 e teletransportá-lo caso tenha ele pula para próximo getThingPos(i) que eu tive que adicionar em cada title uid do 2700 até 3900. obs; eu n adicionei ate 3900 so um pouco..3900 e o limite que pode adicionar.