Ir para conteúdo

ViitinG

Membro
  • Registro em

  • Última visita

Tudo que ViitinG postou

  1. ViitinG postou uma resposta no tópico em Formação de Equipe
    O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Downloads → Servidores Derivados" Para: "OTServ → Projetos / Formação de Equipes → Formação de Equipes"
  2. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Downloads → Servidores Derivados" Para: "OTServ → Suporte OTServ → Suporte de Scripts" "data/creaturescripts/scripts/tpmonster.lua" : local config = { message = "Parabens voce derrotou o XXX. Foi criado um teleport no corpo do XXXX !!", timeToRemove = 60, teleportId = 1387, bosses = { ["Ushuriel"] = { x = 912, y = 1033, z = 7 }, } } local function removal(position) doRemoveThing(getTileItemById(position, config.teleportId).uid, 1) return TRUE end function onDeath(cid, corpse, killer) registerCreatureEvent(cid, "teleportmonster") local position = getCreaturePosition(cid) for name, pos in pairs(config.bosses) do if name == getCreatureName(cid) then teleport = doCreateTeleport(config.teleportId, pos, position) doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1) addEvent(removal, config.timeToRemove * 1000, position) doSendMagicEffect(position,10) end end return TRUE end "data/creaturescripts/creaturescripts.xml" : <event type="death" name="teleportmonster" script="tpmonster.lua"/> Agora vá no monster que você quer e coloque está tag no fim : <script> <event name="teleportmonster"/> </script> Explicando :
  3. ViitinG postou uma resposta no tópico em Suporte Tibia OTServer
    "data/actions/scripts/quest1.lua" : function onUse(cid, item, frompos, item2, topos) if item.uid == 5052 then queststatus = getPlayerStorageValue(cid,49635) if queststatus == -1 then doPlayerSendTextMessage(cid,22,"Quest completa!") doPlayerAddItem(cid,2160,1) setPlayerStorageValue(cid,49635,1) else doPlayerSendTextMessage(cid,22,"Voce ja completou a quest.") end end end "data/actions/actions.xml" : <action uniqueid="5052" script="quest1.lua" /> Explicando :
  4. ViitinG postou uma resposta no tópico em Suporte Tibia OTServer
    O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de Scripts"
  5. ViitinG postou uma resposta no tópico em Suporte Tibia OTServer
    O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de Scripts"
  6. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de Infraestrutura"
  7. ViitinG postou uma resposta no tópico em Suporte Tibia OTServer
    O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de Scripts"
  8. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de Scripts" Para: "OTServ → Suporte OTServ → Suporte de Servidores Derivados"
  9. Nd

    ViitinG postou uma resposta no tópico em Suporte Tibia OTServer
    O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de Servidores Derivados" Para: "OTServ → Suporte OTServ → Suporte de Mapping"
  10. No lugar que você criou o tópico é para scripts de Monster e NPC's prontos e não para suporte,qualquer suporte relacionado a script deve ser criado na área de Suporte Scripts,mesma coisa para as outras áreas de suporte.Espero que tenha entendido,abraço !
  11. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de Scripts" Para: "OTServ → Suporte OTServ → Suporte de Servidores Derivados"
  12. Tenta mudar o xml para este : <?xml version="1.0" encoding="UTF-8"?> <npc name="Mad" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0"> <health now="150" max="150"/> <look type="129" head="75" body="115" legs="125" feet="85" addons="3"/> <parameters> <parameter key="module_shop" value="1"/> <parameter key="message_greet" value="Hello |PLAYERNAME|. I buy swords, clubs, axes, helmets, boots, legs, shields and armors."/> <parameter key="shop_sellable" value="skull helmet,5741,35000;dreaded cleaver,7419,30000;dragonslayer,7402,20000;royal helmet,2498,40000;warrior helmet,2475,6000;crusader helmet,2497,9000;crown helmet,2491,5000;devil helmet,2462,4000;mystic turban,2663,500;chain helmet,2458,35;iron helmet,2459,30;steel boots,2645,40000;boots of haste,2195,40000;golden boots,2646,200000;magic plate armor,2472,200000;dragon scale mail,2492,60000;demon armor,2494,90000;golden armor,2466,30000;crown armor,2487,20000;knight armor,2476,5000;blue robe,2656,15000;lady armor,2500,2500;plate armor,2463,400;brass armor,2465,200;chain armor,2464,100;golden legs,2470,80000;crown legs,2488,15000;knight legs,2477,6000;plate legs,2647,500;mastermind shield,2514,150000;demon shield,2520,40000;blessed shield,2523,150000;great shield,2522,100000;vampire shield,2534,25000;medusa shield,2536,8000;amazon shield,2537,4000;crown shield,2519,5000;tower shield,2528,4000;guardian shield,2515,200;beholder shield,2518,1500;dwarven shield,2525,100;magic longsword,2390,150000;warlord sword,2408,100000;magic sword,2400,120000;giant sword,2393,10000;bright sword,2407,6000;ice rapier,2396,4000;fire sword,2392,3000;serpent sword,2409,1500;spike sword,2383,800;two handed sword,2377,400;broad sword,2413,70;short sword,2406,30;sword,2376,25;dragon lance,2414,10000;stonecutter axe,2431,90000;guardian halberd,2427,7500;fire axe,2432,10000;knight axe,2430,2000;double axe,2387,200;halberd,2381,200;paladin armor,8891,30000;skullcracker armor,8889,60000;battle axe,2378,100;hatchet,2388,20;war hammer,2391,6000;thunder hammer,2421,90000;skull staff,2436,1000;dragon hammer,2434,2000;clerical mace,2423,200;battle hammer,2417,60;mace,2398,30;"/> <parameter key="shop_buyable" value="helmet of the deep,5461,10000;blue legs,7730,20000"/> </parameters> </npc>
  13. Tem algum arquivo lua deste NPC ? (script="data/npc/scripts/loot.lua")
  14. Manda o script do npc,por favor.
  15. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Scripting → Monsters e NPCs" Para: "OTServ → Suporte OTServ → Suporte de Scripts"
  16. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de Clients"
  17. @Q.R.A.Th3usZinh0 neste mesmo tópico eu avisei o membro que é proibído dar UP em um tópico antes de 24 horas amigo,então acho que não foi por questão de aviso que você infringiu está regra. Leia as regras do fórum : http://www.tibiaking.com/forum/forum/23-regras-do-forum/
  18. É só remover a linha que manda a mensagem amigo : local templepos = {x= 160, y= 54, z = 7} function onSay(cid, words, param, channel) player = getPlayersOnline() for i = 1, #player do doPlayerAddPremiumDays(player[i], 1/24) addEvent(function() if isCreature(player[i]) then doTeleportThing(player[i], templepos, true) end end, 1000*3600) end return true end
  19. Show,só que acho que ficaria ainda melhor se abrisse uma caixa escrito essa mensagem,que nem quando da use em um book. Obrigado pelo conteúdo.Abraço !
  20. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de Programação" Para: "OTServ → Suporte OTServ → Suporte de Scripts"
  21. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de Scripts" Para: "OTServ → Suporte OTServ → Suporte de WebSites" Tenta : CREATE TABLE `z_ots_comunication` ( `id` int(11) NOT NULL auto_increment, `name` varchar(255) NOT NULL, `type` varchar(255) NOT NULL, `action` varchar(255) NOT NULL, `param1` varchar(255) NOT NULL, `param2` varchar(255) NOT NULL, `param3` varchar(255) NOT NULL, `param4` varchar(255) NOT NULL, `param5` varchar(255) NOT NULL, `param6` varchar(255) NOT NULL, `param7` varchar(255) NOT NULL, `delete_it` int(2) NOT NULL default '1', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1
  22. obs: Absolute ficou triste então os créditos vai pra ele.(fica felix seu lindu) Para adicionar magic level faça o seguinte,abra o item.xml e procure pelo seu item.Exemplo uma plate armor normal : <item id="2463" article="a" name="plate armor"> <attribute key="weight" value="12000" /> <attribute key="armor" value="10" /> <attribute key="slotType" value="body" /> </item> É só adicionar a tag : <attribute key="magiclevelpoints" value="10" /> Ficando assím : <item id="2463" article="a" name="plate armor"> <attribute key="weight" value="12000" /> <attribute key="armor" value="10" /> <attribute key="slotType" value="body" /> <attribute key="magiclevelpoints" value="10" /> </item> E para botar somente para X vocation usar é só adicionar ela em movements.xml : <movevent type="DeEquip" itemid="8820" slot="head" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="8820" slot="head" event="function" value="onEquipItem"> <vocation id="1"/> <vocation id="5" showInDescription="0"/> <vocation id="2"/> <vocation id="6" showInDescription="0"/> </movevent> Explicando :
  23. Adiciona mais uma linha ao script.Exemplo : doPlayerAddItem(cid,2160,1) doPlayerAddItem(cid,2145,10) Ficaria assím : function onUse(cid, item, frompos, item2, topos) if item.uid == 5999 then queststatus = getPlayerStorageValue(cid,49635) if queststatus == -1 then doPlayerSendTextMessage(cid,22,"Quest completa!") doPlayerAddItem(cid,2160,1) doPlayerAddItem(cid,2145,10) setPlayerStorageValue(cid,49635,1) else doPlayerSendTextMessage(cid,22,"Voce ja completou a quest.") end end end
  24. O meu é este : -- ### CONFIG ### -- message send to player by script "type" (types you can check in "global.lua") SHOP_MSG_TYPE = 19 -- time (in seconds) between connections to SQL database by shop script SQL_interval = 10 -- ### END OF CONFIG ### function onThink(interval, lastExecution) local result_plr = db.getResult("SELECT * FROM z_ots_comunication WHERE `type` = 'login';") if(result_plr:getID() ~= -1) then while(true) do id = tonumber(result_plr:getDataInt("id")) action = tostring(result_plr:getDataString("action")) delete = tonumber(result_plr:getDataInt("delete_it")) cid = getCreatureByName(tostring(result_plr:getDataString("name"))) if isPlayer(cid) == TRUE then local itemtogive_id = tonumber(result_plr:getDataInt("param1")) local itemtogive_count = tonumber(result_plr:getDataInt("param2")) local container_id = tonumber(result_plr:getDataInt("param3")) local container_count = tonumber(result_plr:getDataInt("param4")) local add_item_type = tostring(result_plr:getDataString("param5")) local add_item_name = tostring(result_plr:getDataString("param6")) local received_item = 0 local full_weight = 0 if add_item_type == 'container' then container_weight = getItemWeightById(container_id, 1) if isItemRune(itemtogive_id) == TRUE then items_weight = container_count * getItemWeightById(itemtogive_id, 1) else items_weight = container_count * getItemWeightById(itemtogive_id, itemtogive_count) end full_weight = items_weight + container_weight else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) if isItemRune(itemtogive_id) == TRUE then full_weight = getItemWeightById(itemtogive_id, 1) else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) end end local free_cap = getPlayerFreeCap(cid) if full_weight <= free_cap then if add_item_type == 'container' then local new_container = doCreateItemEx(container_id, 1) local iter = 0 while iter ~= container_count do doAddContainerItem(new_container, itemtogive_id, itemtogive_count) iter = iter + 1 end received_item = doPlayerAddItemEx(cid, new_container) else local new_item = doCreateItemEx(itemtogive_id, itemtogive_count) received_item = doPlayerAddItemEx(cid, new_item) end if received_item == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'You received >> '.. add_item_name ..' << from OTS shop.') db.executeQuery("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") db.executeQuery("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";") else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. Please make place for this item in your backpack/hands and wait about '.. SQL_interval ..' seconds to get it.') end else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. It weight is '.. full_weight ..' oz., you have only '.. free_cap ..' oz. free capacity. Put some items in depot and wait about '.. SQL_interval ..' seconds to get it.') end end if not(result_plr:next()) then break end end result_plr:free() end return TRUE end
  25. Tenta agora : local config = { positions = { ["Wpr War"] = { x = 1002, y = 1002, z = 10 }, ["ROOK WAR"] = { x = 1002, y = 1008, z = 10 }, ["Evento DiceBp"] = { x = 1002, y = 995, z = 10 }, ["Evento War"] = { x = 1009, y = 1008, z = 10 }, ["Trainers"] = { x = 1006, y = 1008, z = 10 }, ["Mage Set"] = { x = 999, y = 1002, z = 10 }, ["PallyKina Set"] = { x = 1005, y = 1002, z = 10 }, ["Edited By ADM"] = { x = 1000, y = 1000, z = 7 }, ["Depot"] = { x = 997, y = 1002, z = 7 }, ["Quest 100K"] = { x = 998, y = 1008, z = 10 } } } function onThink(cid, interval, lastExecution) for text, pos in pairs(config.positions) do doSendAnimatedText(pos, text, math.random(1, 255)) end return TRUE end

Informação Importante

Confirmação de Termo