
Tudo que BetterWar ATS postou
- Auto Hunted
-
ip de players exit
up
-
Loteria apenas para Cast ON
uuuuuuuuuuuuuuuuuuuuuuuuuuup
-
ip de players exit
Nao deu certo :-/
-
ip de players exit
- ip de players exit
upupupupup- Loteria apenas para Cast ON
Salve programadores!!! Da uma ajudinha? tenho o script de loteria: -- Lottery System By Jeff local config = { lottery_hour = "1 Hours", -- Tempo ate a proxima loteria (Esse tempo vai aparecer somente como broadcast message) rewards_id = {2160, 9810, 9822, 9819, 2173, 9693}, -- ID dos Itens Sorteados na Loteria crystal_counts = 100, -- Usado somente se a rewards_id for crystal coin (ID: 2160). website = "no" -- Only if you have php scripts and table `lottery` in your database! } function onThink(interval, lastExecution) if(getWorldCreatures(0) == 0)then return true end local list = {} for i, tid in ipairs(getPlayersOnline()) do list[i] = tid end local winner = list[math.random(1, #list)] local random_item = config.rewards_id[math.random(1, #config.rewards_id)] if(random_item == 2160) then doPlayerAddItem(winner, random_item, config.crystal_counts) doBroadcastMessage("[LOTTERY SYSTEM] Winner: " .. getCreatureName(winner) .. ", Reward: " .. config.crystal_counts .. " " .. getItemNameById(random_item) .. "s! Congratulations! (Proxima Loteria em " .. config.lottery_hour .. ")") else doBroadcastMessage("[LOTTERY SYSTEM] Ganhador: " .. getCreatureName(winner) .. ", Item: " .. getItemNameById(random_item) .. "! Parabens! (Proxima Loteria em " .. config.lottery_hour .. ") Premios que podem cair: 1kk, Rusty Armor, Rusty Helmet, Rusty Boots ou Addon Doll. Fique online! Quem sabe vc pode ser o proximo ganhador?") doPlayerAddItem(winner, random_item, 1) end if(config.website == "yes") then db.executeQuery("INSERT INTO `lottery` (`name`, `item`) VALUES ('".. getCreatureName(winner) .."', '".. getItemNameById(random_item) .."');") end return true end Queria que entregasse o item apenas para player que estiver com Cast On talvez mudando de getPlayersOnline pra getPlayersCast Alguem pode dar um salve ae? VLW!!!- ip de players exit
up- ip de players exit
Entao estou com um problema... Quando logo uma account no meu server, e depois dou exit, fica ip: 0.0.0.0. (0) Queria saber se tem como tirar isso. Eh um script ou source nao sei direito, mas como posso remover?- Player Viajando pelo barco mesmo PK
- Player Viajando pelo barco mesmo PK
- Player Viajando pelo barco mesmo PK
- TFS 0.3.7_SVN PARA TFS 0.4 [8.60]
@up- Player Viajando pelo barco mesmo PK
Players no meu servidor estao viajando mesmo PK! #Queria que os players Vip conseuissem viajar pra cty vip por este npc tbm... Mas só os vip pra conseguir ir pra city vip Captain Bluebear.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Captain Bluebear" script="data/npc/scripts/Captain Bluebear.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="129" head="19" body="69" legs="107" feet="50" addons="0"/> <voices> <voice text="Passages to Carlin, Ab\'Dendriel, Edron, Venore, Port Hope, Liberty Bay, Yalahar, Thais, Svargrond." interval2="100" margin="1" yell="no"/> </voices> <parameters> <parameter key="message_farewell" value="Good bye. Recommend us if you were satisfied with our service." /> <parameter key="message_walkaway" value="Good bye. Recommend us if you were satisfied with our service." /> <parameter key="module_keywords" value="1" /> <parameter key="keywords" value="name;" /> <parameter key="keyword_reply1" value="My name is Captain Bluebear from the Royal Tibia Line." /> <parameter key="keyword_reply3" value="I'm not sailing there. This route is afflicted by a ghost ship! However, I heard that Captain Fearless sails there from Venore." /> <parameter key="message_greet" value="Welcome on board, |PLAYERNAME|. Where may I {sail} you today?"/> </parameters> </npc> Captain Bluebear.lua local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local Topic = {} local storage = 100167 local storage2 = 100168 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 keywordHandler:addKeyword({'name'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "My name is Captain Bluebear from the Royal Tibia Line."}) keywordHandler:addKeyword({'job'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I am the captain of this sailing-ship."}) keywordHandler:addKeyword({'captain'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I am the captain of this sailing-ship."}) keywordHandler:addKeyword({'ship'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "The Royal Tibia Line connects all seaside towns of Tibia."}) keywordHandler:addKeyword({'line'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "The Royal Tibia Line connects all seaside towns of Tibia."}) keywordHandler:addKeyword({'company'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "The Royal Tibia Line connects all seaside towns of Tibia."}) keywordHandler:addKeyword({'route'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "The Royal Tibia Line connects all seaside towns of Tibia."}) keywordHandler:addKeyword({'tibia'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "The Royal Tibia Line connects all seaside towns of Tibia."}) keywordHandler:addKeyword({'good'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "We can transport everything you want."}) keywordHandler:addKeyword({'passenger'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "We would like to welcome you on board."}) keywordHandler:addKeyword({'trip'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Where do you want to go? To Carlin, Ab\'Dendriel, Edron, Venore, Port Hope, Liberty Bay, Yalahar, Thais, Svargrond, Gengia, Pyre, Oken, Alaska e Vilarejo."}) keywordHandler:addKeyword({'passage'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Where do you want to go? To Carlin, Ab\'Dendriel, Edron, Venore, Port Hope, Liberty Bay, Yalahar, Thais, Svargrond, Gengia, Pyre, Oken, Alaska e Vilarejo."}) keywordHandler:addKeyword({'town'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Where do you want to go? To Carlin, Ab\'Dendriel, Edron, Venore, Port Hope, Liberty Bay, Yalahar, Thais, Svargrond, Gengia, Pyre, Oken, Alaska e Vilarejo."}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Where do you want to go? To Carlin, Ab\'Dendriel, Edron, Venore, Port Hope, Liberty Bay, Yalahar, Thais, Svargrond, Gengia, Pyre, Oken, Alaska e Vilarejo."}) keywordHandler:addKeyword({'sail'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Where do you want to go? To Carlin, Ab\'Dendriel, Edron, Venore, Port Hope, Liberty Bay, Yalahar, Thais, Svargrond, Gengia, Pyre, Oken, Alaska e Vilarejo."}) keywordHandler:addKeyword({'go'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Where do you want to go? To Carlin, Ab\'Dendriel, Edron, Venore, Port Hope, Liberty Bay, Yalahar, Thais, Svargrond, Gengia, Pyre, Oken, Alaska e Vilarejo."}) keywordHandler:addKeyword({'ice'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I'm sorry, but we don't serve the routes to the Ice Islands."}) keywordHandler:addKeyword({'senja'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I'm sorry, but we don't serve the routes to the Ice Islands."}) keywordHandler:addKeyword({'folda'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I'm sorry, but we don't serve the routes to the Ice Islands."}) keywordHandler:addKeyword({'vega'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I'm sorry, but we don't serve the routes to the Ice Islands."}) keywordHandler:addKeyword({'darama'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I'm not sailing there. This route is afflicted by a ghostship! However I've heard that Captain Fearless from Venore sails there."}) keywordHandler:addKeyword({'ghost'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Many people who sailed to Darashia never returned because they were attacked by a ghostship! I'll never sail there!"}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'ab\'dendriel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to sail to Ab\'dendriel for free?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = , cost = , destination = {x=32734, y=31668, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'We would like to serve you some time.'}) local travelNode = keywordHandler:addKeyword({'thais'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to sail to Thais for free?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = , cost = , destination = {x=32310, y=32210, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'We would like to serve you some time.'}) local travelNode = keywordHandler:addKeyword({'alaska'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to sail to Alaska for free?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = , cost = , destination = {x=31663, y=31807, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'We would like to serve you some time.'}) local travelNode = keywordHandler:addKeyword({'edron'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to sail to Edron for free?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = , cost = , destination = {x=33173, y=31764, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'We would like to serve you some time.'}) local travelNode = keywordHandler:addKeyword({'venore'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to sail to Venore for free?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = , cost = , destination = {x=32954, y=32022, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'We would like to serve you some time.'}) local travelNode = keywordHandler:addKeyword({'port hope'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to sail to Port Hope for free?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = , cost = , destination = {x=32527, y=32784, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'We would like to serve you some time.'}) local travelNode = keywordHandler:addKeyword({'svargrond'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to sail to Svargrond for free?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = , cost = , destination = {x=32341, y=31108, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'We would like to serve you some time.'}) local travelNode = keywordHandler:addKeyword({'liberty bay'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to sail to Liberty Bay for free?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = , cost = , destination = {x=32285, y=32892, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'We would like to serve you some time.'}) local travelNode = keywordHandler:addKeyword({'yalahar'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to sail to Yalahar for free?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = , cost = , destination = {x=32816, y=31272, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'We would like to serve you some time.'}) local travelNode = keywordHandler:addKeyword({'darashia'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to sail to Darashia for free?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = , cost = , destination = {x=33289, y=32480, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'We would like to serve you some time.'}) local travelNode = keywordHandler:addKeyword({'ankrahmun'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you seek a passage to Ankrahmun free?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = , cost = , destination = {x=33092, y=32883, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'We would like to serve you some time.'}) function greetCallback(cid) Topic[cid] = return true end local carlin_cost = function creatureSayCallback(cid, type, msg) if (not npcHandler:isFocused(cid)) then return false end if (msgcontains(msg, 'no') and Topic[cid] >= 1) then npcHandler:say("We would like to serve you some time.",cid) Topic[cid] = end if (msgcontains(msg, "carlin") and getPlayerStorageValue(cid,storage) == 1 and getPlayerStorageValue(cid,storage2) == -1) then npcHandler:say("Do you want to sail to Carlin for free?",cid) Topic[cid] = 1 elseif (Topic[cid] == 1) then if (msgcontains(msg, 'yes') and doPlayerRemoveMoney(cid,carlin_cost) and Topic[cid] == 1) then doTeleportThing(cid,{x=32387, y=31820, z=6}) doSendMagicEffect({x=32387, y=31820, z=6},CONST_ME_TELEPORT) setPlayerStorageValue(cid,storage2, 1) setPlayerStorageValue(cid,100171,3) else npcHandler:say("You dont have enough of gold.",cid) end end if (msgcontains(msg, "carlin")) and (getPlayerStorageValue(cid,storage) == -1) then npcHandler:say("Do you want to sail to Carlin for free?",cid) Topic[cid] = 2 elseif (Topic[cid] == 2) then if (msgcontains(msg, 'yes') and doPlayerRemoveMoney(cid,carlin_cost) and Topic[cid] == 2) then doTeleportThing(cid,{x=32387, y=31820, z=6}) doSendMagicEffect({x=32387, y=31820, z=6},CONST_ME_TELEPORT) else npcHandler:say("You dont have enough of gold.",cid) end end if (msgcontains(msg, "carlin")) and (getPlayerStorageValue(cid,storage) >= 1 and getPlayerStorageValue(cid,storage2) >= 1) then npcHandler:say("Do you want to sail to Carlin for free?",cid) Topic[cid] = 3 elseif (Topic[cid] == 3) then if (msgcontains(msg, 'yes') and doPlayerRemoveMoney(cid,carlin_cost) and Topic[cid] == 3) then doTeleportThing(cid,{x=32387, y=31820, z=6}) doSendMagicEffect({x=32387, y=31820, z=6},CONST_ME_TELEPORT) else npcHandler:say("You dont have enough of gold.",cid) end end return true end npcHandler:setCallback(CALLBACK_GREET, greetCallback) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Alguem ae pode dar uma ajudinha?? #EDIT# Quando logo um char no meu server e dou EXIT ele fica ip 0.0.0. Alguem sabe como tirar isso?- TFS 0.3.7_SVN PARA TFS 0.4 [8.60]
@UP Algum bom homem pra me ajudar?- Liberar Acessos nas Missões
nossa man, fala pelo menos de quais missoes esta falando pra nos tentar... Tem yalahar, goroma, oak e muitas outras...- Itens Iniciais
- CAIXA DE INFORMAÇÃO - TIBIA
Nao da pra editar. Da pra editar a imagem do helmet que aparece la, que seria doShowTextDialog(cid, 9735, str) 9735 - o id do item. Da pra vc mudar a caixa e colocar um PopUp que ficaria uma mensagem no inicio escrito: For You Information No caso vc coloca doPlayerPopupFYI(cid, "SUAMENSAGEMAQUI\nPulando uma Linha\n\nPulando duas linhas Etc...")- algue pode da Help com esse script
Qual o problema com ele?- Ajuda a criar um item q de use ele troca por outro item
explica melhor, vc quer uma flexa que hita 4 em um?- TFS 0.3.7_SVN PARA TFS 0.4 [8.60]
Pessoal do TK eh o seguinte... Tenho um servidor muito TOP Versão 8.60; Estou com um grande problema. A distro dele é: 0.3.7_SVN revisado pela ChaitoSoft; Compilei o TFS 0.4_DEV para poder rodar com Cast, mas aparentemente, pelo que percebi rodando na Net, não tem suporte de como adaptar este servidor... Gostaria de uma ajuda (instruções detalhadas) nem que eu dê rep+ pro resto da vida... Mas afinal, qual o problema com meu Distro? Bugs: *Clonagem de items count por armas de duas maos; *Não tem Cast System; *Bug Yellow Skull entre outros bugs; Se tiver uma boa alma ae pra dar uma ajuda, eu aguardo ansiosamente pela atenção e suporte... *LEMBRANDO* Consigo compilar TFS 0.4, mas não consigo rodar. Para quem quiser saber qual otserv estou usando, na chaitosoft tem, eh o global860-master- doPlayerPopupFYI
Não deu certo- doPlayerPopupFYI
VLW man, coloquei o " doPlayerPopupFYI(cid, message) " antes do ultimo return true e funcionou! Obrigado! Teria como fazer isso em Talkaction? Tipo !rank, !serverinfo, !notice- doPlayerPopupFYI
como fazer uma mensagem doPlayerPopupFYI para TFS 1.1? Aquelas mensagens que aparece um Popup escrito "For you information" Tem como fazer em ots 8.60 mas nas tfs 1.1 n consegui.. Qual seria o cmd?- [BUG] News ticker gesior
@up Aconteceu o mesmo comigo... Deletei os tickers e bugou a pagina... - ip de players exit
Informação Importante
Confirmação de Termo