Ir para conteúdo

Alienbear

Membro
  • Registro em

  • Última visita

Tudo que Alienbear postou

  1. Alguém que está montando :D:D up@
  2. Olá gênios do TibiaKing... Gostaria de pedir um grande favor a vocês; Como eu faria para uma montaria não levar paralyze. Nem de monstros e nem de players... Teria como? Desde-já Agradeço.
  3. Alienbear postou uma resposta no tópico em Suporte OTServer Derivados
    Poxa queria muito :X não seria uma função em lua chamando o relogio do windows?
  4. Alienbear postou uma resposta no tópico em Suporte OTServer Derivados
    teria como colocar um relogio com Minutos: segundos e milesegundos no otclient?
  5. Alienbear postou uma resposta no tópico em Suporte OTServer Derivados
    Olá grandes mentes do TK, vim nesta area pq não sabia exatamente onde postar minha duvida... Por fim eu gostaria de criar uma mod no otclient que contasse o tempo da magic wall e da growt rune. Tambem se possivel um mod para equipar o anel de utamo. Por ultimo e não menos importante gostaria de um mod que mostrasse as montarias que eu tenho no servidor em questão. Muito obrigado desde-já...
  6. Alienbear postou uma resposta no tópico em Suporte & Pedidos
    local lvl = 3300 local moeda = 9971 local stg = 97931 function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) >= lvl then if getPlayerItemCount(cid, moeda) >= 1 then if getPlayerStorageValue(cid, stg) >= 0 then doSendMagicEffect(getCreaturePosition(cid), 39) doCreatureSay(cid, "Você tem level, moeda e storage.", TALKTYPE_ORANGE_1) else doSendMagicEffect(getCreaturePosition(cid), 3) doCreatureSay(cid, "Você não tem STORAGE.", TALKTYPE_ORANGE_1) end else doSendMagicEffect(getCreaturePosition(cid), 3) doCreatureSay(cid, "Você não tem MOEDA.", TALKTYPE_ORANGE_1) end else doSendMagicEffect(getCreaturePosition(cid), 3) doCreatureSay(cid, "Você não tem LEVEL.", TALKTYPE_ORANGE_1) end return TRUE end "IF" representa "SE" "THEN" representa "ENTÃO" "ELSE" representa "SE NÃO ou OUTRO" "END" representa "FIM" explicação: if 1 if 2 if 3 else3 end else2 end else1 end Ou seja... if 3 esta dentro do if 2 e ambos estão dentro do if 1 Logo o primeiro else tem que fechar o if 3, o segundo else fecha o if 2 e o ultimo vai fechar o primeiro if Nessa ordem. Se tiverem mais alguma duvida só perguntar.
  7. Alienbear postou uma resposta no tópico em Suporte & Pedidos
    Fala galerinha do T.K Pode não ser muito útil oque vim trazer hoje, porem estou trazendo porque algumas pessoas tem duvidas de como criar um script com mais de um IF e um else para cada IF... Aprendi com meu amigão xWHITEWOLF Vamos lá... local lvl = 3300 local moeda = 9971 local stg = 97931 function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) >= lvl then if getPlayerItemCount(cid, moeda) >= 1 then if getPlayerStorageValue(cid, stg) >= 0 then doSendMagicEffect(getCreaturePosition(cid), 39) doCreatureSay(cid, "Você tem level, moeda e storage.", TALKTYPE_ORANGE_1) else doSendMagicEffect(getCreaturePosition(cid), 3) doCreatureSay(cid, "Você não tem STORAGE.", TALKTYPE_ORANGE_1) end else doSendMagicEffect(getCreaturePosition(cid), 3) doCreatureSay(cid, "Você não tem MOEDA.", TALKTYPE_ORANGE_1) end else doSendMagicEffect(getCreaturePosition(cid), 3) doCreatureSay(cid, "Você não tem LEVEL.", TALKTYPE_ORANGE_1) end return TRUE end "IF" representa "SE" "THEN" representa "ENTÃO" "ELSE" representa "SE NÃO ou OUTRO" "END" representa "FIM" explicação: if 1 if 2 if 3 else3 end else2 end else1 end Ou seja... if 3 esta dentro do if 2 e ambos estão dentro do if 1 Logo o primeiro else tem que fechar o if 3, o segundo else fecha o if 2 e o ultimo vai fechar o primeiro if Nessa ordem. Se tiverem mais alguma duvida só perguntar. Se alguém tiver duvidas por favor comente e eu tentarei ajudar. Abraços!
  8. Vlw... Rep+ Para versão 10.10 não funcionou amigo... Será que tem algum problema?
  9. Cara posso estar enganado... function onUse(cid, item, fromPosition, itemEx, toPosition) local tilepos1 = {x=1140, y=1234, z=6} local tilepos2 = {x=1140, y=1235, z=6} if(itemEx.uid == 16102) and (itemEx.itemid == 5659) then if getPlayerItem(cid, 4869) then doPlayerRemoveItem(cid, 4869, 1) doPlayerAddItem(cid, 5937, 1) doTransformItem(16102, 5687, 1) doSendMagicEffect(tilepos1,45) doSendMagicEffect(tilepos2,45) doCreatureSay(cid, 'You succesfully took a sample of the rare griffinclaw flower', TALKTYPE_ORANGE_1) else doPlayerSendText,essage(cid, MESSAGE_INFO_DESCR, "Você não tem o botanist's container") else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You already took a sample of the rare griffinclaw flower.") end return TRUE end end Testa ai
  10. if(param == "skilldistance") then if getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 350 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode ter skill acima de 350.") return TRUE end if not isPaladin(cid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Somente Paladins podem comprar skill de distance.") return TRUE end if getPlayerItemCount(cid, 9971) >= 1 then local pid = getPlayerGUID(cid) local distance = getPlayerSkillLevel(cid, SKILL_DISTANCE) doPlayerRemoveItem(cid, 9971, 1) setPlayerStorageValue(cid,11548,os.time()+0) doRemoveCreature(cid) db.executeQuery("UPDATE `player_skills` SET `value` = " .. (distance + 1) .. ", `count` = 0 WHERE `skillid` = 4 and `player_id` = " .. pid .. ";") return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end Olá mentes brilhantes do TK, gostaria de saber se tem como adicionar alguma função não contar o skill que o utito tempo san adiciona a pessoa, assim não possibilitando bugar o comando citado acima, que quando usado utito tempo san e comprado um skill ele adiciona o valor do buff + o 1 do skill. Desde-ja agradeço. Muito Obrigado.
  11. Facinho de fazer isso adiciona um parâmetro days e um parâmetro comment. seguindo obviamente as funções disponiveis no tfs 1.0 logo o broadcast seria player:sendTextMessage(TALKTYPE_BROADCAST,"" .. player:getName() .. ", A conta do jogador ".. param .. " foi banida por ".. param .." dias, Por ".. param .." Motivo.")
  12. Alienbear postou uma resposta no tópico em Suporte Tibia OTServer
    Personagem Alienbear estava level 3008 e foi resetado com sucesso. Agora o personagem tem 4 reset(s). Eu estava online no servidor :X Up@ :X Agora só preciso de uma ajuda para aparecer uma mensagem ao player tentar resetar online em vez de ficar a pagina em branco Agora só preciso de uma ajudinha para adicionar uma mensagem quando o player estiver online... if ($playerinfo['online'] == 0){
  13. Alienbear postou uma resposta no tópico em Suporte & Pedidos
    E ai alguem se interessa em montar um servidor com esse mapa? pra mostrar pra criançada de hoje em dia oq era diversão?
  14. Alienbear postou uma resposta no tópico em Suporte Tibia OTServer
    Testarei e editarei aqui. Mano agora quando eu boto pra resetar e estou deslogado fica assim: Personagem alienbear estava level 628 e foi resetado com sucesso. Agora o personagem tem 1 reset(s). e estava online :X :X up@ up@
  15. Alienbear postou uma resposta no tópico em Suporte & Pedidos
    Quem ai estaria afim de reviver o antigo e magnifico Vancini Ot?
  16. Alienbear postou uma resposta no tópico em Suporte Tibia OTServer
    Cara se você seguir c++ / c# voce vai acabar aprendendo a compilar sources que usam destes meios de programação... Lua é uma programação baseada no C... tem tambem o php que é muito usado e muito uteis no tibia Fica estas dicas
  17. Alienbear postou uma resposta no tópico em Playground (Off-topic)
    Que bom que voltou Uma pessoa inteligente sem falar no eximio mapper que você é... O forum não poderia ficar sem você. Abraço.
  18. Alienbear postou uma resposta no tópico em Suporte Tibia OTServer
    E ai galerinha do TK Venho na Humildade pedir uma ajuda para adicionar uma função que verifique se o player está online e se estiver não Resetar o jogador. <?php if (!$logged){ include ('login.php'); } if ($logged) if ($action == ''){ $main_content .=' Para resetar o personagem escolha o personagem e digite sua senha para confirmação.<br> Ao resetar seu personagem, o personagem vai para level 8 mantendo o restante dos atributos.<br/><br/> <form action="?subtopic=reset&action=reset" method="post" > <div class="TableContainer" > <table class="Table1" cellpadding="0" cellspacing="0" > <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url(layouts/tibiacom/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url(layouts/tibiacom/images/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url(layouts/tibiacom/images/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url(layouts/tibiacom/images/content/box-frame-vertical.gif);" /></span> <div class="Text" >Resetar personagem</div> <span class="CaptionVerticalRight" style="background-image:url(layouts/tibiacom/images/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url(layouts/tibiacom/images/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url(layouts/tibiacom/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url(layouts/tibiacom/images/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer" > <table style="width:100%;" > <tr> <td class="LabelV" ><span >Nome do personagem:</td> <td style="width:90%;" > <select name="reset_name">'; $players_from_logged_acc = $account_logged->getPlayersList(); if(count($players_from_logged_acc) > 0) { $players_from_logged_acc->orderBy('name'); foreach($players_from_logged_acc as $player) { $main_content .= '<option value="'.$player->getName().'">'.$player->getName().'</option>'; } } else { $main_content .= 'You don\'t have any character on your account.'; } $main_content .=' </select> </td> </tr> <!--tr> <td class="LabelV" > <span >Account Name:</td><td><input type="password" name="reset_acc" size="30" maxlength="29" ></td></tr--> </table> </div> </table> </div> </td> </tr> <br/> <table style="width:100%" > <tr align="center" > <td> <table border="0" cellspacing="0" cellpadding="0" ><tr><td style="border:0px;" > <div class="BigButton" style="background-image:url(layouts/tibiacom/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url(layouts/tibiacom/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="layouts/tibiacom/images/buttons/_sbutton_submit.gif" ></div></div></td><tr></form></table></td><td><table border="0" cellspacing="0" cellpadding="0" ><form action="?subtopic=accountmanagement" method="post" ><tr><td style="border:0px;" ><div class="BigButton" style="background-image:url(layouts/tibiacom/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url(layouts/tibiacom/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="layouts/tibiacom/images/buttons/_sbutton_back.gif" ></div></div></td></tr></form></table></td></tr></table> '; } if ($action == 'reset'){ $reset_name = stripslashes(ucwords(strtolower(trim($_REQUEST['reset_name'])))); if(check_name($reset_name)) { $player = $ots->createObject('Player'); $player->find($reset_name); if($player->isLoaded()) { $PlayerLevel = $player->getLevel(); $PlayerReset = $player->getCustomField('reset'); $PlayerResetNow = $player->getCustomField('reset') + 1; $ResetTable = array ( 0 => 350, 1 => 350, 2 => 350, 3 => 350, 4 => 350, 5 => 355, 6 => 355, 7 => 355, 8 => 355, 9 => 355, 10 => 360, 11 => 360, 12 => 360, 13 => 360, 14 => 360, 15 => 365, 16 => 365, 17 => 365, 18 => 365, 19 => 365, 20 => 380, 21 => 380, 22 => 380, 23 => 380, 24 => 380, 25 => 390, 26 => 390, 27 => 390, 28 => 390, 29 => 390, 30 => 410, 31 => 410, 32 => 410, 33 => 410, 34 => 410, 35 => 430, 36 => 430, 37 => 430, 38 => 430, 39 => 430, 40 => 450, 41 => 450, 42 => 450, 43 => 450, 44 => 450, 45 => 480, 46 => 480, 47 => 480, 48 => 480, 49 => 480, 50 => 510, 51 => 510, 52 => 510, 53 => 510, 54 => 510, 55 => 550, 56 => 550, 57 => 550, 58 => 550, 59 => 550, ); $LevelLeft = $ResetTable[$PlayerReset] - $PlayerLevel; if ($PlayerLevel >= $ResetTable[$PlayerReset]){ $SQL->query ("UPDATE `players` SET `reset` = `reset` + '1', level = 8 WHERE `players`.`id` = '".$player->getId()."' LIMIT 1 ;"); $main_content .= ' <div class="reset_class"> Personagem '.$player->getName().' estava level '.$PlayerLevel.' e foi resetado com sucesso.<br /> Agora o personagem tem '.$PlayerResetNow.' reset(s). </div> <br /> <table border="0" cellpadding="0" cellspacing="0" align="center"> <tbody> <tr> <td style="border: 0px none;"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <form action="?subtopic=reset" method="post"> <input class="ButtonText" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" type="image"> </form> </div> </div> </td> </tr> </tbody> </table> '; } else { $main_content .= ' <div class="reset_class"> Você tem '.$PlayerReset.' resets.<br /> Você reseta level '.$ResetTable[$PlayerReset].'.<br /> <span style="color: red;">Faltam '.$LevelLeft.' level(s).</span> </div> <br /> <table border="0" cellpadding="0" cellspacing="0" align="center"> <tbody> <tr> <td style="border: 0px none;"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <form action="?subtopic=reset" method="post"> <input class="ButtonText" name="Continue" alt="Continue" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" type="image"> </form> </div> </div> </td> </tr> </tbody> </table> '; } /**********************************************/ } // Carregar modulos } // Checar Player Existente } // Fim page ?>
  19. Faça oq foi pedido...
  20. Ela está saindo torta por que você não adicionou o campo que localiza o player ou a criatura. local area = { {3,3,3}, {3,3,3}, {3,3,3}, } tente assim: local area = { {1,1,1}, {1,2,1}, {1,1,1}, }
  21. pqp que merda eim aushaushaush essas suas amigas são sadomasoquistas aushauhs
  22. Alienbear postou uma resposta no tópico em Suporte & Pedidos
    PERFEITO! Vamo que vamo
  23. Alienbear postou uma resposta no tópico em Suporte & Pedidos
    Será q eu poderia fazer um test para designer?

Informação Importante

Confirmação de Termo