-
Total de itens
1002 -
Registro em
-
Última visita
-
Dias Ganhos
20
Tudo que Mudrock postou
-
Tópico Movido Este tópico foi movido de "OTServ → Suporte → Suporte Infraestrutura → Dúvidas de sistemas operacionais" para "OTServ → Suporte → Suporte Infraestrutura → Dúvidas de redes e segurança".
-
if isInArray({1, 2, 5, 6}, getPlayerVocation(cid)) then Retire o numero da vocação que deseja, e ele ira adicionar magiclevel e não Skills
-
Bem, tente isso: Crie um arquivo .lua na pasta action/scripts chamado bauskill.lua e cole isso dentro: local config = { skills_amount = 1, -- quantidade de skills que o player ganhará se ele for Knight ou Paladin magiclevel_amount = 1, -- quantidade de magic levels o player ganhará se ele for Druid ou Sorcerer storage = 10000, -- Storage para quest. uniqueID = 1000, -- UniqueID que você colocará no Map Editor mensagem = "Voce recebeu "..config.skills_amount.." skills e "..config.magiclevel_amount.." magic levels.", } local skills_id = {1, 2, 3, 4, 5} -- Não mexer. function onUse(cid, item, fromPosition, itemEx, toPosition) if(item.uid == config.uniqueID) then if getPlayerStorageValue(cid, config.storage) == -1 then if isInArray({1, 2, 5, 6}, getPlayerVocation(cid)) then for i = 1, table.maxn(skills_id) do doPlayerAddSkill(cid, skills_id[i], config.skills_amount) end else doPlayerAddMagLevel(cid, config.magiclevel_amount) end doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, config.mensagem) setPlayerStorageValue(cid, config.storage, 1) else doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Voce ja recebeu seu premio.") end end return true end Depois abra seu action.xml e cole essa tag dentro: <action uniqueid="10000" script="bauskill.lua"/> No script você pode configurar o UniqueID e a quantidade de skills que o player vai ganhar, eu separei que os knights e paladins não ganharão magic level, apenas skills.
-
O erro ocorre em determinado tempo ou é aleatório ? ou é quando inicia o servidor ele já crasha ?
-
thanks
-
Mudar a mensagem de Para
-
Stream ao vivo do TEMPLO! TFS 0.4 [8.60]
tópico respondeu ao Mudrock de Mudrock em Tutoriais de Websites
A Localização a onde a Stream é mostrada é editável nos scripts amigos -
tfs 0.3.4/0.3.6 Mexendo nos XML do servidor
tópico respondeu ao SkyLigh de Mudrock em Tutoriais de Scripting
Tópico Aprovado Mensagem do Sistema Este tópico foi movido de "OTServ → Aprovações → Aprovação de Tutoriais" para "OTServ → Scripting → Tutoriais de scripting". -
otserv [Utilitário] Kiwi Guard Firewall Anti-Nuker
tópico respondeu ao FlamesAdmin de Mudrock em Ferramentas
Tópico Aprovado Mensagem do Sistema Este tópico foi movido de "OTServ → Aprovações → Aprovação de Tutoriais" para "OTServ → Downloads → Utilitários". -
Caro Shotta, tome cuidado! você esta revivendo alguns tópicos para fazer a mesma pergunta!, aguarde alguem responder ou crie um tópico de ajuda na área de Suporte http://www.xtibia.com/forum/forum/988-suporte/ att. MudrocK
- 15 respostas
-
- afl
- som em tibia
- (e 6 mais)
-
Mensagem do Sistema Este tópico foi movido de "OTServ → Suporte → Suporte Scripting" para "OTServ → Suporte → Suporte Scripting → Pedidos e dúvidas resolvidos - Scripting". Sempre seja atento ao postar um tópico, verifique se está postando no lugar correto.
-
Tópico Aprovoado obrigado pela contribuição Mensagem do Sistema Este tópico foi movido de "OTServ → Aprovações → Aprovação de Downloads" para "OTServ → Downloads → Servidores → Servidores → OTserv 8.6x e 8.7x". Sempre seja atento ao postar um tópico, verifique se está postando no lugar correto.
-
Stream ao vivo do TEMPLO! TFS 0.4 [8.60]
tópico respondeu ao Mudrock de Mudrock em Tutoriais de Websites
cale a boca huasuhahsuas -
StreamTemple é um sistema que proporciona uma visualização em tempo real da movimentação de characters em um determinado local do server, isso vai depender das suas configurações... Esse sistema foi criado por Gesior.pl para versão TFS 1.0 e migrado para a versão TFS 0.4 por Killua Vamos la galera, em data/globalevents/scripts crie um arquivo .lua e nomeie para stream_temple.lua adicione dentro do mesmo este code: No arquivo acima faça as seguintes alterações: Aqui altere pro local correto onde ficara localizada a pasta streamtemple na pasta do site. local playerJsonInfoPath = '/var/www/streamtemple/stream.json' Aqui você vai botar as coordenada central de acordo com a imagem que vai utilizar. local centerPosition = {x = 32349, y = 32222, z = 7} Em globalevents.xml registre esse code: <!-- Stream Temple --> <globalevent name="stream" interval="700" script="stream_temple.lua"/> No site você vai adicionar o arquivo .php chamado de streamtemple.php com esse code: <style type="text/css"> .alpha_wrapper { padding-top: 8px; float: left; position: relative; color: #fff; width: 96px; text-align: center; } .name { white-space: nowrap; color: rgb(0, 255, 0); font-size:10px; width: 50%; margin: 0px auto; padding-bottom: 2px; font-family: Verdana; text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black; } .skull { background: transparent url(images/skulls/redskull.gif) no-repeat; position: absolute; top: 31px; left: 57px; width: 11px; height: 11px; width: 50%; margin: 0px auto; } </style> <div style="float:center;text-align:center;margin: 0 auto;text-shadow:0 0 5px #fff;font-family:Georgia,serif;font-weight:strong;font-size:35px;"><img src=megastr.png></div> <!-- Your temple image must have tiles width/height 32px! --> <!-- There is 'streamtemple/temple.png', if you keep your temple image in other format or on other host, edit this. DO NOT FORGET TO EDIT THIS PART OF LINE BELOW: 'width:600px;height:380px', there must be width and height of your temple image! --> <div style="background-image:url('streamtemple/temple.png');width:600px;height:380px;box-shadow:0 0 20px #000;font-family:Arial, sans-serif;border:2px solid black;margin:5px auto;text-align:center;overflow:hidden;position:relative;" id="templeAnimationWindow"></div> <script type="text/javascript"> // -- CONFIG -- // url to stream file - it's NOT full path to that file like 'c:\xampp\...' var playerJsonInfoURL = 'streamtemple/stream.json'; // BEST VALUE IS SAME AS INTERVAL IN GLOBALEVENTS.XML var updateIntervalInSeconds = 1; // It's NOT same position as center of stream in LUA, this position depends on your temple image on www! // set it to position that is in game when you look at top-left corner of your temple image (+/- 1 after tests on www) // -- example: // HARD PART: If your image on www shows 16x8 tiles of 'game screen' and left-top corner positon is '1000,1000' then.. // What is center-position and width/height for LUA script config? [if it's on floor 7..] // YES! It's: Position(1008, 1004, 7), width: 8 (8*2+1 = 17, more then your image!), height: 4 (4*2+1 = 9, more ..!) // --- // but don't worry, if you set it to (32337,32220,7) and set width 15 and height 15 it will work too! (just use more CPU then it should) var leftTopCornetX = 32339; var leftTopCornetY = 32216; // adjust these values (from -32 to 32, it's value in pixels) to make your character stand at same position as in game // you must compare image on www and in game by yourself var imageCorrectionX = 2; var imageCorrectionY = 4; // images URL var itemImagesURL = 'http://item-images.ots.me/1030/'; // outfit generation script URL, you need your own outfit images host, how to create: // http://otland.net/threads/gesior2012-make-your-own-outfits-items-country-flags-hosting-recommended.210844/ var outfitImagesURL = 'outfit.php'; // -- END OF CONFIG -- function disableSelection(target) { if (typeof target.onselectstart!="undefined") { target.onselectstart=function(){return false} } else if (typeof target.style.MozUserSelect!="undefined") { target.style.MozUserSelect="none"; } else { target.onmousedown=function(){return false} } target.style.cursor = "default"; } disableSelection(document.body); var uid = Math.floor(Math.random()*(10000000-1))+10000000; function handler(data) { setTimeout(update, updateIntervalInSeconds * 1000); try { var obj = eval("(" + data + ")"); } catch(err) {} var s = ''; for (x in obj) { var k = obj[x]; s += '<div style="z-index:'+(k[1]-20)+';position:absolute;top:'+(((k[1]-leftTopCornetY)*32)+imageCorrectionY)+'px;left:'+(((k[0]-leftTopCornetX)*32)+imageCorrectionX)+'px;width:64px;height:64px;background:transparent url('; if(k[3] == 0) { s += itemImagesURL + k[11]+'.gif'; } else { var mountID = parseInt(k[9]); if(mountID > 0) { mountID += 65536; } s += outfitImagesURL + '?id='+k[3]+'&addons='+k[4]+'&head='+k[5]+'&body='+k[6]+'&legs='+k[7]+'&feet='+k[8]+'&direction='+(parseInt(k[10])+1); } s += ') no-repeat right bottom;">' + '<div class="alpha_wrapper">' + '<div class="name" style="margin: 5px 19px">'+x.replace(/( )/g,' ')+'</div>' + '<div style="margin-left: 34px; margin-top: -7px; width: 25px; height: 2px; background-color: rgb(0, 191, 0); border: 1px solid black;"></div>'; if(k[12] >= 3) { // known problem: there is no white skull image in Gesior2012, if you got it, you can put it in your /images/skulls/ s += '<div class="skull" style="background-image:url(images/skulls/'+(k[12] == 3 ? 'white' : (k[12] == 4 ? 'red' : 'black')) + 'skull.gif);"> </div>'; } s += '</div></div>'; } document.getElementById('templeAnimationWindow').innerHTML = s; } function update() { var xhr; try { xhr=new XMLHttpRequest(); } catch (e) { try { xhr=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xhr=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } xhr.open("GET", playerJsonInfoURL + "?"+Math.random(), true); xhr.onreadystatechange=function() { // status 4 = query realized without problems if(xhr.readyState==4) { // if query failed for some reason, it will stop animation handler(xhr.responseText); } } xhr.send(null); } update(); </script> E o outfit.php. Certo aqui você baixe a pasta abaixo que já com o arquivo stream.json e uma imagem que utilizo no meu servidor. streamtemple E baixe essa pasta de outfits pro sistema funcionar perfeitamente: outfits
-
Titulo do tópico editado para facilitação da busca, e para maior entendimento Att. MudrocK
-
Fico legal, gosteiii muito dos efeitos de iluminação reputado cara parabéns
-
[Arquivado]Qual versão é mais "estável" para começar um servidor derivado?
tópico respondeu ao Dasdor de Mudrock em Noticias - Arquivo
A mais usada é 8.54 ;D- 5 respostas
-
- estabilidade
- firmeza
-
(e 1 mais)
Tags:
-
Remoções * Tópicos no Perfil * rep novamente abaixo, ou usar um Custom field para colocar os reps * Top Posters Modificações * No lugar do voucher, o propio usuário que moveu o tópico mandar a mensagem automatica que o tópico foi movido
-
As portas 7171 e 7172 são para seu servidor, as porta 8090 ( não 8080 ), são para conexão com algum WebSite, como o Gesior!. cada modem tem um padrão para liberar portas.. mais o mais comum é algo como.. NAT > Virtual Servers > Add Port ou Port Fowarding > Ports E sim, após liberar as portas, só seguir o procedimento do NO-IP ( DUC ) ATENCIOSAMENTE, MUDROCK Tópico Movido para resolvidos
-
um ótimo servidor, obrigado por compartilhar conosco ;D
-
action Addon/Mount para Shopsystem por Storage
um tópico no fórum postou Mudrock Tutoriais de Websites
Troque seu shopsystem.php por esse : Agr em data/creaturescripts/scripts crie addonmount.lua addonmount.lua function onLogin(cid) local player = Player(cid) local addons ={ --[storage] = {outfit_male, outfit_female}, [28416] = {143, 147}, -- barbarian [28417] = {134, 142}, -- warrior [28418] = {152, 156}, -- assassins [28419] = {465, 466}, -- Insectoid [28420] = {133, 141}, -- summoner [28421] = {472, 471}, -- Entrepreneur [28422] = {144, 148}, -- duid [28423] = {278, 279}, -- brotherhood [28424] = {577, 578}, -- Dream Warden [28425] = {610, 618}, -- Glooth Engineer [28426] = {130, 138}, -- mage [28427] = {634, 635}, -- Conjurer [28428] = {128, 136}, -- Citizen [28429] = {129, 137}, -- Hunter [28430] = {131, 139}, -- Kinghit [28431] = {132, 140}, -- Noblewoman [28432] = {145, 149}, -- Wizard [28433] = {146, 150}, -- Oriental [28434] = {151, 155}, -- Pirate [28435] = {153, 157}, -- Beggar [28436] = {154, 158}, -- Shaman [28437] = {251, 252}, -- Norsewoman [28438] = {268, 269}, -- Nightmare [28439] = {273, 270}, -- jester [28441] = {289, 288}, -- demonhunter [28442] = {325, 324}, -- yalaharian [28444] = {335, 336}, -- warnaster [28445] = {327, 366}, -- wayfarer [28446] = {430, 431}, -- afflicted [28447] = {432, 433}, -- elementalist [28448] = {463, 464}, -- deepling [28449] = {512, 513}, -- crystal warlord [28450] = {516, 514}, -- soil guardian [28451] = {541, 542}, -- demon [28452] = {574, 575}, -- cave explorer [28453] = {619, 620}, -- jersey [28454] = {637, 636}, -- beastmaster [28455] = {632, 633} -- champion } for storage, addon in pairs(addons) do if player:getStorageValue(storage) > 0 then player:getPosition():sendMagicEffect(CONST_ME_GIFT_WRAPS) player:addOutfitAddon(addon[1], 3) player:addOutfitAddon(addon[2], 3) player:sendTextMessage(MESSAGE_INFO_DESCR, "Seu Addon full foi adicionado!") player:setStorageValue(storage, 0) end end local mounts ={ --[storage] = mounts, [80000] = 1, -- Widow Queen [80001] = 2, -- Racing Bird [80002] = 3, -- War Bear [80003] = 4, -- Black Sheep [80004] = 5, -- Midnight Panther [80005] = 6, -- Draptor [80006] = 7, -- Titanica [80007] = 8, -- Tin Lizzard [80008] = 9, -- Blazebringer [80009] = 10, -- Rapid Boar [80010] = 11, -- Stampor [80011] = 12, -- Undead Cavebear [80012] = 13, -- Donkey [80013] = 14, -- Tiger Slug [80014] = 15, -- Uniwheel [80015] = 16, -- Crystal Wolf [80016] = 17, -- War Horse [80017] = 18, -- Kingly Deer [80018] = 19, -- Tamed Panda [80019] = 20, -- Dromedary [80020] = 21, -- King Scorpion [80021] = 22, -- Rented Horse [80022] = 23, -- Armoured War Horse [80023] = 24, -- Shadow Draptor" [80024] = 25, -- Rented Horse [80025] = 26, -- Nethersteed [80026] = 27, -- Ladybug [80027] = 28, -- Manta [80028] = 29, -- Ironblight [80029] = 30, -- Magma Crawler [80030] = 31, -- Dragonling [80031] = 32, -- Gnarlhound [80032] = 33, -- Crimson Ray [80033] = 34, -- Steelbeak [80034] = 35, -- Water Buffalo [80035] = 36, -- Tombstinger [80036] = 37, -- Platesaurian [80037] = 38, -- Ursagrodon [80038] = 39, -- The Hellgrip [80039] = 40, -- Jade Lion [80040] = 41, -- Golden Lion [80041] = 42, -- Shock Head [80042] = 43, -- Walker [80043] = 44, -- Azudocus [80044] = 45, -- Carpacosaurus [80045] = 46, -- Death Crawler [80046] = 47, -- Flamesteed [80047] = 48, -- Jade Pincer [80048] = 49, -- Tempest [80049] = 50 -- Winter King } for storage, mount in pairs(mounts) do if player:getStorageValue(storage) > 0 then player:getPosition():sendMagicEffect(CONST_ME_GIFT_WRAPS) player:addMount(mount) player:sendTextMessage(MESSAGE_INFO_DESCR, "Sua Mount foi adicionado!") player:setStorageValue(storage, 0) end end return true end Só adicionar a storage do arquivo no itemid do shop. event type="login" name="ShopMountAddon" script="addonmount.lua"/> Créditos : Summ -
Boaaa dani , gostei das respostas
-
Fico lindão, agora sim o contraste fico top
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.