-
Total de itens
91 -
Registro em
-
Última visita
-
Dias Ganhos
2
Histórico de Curtidas
-
Aragllov recebeu reputação de gabrielsaintz em Como adicionar sistema de quiver ao tfs 1.4.2 sem trocar o protocolo para 12.x
Tem que fazer alteração na source, fiz isso no 8.60
-
Aragllov recebeu reputação de Mateus Robeerto em COLOCAR STORAGE NESSE SCRIPT.. TROCAR ITEM POR OUTRO ITEM SO UMA VEZ
Mais ou menos isso
local player = player(cid) if(msgcontains(msg, 'ghost coin') or msgcontains(msg, 'gsc')) then selfSay('Você quer comprar 100 Ghost Coin\'s por 20kk ruby coins?', cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) and player:getStorageValue() == 0 then if(getPlayerItemCount(cid, 13685) >= 20) then doPlayerRemoveItem(cid, 13685, 20) doPlayerAddItem(cid, 6527, 100) player:setStorageValue(1) doPlayerSendTextMessage(cid, 27,"Ainda lhe resta " .. getPlayerItemCount(cid,13685) .. " Ruby coin\'s.") selfSay('Obrigado e volte sempre.', cid) else selfSay('Você não tem 20kk ruby coins.', cid) end talkState[talkUser] = 0
-
Aragllov recebeu reputação de Mateus Robeerto em ALGUEM PODE AJUDAR O SCRIPT SIMPLES
function onRemoveItem(creature, moveitem, tileitem, pos) if moveitem.itemid >= 1 and moveitem.itemid <= 30000 then Game.sendAnimatedText(creature:getPosition(),getItemName(moveitem.itemid), TEXTCOLOR_ORANGE) end end Tenta assim
-
Aragllov deu reputação a poko360 em nao consigo soltar magic wall black skull ajuda
funcionou perfeitamente, mt obrigado
-
Aragllov recebeu reputação de poko360 em nao consigo soltar magic wall black skull ajuda
Magic wall não é runa de suporte, vc pode colocar como suporte e ver se funciona
-
Aragllov recebeu reputação de Felippe Reine014 em (Resolvido)Movements script
Usa esse script como exemplo:
local messages = { {'Gnomedix: So let the examination begin! Now don\'t move. Don\'t be afraid. The good doctor gnome won\'t hurt you - hopefully!', CONST_ME_LOSEENERGY}, {'Gnomedix: Now! Now! Don\'t panic! It\'s all over soon!'}, {'Gnomedix: Let me try a bigger chisel!', CONST_ME_POFF}, {'Gnomedix: We\'re almost don... holy gnome! What\'s THIS???'}, {'Gnomedix: I need a drill! Gnomenursey, quick!'}, {'Gnomedix: Hold still now! This might tickle a little..', CONST_ME_STUN}, {'Gnomedix: Take this, you evil ... whatever you are!'}, {'Gnomedix: I got it! Yikes! What was that? Uhm, well ... you passed the ear examination. Talk to Gnomaticus for your next test.', CONST_ME_BLOCKHIT} } local function sendTextMessages(cid, index, position) local player = Player(cid) if not player then return true end if index ~= player:getStorageValue(Storage.BigfootBurden.GnomedixMsg) then return false end local playerposuid = Tile(player:getPosition()):getGround() playerposuid = playerposuid:getUniqueId() if playerposuid ~= 3123 then return false end player:sendTextMessage(MESSAGE_EVENT_ADVANCE, messages[index][1]) if messages[index][2] then position:sendMagicEffect(messages[index][2]) end player:setStorageValue(Storage.BigfootBurden.GnomedixMsg, player:getStorageValue(Storage.BigfootBurden.GnomedixMsg) + 1) if index == 8 then position.y = position.y + 1 Game.createMonster('Strange Slime', position) player:setStorageValue(Storage.BigfootBurden.QuestLine, 11) end end local condition = Condition(CONDITION_OUTFIT) condition:setTicks(2000) condition:setOutfit({lookType = 33}) -- skeleton looktype function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return true end if item.actionid == 9200 then if player:getStorageValue(Storage.BigfootBurden.QuestLine) == 8 then player:addCondition(condition) player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE) end elseif item.actionid == 9201 then if player:getStorageValue(Storage.BigfootBurden.QuestLine) == 8 then player:addCondition(condition) player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE) player:setStorageValue(Storage.BigfootBurden.QuestLine, 10) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You have been succesfully g-rayed. Now let Doctor Gnomedix inspect your ears!') end elseif item.uid == 3123 then if player:getStorageValue(Storage.BigfootBurden.QuestLine) ~= 10 then return true end player:setStorageValue(Storage.BigfootBurden.GnomedixMsg, 1) position:sendMagicEffect(CONST_ME_LOSEENERGY) for i = player:getStorageValue(Storage.BigfootBurden.GnomedixMsg), #messages do addEvent(sendTextMessages, (i - 1) * 4000, player.uid, i, player:getPosition()) end end return true end
-
Aragllov recebeu reputação de carloos em ajuda a por server online
Tem que ter um roteador além do modem da sua operadora
-
Aragllov deu reputação a Anderson Sacani em [AJUDA] ADICIONAR MAGIC EFFECT EM SCRIPT
O problema provavelmente é porque não está passando o local em que será reproduzido o efeito mágico.
No caso tem que ser assim: doSendMagicEffect(positions[i].pos, CONST_ME_POFF)
O parâmetro que coloquei "positions[i].pos" retorna a posição criada dentro da variável positions, e como o efeito foi colocado dentro de uma estrutura de repetição, servirá para qualquer outra posição que adicionar após o primeiro índice.
-- EditeD by: Yuri -- Passagem Secreta BOSS: Sunfyre the Golden local positions = { [1] = { pos = { x = 33295, y = 32779, z = 7 }, id = 419, toid = 411 } } local tempo = 15 function onUse(cid, item, frompos, item2, topos) if getTileItemById(positions[1].pos, positions[1].id).uid < 100 then doPlayerSendTextMessage(cid, 19, "Is already open.") return true end doPlayerSendTextMessage(cid, 19, "The passage will close in " .. tempo .. " seconds.") function criar_paredes(buff) for i = 1, #positions do if i <= (#positions / 2) then doCreateItem(positions[i].id, 1, positions[i].pos) doRemoveItem(obst, 1) elseif i > (#positions / 2) then local obst = getTileItemById(positions[i].pos, positions[i].toid).uid doTransformItem(obst, positions[i].id) end end return true end for i = 1, #positions do local obst = getTileItemById(positions[i].pos, positions[i].id).uid if i <= (#positions / 2) and obst ~= 0 then doRemoveItem(obst, 1) doSendMagicEffect(positions[i].pos, CONST_ME_POFF) elseif i > (#positions / 2) and obst ~= 0 then doTransformItem(obst, positions[i].toid) end end addEvent(criar_paredes, tempo * 1000) return true end
Eu alterei o script que o @Aragllov passou, por tanto, o efeito só vai aparecer quando a pedra for removida.
Eu deixei o script um pouco menor, porque vi muitas coisas desnecessárias:
local position = { x = 33295, y = 32779, z = 7 } local ladder_id = 419 function onUse(cid, item, fromPosition, itemEx, toPosition) local ladderItem = getTileItemById(position, ladder_id) if ladderItem then doRemoveItem(ladderItem.uid, 1) doSendMagicEffect(position, CONST_ME_POFF) else doCreateItem(ladder_id, 1, position) doSendMagicEffect(position, CONST_ME_MAGIC_BLUE) addEvent(function() local ladderItem = getTileItemById(position, ladder_id) if ladderItem then doRemoveItem(ladderItem.uid, 1) doSendMagicEffect(position, CONST_ME_POFF) end end, 15000) end return true end
-
Aragllov recebeu reputação de yuriowns em [RESOLVIDO] CONFIGURAR O ITEM BLACK SKULL PRA ILUMINAR
E no items.otb efetuou o reload no item?
-
Aragllov recebeu reputação de Muvuka em (Resolvido)-=[TFS]=- 0.4 8.60 [SCRIPT] alavanca puxa e ganha cada item de uma alavanca diferente mais alavanca tem mesmo id
actions.xml
<action fromaid="60000" toaid="60007" script="local do arquivo/nome do arquivo.lua" /> OBS: Se estiver na pasta script coloque apenas o nome do arquivo e insira as respectvas actions nas alavancas pelo RME
-
Aragllov recebeu reputação de Muvuka em (Resolvido)Eu tenho script que tem a função TALKTYPE_ORANGE_2 eu queria que fosse verde
MESSAGE_STATUS_CONSOLE_GREEN
-
Aragllov recebeu reputação de Muvuka em (Resolvido)Eu queria que a mensagem em verde só aparecesse no server log nao aparecesse na tela client tibia como broadcast
Muda isso:
return doBroadcastMessage(mensagens[math.random(#mensagens)], MESSAGE_STATUS_CONSOLE_GREEN) Pra isso:
return doBroadcastMessage(mensagens[math.random(#mensagens)], MESSAGE_EVENT_ADVANCE)
-
Aragllov recebeu reputação de leonardo gazim em Problemas para adicionar events no TFS 1.3
Não sou scripter mas até onde eu sei TFS 1.3 lê a função de outra forma, é mais viável achar o evento para TFS 1x, pois editar o que vc já tem vai da trabalho, sendo que vc também não manja muito de lua. Acho difícil alguém lhe ajudar dessa forma, mas espero que eu morda a língua e que vc consiga xD
-
Aragllov deu reputação a Etheron8 em Erro na database
CREATE TABLE `z_shop_offer` ( `id` int(11) NOT NULL auto_increment, `points` int(11) NOT NULL default '0', `itemid1` int(11) NOT NULL default '0', `count1` int(11) NOT NULL default '0', `itemid2` int(11) NOT NULL default '0', `count2` int(11) NOT NULL default '0', `offer_type` varchar(255) default NULL, `offer_description` text NOT NULL, `offer_name` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; INSERT INTO `z_shop_offer`(`id`,`points`,`itemid1` ,`count1` ,`itemid2` ,`count2` ,`offer_type` ,`offer_description` ,`offer_name`) VALUES (NULL , '10', '0', '12', '0', '0', 'pacc', 'Buy 12 days of premium account for yourself or your friend!', '12 Days of PACC' ), (NULL , '40', '5890', '50', '0', '0', 'item', 'Buy 50 Chicken Feathers!', '50x Chicken Feather' ), (NULL , '100', '2466', '1', '1987', '8', 'container', 'Buy bag with 8 Golden Armor! Become a rich mother fucker!', '8x Golden Armor'); CREATE TABLE `z_shop_history_item` ( `id` int(11) NOT NULL auto_increment, `to_name` varchar(255) NOT NULL default '0', `to_account` int(11) NOT NULL default '0', `from_nick` varchar(255) NOT NULL, `from_account` int(11) NOT NULL default '0', `price` int(11) NOT NULL default '0', `offer_id` int(11) NOT NULL default '0', `trans_state` varchar(255) NOT NULL, `trans_start` int(11) NOT NULL default '0', `trans_real` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; 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; CREATE TABLE `z_shop_history_pacc` ( `id` int(11) NOT NULL auto_increment, `to_name` varchar(255) NOT NULL default '0', `to_account` int(11) NOT NULL default '0', `from_nick` varchar(255) NOT NULL, `from_account` int(11) NOT NULL default '0', `price` int(11) NOT NULL default '0', `pacc_days` int(11) NOT NULL default '0', `trans_state` varchar(255) NOT NULL, `trans_start` int(11) NOT NULL default '0', `trans_real` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; CREATE TABLE IF NOT EXISTS `z_news_tickers` ( `date` int(11) NOT NULL default '1', `author` int(11) NOT NULL, `image_id` int(3) NOT NULL default '0', `text` text NOT NULL, `hide_ticker` tinyint(1) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; INSERT INTO `z_news_tickers` (`date`, `author`, `image_id`, `text`, `hide_ticker`) VALUES (1274141844, 1, 1, 'Hello! Gesior account manager 0.3.6 installed. Report bugs Otland.Net Thread. Thanks to widnet and Norix.', 1);
-
Aragllov deu reputação a Toruk em Compilar source em 64 bits
Tente criar um arquivo chamado "otpch.cpp", com a seguinte linha. Isso deve resolver esse warning.
#include "otpch.h"