Tudo que Danihcv postou
-
Dt Base
Aqui tem como vc fazer uma: http://www.tibiaking.com/forum/topic/33611-tutorial-resolvendo-qualquer-erro-na-data-base/#entry189040 Tenta ae.
-
Alavanca que funciona apenas se tiver em tal piso
Tenta aí: -- Start Config -- demon1pos = {x = 2175, y = 3114, z = 7} demon2pos = {x = 2177, y = 3114, z = 7} demon3pos = {x = 2179, y = 3114, z = 7} demon4pos = {x = 2175, y = 3118, z = 7} demon5pos = {x = 2177, y = 3118, z = 7} demon6pos = {x = 2179, y = 3118, z = 7} demon7pos = {x = 2173, y = 3117, z = 7} demon8pos = {x = 2181, y = 3117, z = 7} -- End Config -- local posPlayerCrt = {x = 2171, y = 3108, z = 7} function onUse(cid, item, frompos, item2, topos) if getPlayerPosition(cid) = posPlayerCrt then doTeleportThing(cid,{x = 2177, y = 3116, z = 7}) doSummonCreature("Orshabaal", demon1pos) doSummonCreature("Orshabaal", demon2pos) doSummonCreature("Orshabaal", demon3pos) doSummonCreature("Orshabaal", demon4pos) doSummonCreature("Orshabaal", demon5pos) doSummonCreature("Orshabaal", demon6pos) doSummonCreature("Morgaroth", demon7pos) doSummonCreature("Morgaroth", demon8pos) end else doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, "Entre no piso branco.") end
-
[AJUDA] Meu website esta com os nomes das cidades do Global
Vai no seu config.php onde tem isso: $towns_list[0] = array(1 => 'Thais', 2 => 'Venore', 5 => 'Carlin'); Edita aí.
-
Erro No Mysql Ou Sqlite
Então realmente ñ sei... :/
-
Erro No Mysql Ou Sqlite
Então põe assim: sqlType = "sqlite" sqlHost = "localhost" sqlPort = 3306 sqlKeepAlive = 0 mysqlReadTimeout = 5000 mysqlWriteTimeout = 5000 encryptionType = "sha1"
- [DUVIDA] Copilar client
-
Como atualizar house no BD
Abre a tua data base, exclua a table houses caso ela exista, e execute isso: CREATE TABLE houses ( id INTEGER NOT NULL, world_id INTEGER NOT NULL DEFAULT '0', owner INTEGER NOT NULL, paid INTEGER NOT NULL DEFAULT '0', warnings INTEGER NOT NULL DEFAULT '0', lastwarning INTEGER NOT NULL DEFAULT '0', name VARCHAR( 255 ) NOT NULL, town INTEGER NOT NULL DEFAULT '0', size INTEGER NOT NULL DEFAULT '0', price INTEGER NOT NULL DEFAULT '0', rent INTEGER NOT NULL DEFAULT '0', doors INTEGER NOT NULL DEFAULT '0', beds INTEGER NOT NULL DEFAULT '0', tiles INTEGER NOT NULL DEFAULT '0', guild BOOLEAN NOT NULL DEFAULT 'FALSE', clear BOOLEAN NOT NULL DEFAULT 'FALSE', UNIQUE ( id, world_id ) ); Aqui ta meu tutorial de como resolver problemas na data base: http://www.tibiaking.com/forum/topic/33611-tutorial-resolvendo-qualquer-erro-na-data-base/#entry189040
-
Erro No Mysql Ou Sqlite
Encontra isso no teu config.lua e deixa assim: sqlType = "mysql" sqlHost = "localhost" sqlPort = 3306 sqlKeepAlive = 0 mysqlReadTimeout = 5000 mysqlWriteTimeout = 5000 encryptionType = "sha1"
- [DUVIDA] Copilar client
-
(Resolvido)[AJUDA] Não consigo entrar no meu servidor!
A porta 80 e 8090 são para o site, a porta pra loggar no ot eh 7171
-
remover runa com runa infinita
N entendi mt bem o problema... Talvez pq eu esteja meio cansado.... Se puder explicar um pouco mais o q qr, eu possa ajudar.
-
Erro
Mais detalhes sobre erro...
-
Erro NPCS
Hm... No erro só aparece isso msm??
-
(Resolvido)Addons Full
Tenta ae: local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["noble"]={140}, ["summoner"]={141}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156}, ["beggar"]={157}, ["shaman"]={158}, ["norse"]={252}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["yalaharian"]={324}, ["warmaster"]={335} } local maleOutfits = { ["citizen"]={128}, ["hunter"]={129}, ["mage"]={130}, ["knight"]={131}, ["noble"]={132},["summoner"]={133}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["norse"]={251}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["yalaharian"]={325}, ["warmaster"]={336} } function onLogin(cid) if(getPlayerSex(cid) == 0)then doPlayerAddOutfit(cid, femaleOutfits[i], 3) else doPlayerAddOutfit(cid, maleOutfits[i], 3) end end
-
[NPC's] NPC Donater
.lua: 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 local items = { item1 = {2346, 2349}, -- item1 item que será pedido e que será dado na primeira troca item2 = {2033, 15515} -- item2 item que será pedido e que será dado na segunda troca } local counts = { count1 = {1, 1}, -- count1 quantidade que será pedido e que será dado na primeira troca count2 = {10, 1} -- count2 quantidade que será pedido e que será dado na segunda troca } function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, 'blue note') then if getPlayerItemCount(cid, items.item1[1]) >= counts.count1[1] then doPlayerRemoveItem(cid, items.item1[1], counts.count1[1]) doPlayerAddItem(cid, items.item1[2], counts.count1[2]) selfSay('You just swap '.. counts.count1[1] ..' '.. getItemNameById(items.item1[1]) ..' for '.. counts.count1[2] ..' '.. getItemNameById(items.item1[2]) ..'.', cid) else selfSay('You need '.. counts.count1[1] ..' '.. getItemNameById(items.item1[1]) ..'.', cid) end elseif msgcontains(msg, 'bar of gold') then if getPlayerItemCount(cid, items.item2[1]) >= counts.count2[1] then doPlayerRemoveItem(cid, items.item2[1], counts.count2[1]) doPlayerAddItem(cid, items.item2[2], counts.count2[2]) selfSay('You just swap '.. counts.count2[1] ..' '.. getItemNameById(items.item2[1]) ..' for '.. counts.count2[2] ..' '.. getItemNameById(items.item2[2]) ..'.', cid) else selfSay('You need '.. counts.count2[1] ..' '.. getItemNameById(items.item2[1]) ..'.', cid) end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) E o xml do npc que vc precisa colocar quais itens ele tem para trocar: <?xml version="1.0" encoding="UTF-8"?> <npc name="Jax" script="Jax.lua" walkinterval="2000" floorchange="0"> <health now="150" max="150" /> <look type="134" head="57" body="59" legs="40" feet="76" corpse="2212" /> <parameters> <parameter key="message_greet" value="Hello |PLAYERNAME|. Do not want to make an exchange? I have {blue note} and {bar of gold}." /> <parameter key="message_farewell" value="Bye bye!" /> </parameters> </npc> Ñ esqueça de configurar as trocas:
-
Erro NPCS
Posta seu script dicer.lua aqui.
-
Como conectar servidor com o website ?
A única opção que eu conheça, é ir adicionando coluna por coluna, célula por célula, ou seja, account name por account name, senha por senha, etc... Ou seja, trabalho muito muuuuuito cansativo.
-
[NPC's] NPC Donater
--SCRIPT FEITO POR Danihcv, para TibiaKing.com local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 -- Config -- local configs = { FirstItemId = 9662, --ID do item que vai ser dado ao npc pelo player FirstItemCount = 5, --Quantidade desse item SecondItemId = 2321, --ID do item que o player vai receber SecondItemCount = 1, --Quantidade do item que o player vai receber msgMeet = 'Você deseja trocar '..FirstItemCount .. ' '.. getItemName(FirstItemId) ..' por '.. SecondItemCount ..' '.. getItemName(SecondItemId) ..'?', msgNotItem = "Voce não tem o item necessario.", } function npcTroca(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if (getItemCount(cid, configs.FirstItemId) == configs.FirstItemCount) then doRemoveItem(configs.FirstItemId, config.FirstItemCount) doPlayerAddItem(cid, configs.SecondItemId, configs.SecondItemCount) else return doPlayerSendTextMessage(cid, 27, configs.msgtNotItem) end end end itemTrade = keywordHandler:addKeyword({'offer'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = configs.msgMeet}) itemTrade:addChildKeyword({'yes'}, npcTroca, {}) itemTrade:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then.', reset = true}) npcHandler:addModule(FocusModule:new())
-
Como conectar servidor com o website ?
Ñ dá pra vc transpor os dados ñ, pois a data base usada pelo seu ot, provavelmente é sqlite e a data base usada pelo site é mysql.
-
como retornar a descrição do item
function onUse(cid, item, fromPosition, itemEx, toPosition) Msg = getItemDesc(itemEx) if itemEx.itemid == 3333 then doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, msg) end end Vi no OtLand, vê se funciona.
-
(Resolvido)Onde encontro as quest's do meu servidor?
Script pra pisar no piso só se tiver tal level: local levelMin = 150 --LEVEL NECESSÁRIO function onStepIn(cid, pos) if(getPlayerLevel(cid)) <= levelMin then doPlayerSendCancel(cid,"Para acessar essa área é necessário ter level "..levelMin..".") end end Sobre os baús, coloca essa tag no actions.xml: <action actionid="37001" event="script" value="questbaus.lua"/> <action actionid="37002" event="script" value="questbaus.lua"/> <action actionid="37003" event="script" value="questbaus.lua"/> Agora cria um arquivo chamado questbaus.lua dentro da pasta scripts: --Script by Danihcv to TibiaKing.com local item1 = 2148 --ID DO ITEM QUE GANHA NO BAÚ 1 local item2 = 2164 --ID DO ITEM QUE GANHA NO BAÚ 2 local item3 = 9693 --ID DO ITEM QUE GANHA NO BAÚ 3 function onUse(cid, item, fromPosition, itemEx, toPosition) if item.uid == 37001 then queststatus = getPlayerStorageValue(cid, 37004) if queststatus < 1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found "..getItemNameById(item1)..".") doPlayerAddItem(cid, item1, 1) doPlayerSetStorageValue(cid, 37004, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end elseif item.uid == 37002 then queststatus = getPlayerStorageValue(cid, 37004) if queststatus < 1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found "..getItemNameById(item2)..".") doPlayerAddItem(cid, item2, 1) doPlayerSetStorageValue(cid, 37004, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end elseif item.uid == 37003 then queststatus = getPlayerStorageValue(cid, 37004) if queststatus < 1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found "..getItemNameById(item3)..".") doPlayerAddItem(cid, item3, 1) doPlayerSetStorageValue(cid, 37004, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end end return TRUE end Agora crie três baús pelo editor de mapa, e no baú 1 vc coloca o action ID 37001, no baú 2 vc coloca o action ID 37002, no baú 3 vc coloca o action ID 37003.
-
Drop Items
Coloca open pvp... Se ñ souber colocar me fala que eu vejo aqui.
- Bug na importação do mapa
- New monstros não
-
Ajuda NPC'S
Aí vc entra com o god e digita /n traderNpc aí se ñ funcionar digita /n Trader