-
-
-
-
-
Iten Em Troca de Vocação
você configurou isso ? local config = { vocation_name = "Madara", -- NOME DA VOCAÇÃO voc = xxx, -- ID DA VOCAÇÃO storage = 79846, }
-
-
DDoS é Crime? Sim!
- (Resolvido)Portal falante
Tenta assim : local txt = { [1] = {"Baiak", {x = 160, y = 54, z = 7}}, [2] = {"Vip City", {x = 166, y = 50, z = 7}}, [3] = {"Welcome", {x = 158, y = 51, z = 4}}, [4] = {"Trainers", {x = 158, y = 47, z = 7}}, [5] = {"Quest", {x = 167, y = 51, z = 7}}, } function onThink(interval, lastExecution) for i = 1, 5 do doSendAnimatedText(text[i][2], text[i][1], math.random(1, 255)) end return true endLoldinis reagiu a uma resposta no tópico: (Resolvido)[PEDIDO] Teleport que ao passar entrega um item para o player.
- Pedido Justu Copia
local config = { storage = 66669, storage_time = 66668, interval = 10, -- SEGUNDOS effect = 30, --EFEITO NO PLAYER effect_target = 17, -- EFEITO NO TARGET } function onUse(cid, item, fromPos, itemEx, toPos) if item.uid == itemEx.uid then if getPlayerStorageValue(cid, config.storage) < 1 then doPlayerSendTextMessage(cid, 19, "ATIVADO!!") setPlayerStorageValue(cid, config.storage, 1) doSendMagicEffect(getThingPos(cid), config.effect) else setPlayerStorageValue(cid, config.storage, -1) doPlayerSendTextMessage(cid, 19, "DESATIVADO!!") doSendMagicEffect(getThingPos(cid), config.effect) end return true end local mana = getCreatureMana(itemEx.uid) if not isPlayer(itemEx.uid) and cid ~= itemEx.uid then return true and doPlayerSendTextMessage(cid, 19, "Você só pode usar isso em jogadores.") end if getPlayerStorageValue(cid, config.storage) == 1 then if getPlayerStorageValue(cid, config.storage_time) <= os.time() then doCreatureAddMana(cid, mana) doPlayerSendTextMessage(cid, 19, "Perfect Copy!!") doSendMagicEffect(toPos, config.effect_target) setPlayerStorageValue(cid, config.storage_time, os.time() + config.interval) else doPlayerSendTextMessage(cid, 19, "Falta " .. getPlayerStorageValue(cid, config.storage_time) - os.time() .. "segundos pra usar novamente..." ) end else doPlayerSendTextMessage(cid, 19, "Você precisa ativar o sharingan para usa-lo.") end return true end <action itemid="IDDOITEM" event="script" value="ARQUIVO.lua"/>- Iten Em Troca de Vocação
function onUse(cid, item) local config = { vocation_name = "Madara", -- NOME DA VOCAÇÃO voc = xxx, -- ID DA VOCAÇÃO storage = 79846, } if getPlayerStorageValue(cid, config.storage) < 1 then doPlayerSetVocation(cid, config.voc) doPlayerSendTextMessage(cid, 19, "Vocation " .. config.vocation_name .. " foi adicionada!!" ) doSendMagicEffect(getThingPos(cid), 28) setPlayerStorageValue(cid, config.storage, 1) doRemoveItem(item.uid, 1) else doPlayerSendTextMessage(cid, "Voce já tem essa vocação") end return true end <action itemid="ITEMID" event="script" value="ARQUIVO.lua"/>- Pedido Justu Copia
Só adicionar no actions.XML : <action itemid="IDDOITEM" event="script" value="ARQUIVO.lua"/>- Pedido Justu Copia
Sabe configurar a tag néh ? local config = { storage = 66667, storage_time = 66668, interval = 10, -- SEGUNDOS effect = xxx, --EFEITO NO PLAYER effect_target = xxx -- EFEITO NO TARGET } function onUse(cid, item, fromPos, itemEx, toPos) if itemEx.uid == cid then if getPlayerStorageValue(cid, config.storage) > 1 then doPlayerSendTextMessage(cid, 19, "ATIVADO!!") setPlayerStorageValue(cid, config.storage, 1) doSendMagicEffect(getThingPos(cid), config.effect) else setPlayerStorageValue(cid, config.storage, -1) doPlayerSendTextMessage(cid, 19, "DESATIVADO!!") doSendMagicEffect(getThingPos(cid), config.effect) end end local target = getCreatureTarget(cid) if not isCreature(target) then doPlayerSendCancel(cid, "Você não tem target.") return false end local mana = getCreatureMaxMana(target) - getCreatureMaxMana(cid) if itemEx.uid == target then if getPlayerStorageValue(cid, config.storage) == 1 then if getPlayerStorageValue(cid, config.storage_time) >= os.time() then doCreatureAddMana(cid, mana) doPlayerSendTextMessage(cid, 19, "Perfect Copy!!") doSendMagicEffect(getThingPos(cid), config.effect_target) setPlayerStorageValue(cid, config.storage_time, os.time() + config.interval) else doPlayerSendTextMessage(cid, 19, "Falta " .. getPlayerStorageValue(cid, config.storage_time) - os.time().. "segundos pra usar novamente..." ) end else doPlayerSendTextMessage(cid, 19, "Você precisa ativar o item.") end end return true end Ps : eu fiz baseado no que eu entendi, se tiver da forma errada só dizer- Pedido Justu Copia
Eu estou fazendo aqui, eu tenho 2 dúvidas a primeira é, "- O cooldown para copiar mana de outros players é 10 segundos.", o player irá ficar 10 segundos com a mana do outro ai dps a mana dele volta ao normal ? a segunda é "- Quando usado o item no player libera um effect nele e em você (uma animação).", que tipo de animação é um effect mesmo ?- (Resolvido)[PEDIDO] Teleport que ao passar entrega um item para o player.
em movements.XML : <movevent type="StepIn" actionid="ACTIONIDDOTP" script="ARQUIVO.lua"/>Tomaxx reagiu a uma resposta no tópico: (Resolvido)(PEDIDO) Ao Entrar No Teleporte Receber Uma Mensagem TFS 1.0
- (Resolvido)(PEDIDO) Ao Entrar No Teleporte Receber Uma Mensagem TFS 1.0
<movevent event="StepIn" actionid="ACTIONID" script="ARQUIVO.lua" /> Lembre-se tem que colocar o mesmo action id no teleport pelo rme. Ps : movements.XML- (Resolvido)Addon ao usar o item ! Ajuda Aqui!
Storage é um valor que fica gravado no banco de dados, no banco de dados ele é estruturado assim: Citar quando você usa a função getPlayerStorageValue(uid, chave) O que acontece é: Citar É basicamente assim que funciona, por isso por padrão todas storages que não tenham um valor definido recebem o valor -1. Créditos : Max Se não entendeu basta, trocar o valor do numero onde ta escrito storage, para não repeti-lo no caso 9784, 9785, 9786, 9787 ao usar em outros scripts.- (Resolvido)(PEDIDO) Ao Entrar No Teleporte Receber Uma Mensagem TFS 1.0
function onStepIn(cid, item, position, fromPosition) local tb = { msg = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", storage = 78946, pos = {x= x, y= y, z= z}, } local player = Player(cid) if isPlayer(cid) then doTeleportThing(cid, tb.pos) doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT) if player:getStorageValue(tb.storage) < 1 then player:sendTextMessage(19, tb.msg) player:setStorageValue(tb.storage, 1) end end return true end- (Resolvido)Addon ao usar o item ! Ajuda Aqui!
editei ali em cima, lembre-se de mudar a storage pra cada item- (Resolvido)(Ajuda) Player Não Quer Nascer Em Rookgaard
Não esqueça de mudar a townId : <?PHP # Account Maker Config $config['site']['serverPath'] = "C:/Users/Oliveira/Downloads/otserv/"; $config['site']['useServerConfigCache'] = false; $towns_list = array(1 => 'Venore', 2 => 'Thais', 3 => 'Kazordoon', 4 => 'Carlin', 5 => 'Ab/Dendriel', 6 => 'Rookgaard', 7 => 'Liberty Bay', 8 => 'Port Hope', 9 => 'Ankrahmun', 10 => 'Darashia', 11 => 'Edron', 12 => 'Svargrond', 13 => 'Yalahar', 14 => 'Farmine'); $config['site']['outfit_images_url'] = 'http://outfit-images.ots.me/outfit.php'; $config['site']['item_images_url'] = 'images/items/'; $config['site']['item_images_extension'] = '.gif'; $config['site']['flag_images_url'] = 'images'; $config['site']['flag_images_extension'] = '.png'; # Create Account Options $config['site']['one_email'] = false; $config['site']['create_account_verify_mail'] = false; $config['site']['verify_code'] = true; $config['site']['email_days_to_change'] = 3; $config['site']['newaccount_premdays'] = 7; $config['site']['send_register_email'] = false; # Create Character Options $config['site']['newchar_towns'] = array(TOWN_ID); $config['site']['newchar_vocations'] = array(0 => 'Rook Sample'); $vocation_list = array(6 => 'Rook'); $config['site']['max_players_per_account'] = 4; # Emails Config $config['site']['send_emails'] = true; $config['site']['mail_address'] = "[email protected]"; $config['site']['smtp_enabled'] = true; $config['site']['smtp_host'] = "mail.tibiaold.org"; $config['site']['smtp_port'] = 25; $config['site']['smtp_auth'] = true; $config['site']['smtp_user'] = "[email protected]"; $config['site']['smtp_pass'] = "]!uX?SNaQ%nn"; # PAGE: whoisonline.php $config['site']['private-servlist.com_server_id'] = 0; /* Server id on 'private-servlist.com' to show Players Online Chart (whoisonline.php page), set 0 to disable Chart feature. To use this feature you must register on 'private-servlist.com' and add your server. Format: number, 0 [disable] or higher */ # PAGE: characters.php $config['site']['quests'] = array(); $config['site']['show_skills_info'] = true; $config['site']['show_vip_storage'] = 0; # PAGE: accountmanagement.php $config['site']['send_mail_when_change_password'] = true; $config['site']['send_mail_when_generate_reckey'] = true; $config['site']['generate_new_reckey'] = true; $config['site']['generate_new_reckey_price'] = 20; # PAGE: guilds.php $config['site']['guild_need_level'] = 100; $config['site']['guild_need_pacc'] = false; $config['site']['guild_image_size_kb'] = 50; $config['site']['guild_description_chars_limit'] = 250; $config['site']['guild_description_lines_limit'] = 6; $config['site']['guild_motd_chars_limit'] = 250; # PAGE: adminpanel.php $config['site']['access_admin_panel'] = 555; # PAGE: latestnews.php $config['site']['news_limit'] = 6; # PAGE: killstatistics.php $config['site']['last_deaths_limit'] = 50; # PAGE: team.php $config['site']['groups_support'] = array(2, 3, 4, 5, 6); # PAGE: highscores.php $config['site']['groups_hidden'] = array(2, 3, 4); $config['site']['accounts_hidden'] = array(1); # PAGE: shopsystem.php $config['site']['shop_system'] = true; # PAGE: lostaccount.php $config['site']['email_lai_sec_interval'] = 180; # Layout Config $config['site']['layout'] = 'tibiarl'; $config['site']['vdarkborder'] = '#505050'; $config['site']['darkborder'] = '#D4C0A1'; $config['site']['lightborder'] = '#F1E0C6'; $config['site']['download_page'] = true; $config['site']['serverinfo_page'] = true; $config['site']['show_health_information'] = 1; //Show health bar $config['site']['show_mana_information'] = 1; //Show mana bar $config['site']['show_exp_information'] = 1; //Show exp bar $config['site']['number_of_advances'] = 5; // number of latest skill advances to show on character page ############################ ## PagSeguro/Paypal Email ## ############################ $config['pagseguro']['email'] = '[email protected]'; ## EMAIL PAGSEGURO ## $config['paypal']['email'] = '[email protected]'; ## EMAIL PAYPAL ## ## Formas de pagamento [1 = ativo | 0 = inativo] ## $config['site']['pagseguro'] = 1; $config['site']['paypal'] = 1; $config['site']['bonusPoints'] = 1; ##################### ## Nome do Produto ## ##################### $config['pagseguro']['produtoNome'] = 'Premium Points'; ############################# ######### C A I X A ######## ############################# #! Informações do pagamento com caixa economica federal !# $config['site']['CaixaCont'] = " Conta/Corrente: NUMERO Ag: NUMERO Favorecido: NOME OP: NUMERO ";- Quest Outfit
Pensa nos diálogo do npc e manda que eu faço o script
Informação Importante
Confirmação de Termo