Ir para conteúdo

BennyDz

Membro
  • Registro em

  • Última visita

Tudo que BennyDz postou

  1. adicione modal windows
  2. BennyDz postou uma resposta no tópico em Códigos C++
    update for tfs 12 :D
  3. BennyDz postou uma resposta no tópico em Ferramentas OpenTibia
    comparte sources
  4. oi galera, Eu tenho um problema, Eu quero criar uma arena, com piso pvp, mas perdem experiência ao morrer. Eu preciso de algum script ou precisa trabalhar?
  5. local storage = 25000 local level_reward = { [100] = {items = {{itemid = 2191, count = 1}, {itemid = 7618, count = 20}}}, [150] = {items = {{itemid = 8921, count = 1}, {itemid = 7620, count = 50}}}, [250] = {items = {{itemid = 2187, count = 1}, {itemid = 7620, count = 50}}}, [300] = {items = {{itemid = 2187, count = 1}, {itemid = 7620, count = 50}}}, [350] = {items = {{itemid = 2187, count = 1}, {itemid = 7620, count = 50}}}, [400] = {items = {{itemid = 2187, count = 1}, {itemid = 7620, count = 50}}}, [450] = {items = {{itemid = 2187, count = 1}, {itemid = 7620, count = 50}}}, [500] = {items = {{itemid = 2187, count = 1}, {itemid = 7620, count = 50}}} } function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey) if player:getStorageValue(storage) == tonumber(os.date("%w")) then return player:sendCancelMessage("The chest is empty, come back tomorrow for a new reward.") end for lvl, x in pairs(level_reward) do for lvl, z in pairs(x) do local text = "" local z = z[player:getLevel()] for v = 1, #z.items do count, info = z.items[v].count, getItemDescriptions(z.items[v].itemid) local ret = ", " if v == 1 then ret = "" elseif v == #z.items then ret = " and " end text = text .. ret text = text .. (count > 1 and count or info.article).." "..(count > 1 and info.plural or info.name) player:addItem(z.items[v].itemid, z.items[v].count) end player:sendTextMessage(MESSAGE_INFO_DESCR, "Congratulations, you reached level "..level.." and received "..text..".") player:getPosition():sendMagicEffect(CONST_ME_FIREWORK_YELLOW) player:setStorageValue(storage, tonumber(os.date("%w"))) end end end nao logro fazer função meu script cambia reward on level
  6. Oi galera Estou vendo este script Ele pode ser modificado para ser diferentes prêmios de vocações? tente mas nao funciona local rewards = { SORCERER = { [10] = {items = { [1] = {itemid = 1111, count = 1}, [2] = {itemid = 1111, count = 1} }, storage = 40000}, [20] = {items = { [1] = {itemid = 1111, count = 1}, [2] = {itemid = 1111, count = 1} }, storage = 40001}, }, DRUID = { [10] = {items = { [1] = {itemid = 1111, count = 1}, [2] = {itemid = 1111, count = 1} }, storage = 40002}, [20] = {items = { [1] = {itemid = 1111, count = 1}, [2] = {itemid = 1111, count = 1} }, storage = 40003}, }, PALADIN = { [10] = {items = { [1] = {itemid = 1111, count = 1}, [2] = {itemid = 1111, count = 1} }, storage = 40004}, [20] = {items = { [1] = {itemid = 1111, count = 1}, [2] = {itemid = 1111, count = 1} }, storage = 40005}, }, KNIGHT = { [10] = {items = { [1] = {itemid = 1111, count = 1}, [2] = {itemid = 1111, count = 1} }, storage = 40006}, [20] = {items = { [1] = {itemid = 1111, count = 1}, [2] = {itemid = 1111, count = 1} }, storage = 40007}, } } local sorc = {1, 5, 9} local druid1 = {2, 6, 10} local paladin1 = {3, 7, 11} local knight1 = {4, 8, 12} local magicEffect_reward = 14 function onAdvance(player, skill, oldlevel, newlevel) if skill ~= SKILL__LEVEL then return true end if isInArray(sorc, player:getVocation():getId()) then VOC = rewards.SORCERER elseif isInArray(druid1, player:getVocation():getId()) then VOC = rewards.DRUID elseif isInArray(paladin1, player:getVocation():getId()) then VOC = rewards.PALADIN elseif isInArray(knight1, player:getVocation():getId()) then VOC = rewards.KNIGHT end if not VOC then return true end REWARD = VOC[newlevel] if not REWARD then return true end if player:getStorageValue(REWARD.storage) == nil then for i = 1, #REWARD.items do player:addItem(REWARD.items[i].itemid, rewards.items[i].count) end player:setStorageValue(REWARD.items[i].storage, 1) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, "Congratulations, you have reached level "..player:getLevel().." and received your rewards.") player:getPosition():sendMagicEffect(magicEffect_reward) end return true end
  7. oi galera tente esto <mount id="82" clientid="739" name="Noctungra" speed="20" premium="yes" /> <mount id="103" clientid="739" name="Super Noctungra" speed="40" premium="yes" /> mas não pode ser usada, ideias?
  8. solved i use .lua, please close this teme script: function onHealthChange(player, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) if not attacker then return primaryDamage, primaryType, secondaryDamage, secondaryType end if attacker:isMonster() and not attacker:getMaster() then primaryDamage = primaryDamage*3 secondaryDamage = secondaryDamage*3 end return primaryDamage, primaryType, secondaryDamage, secondaryType end function onManaChange(player, attacker, manaChange, origin) if not attacker then return manaChange end if attacker:isMonster() and not attacker:getMaster() then manaChange = manaChange *3 end return manaChange end
  9. BennyDz postou uma resposta no tópico em Códigos C++
    adapte para tfs 1.2 xD
  10. Olá amigos, como eu posso aumentar o dano de monstros? percentagem uso tfs 1.2 obrigado
  11. oii voce pode adaptar para tfs 1.x?
  12. BennyDz postou uma resposta no tópico em Mapas de Tibia
    reupload please
  13. Estou muito grato a você, muito muito muito obrigado, fixe 2 error em vocation e fech(), e Agora Eu tenho que Fazer fixar guilds wars. EU SOU MUITO muito satisfeito.
  14. @Victor Fasano Raful voce sabe?
  15. i want make this: Eu estou olhando para fazer isso : but have this error only show 1 player lvl and voc on ranks: mas eu tenho o seguinte erro: here is my code complete guilds.php: aqui está a minha guilds.php código completo http://pastebin.com/GnJzNXmn here is section on show players: Esta é a seção dos jogadores <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%> <TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=5 CLASS=white><B>Guild Members</B></TD></TR> <TR BGCOLOR='.$config['site']['darkborder'].'> <TD ><B>Rank</B></TD> <TD ><B>Name and Title</B></TD> <TD ><B>Vocation</B></TD> <TD ><B>Level</B></TD> <TD ><B>Status</B></TD> </TR>'; $showed_players = 1; foreach($rank_list as $rank) { $players_with_rank = $rank->getPlayersList(); $players_with_rank_number = count($players_with_rank); if($players_with_rank_number > 0) { if(is_int($showed_players / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $showed_players++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD valign="top">'.$rank->getName().'</TD> <TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%>'; foreach($players_with_rank as $player) { $main_content .= ''; $main_content .= '<TR><TD> <FORM ACTION="?subtopic=guilds&action=change_nick&name='.urlencode($player->getName()).'" METHOD=post> <A HREF="?subtopic=characters&name='.urlencode($player->getName()).'">'.($player->isOnline() ? "<font color=\"green\">".$player->getName()."</font>" : "<font color=\"red\">".$player->getName()."</font>").'</A> '; /* <br><small>Level: '.$player->getLevel().' '.$vocation_name[$player->getPromotion()][$player->getVocation()].'</small> */ $guild_nick = $player->getGuildNick(); if($logged) if(in_array($player->getId(), $players_from_account_ids)) $main_content .= '(<input type="text" name="nick" value="'.htmlentities($player->getGuildNick()).'"><input type="submit" value="Change">)'; else if(!empty($guild_nick)) $main_content .= ' ('.htmlentities($player->getGuildNick()).')'; else if(!empty($guild_nick)) $main_content .= ' ('.htmlentities($player->getGuildNick()).')'; if($level_in_guild > $rank->getLevel() || $guild_leader) if($guild_leader_char->getName() != $player->getName()) $main_content .= '&nbsp;<font size=1>{<a href="?subtopic=guilds&action=kickplayer&guild='.$guild->getId().'&name='.urlencode($player->getName()).'">KICK</a>}</font>'; $main_content .= '</TR></FORM>'; } $main_content .= '</TABLE></TD><TD>'.$vocation_name[$player->getPromotion()][$player->getVocation()].'<TD>'.$player->getLevel().'</TR>'; } }
  16. i want make this: Eu estou olhando para fazer isso : but have this error only show 1 player lvl and voc on ranks: mas eu tenho o seguinte erro: here is my code complete guilds.php: aqui está a minha guilds.php código completo http://pastebin.com/GnJzNXmn here is section on show players: Esta é a seção dos jogadores <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%> <TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=5 CLASS=white><B>Guild Members</B></TD></TR> <TR BGCOLOR='.$config['site']['darkborder'].'> <TD ><B>Rank</B></TD> <TD ><B>Name and Title</B></TD> <TD ><B>Vocation</B></TD> <TD ><B>Level</B></TD> <TD ><B>Status</B></TD> </TR>'; $showed_players = 1; foreach($rank_list as $rank) { $players_with_rank = $rank->getPlayersList(); $players_with_rank_number = count($players_with_rank); if($players_with_rank_number > 0) { if(is_int($showed_players / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $showed_players++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD valign="top">'.$rank->getName().'</TD> <TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%>'; foreach($players_with_rank as $player) { $main_content .= ''; $main_content .= '<TR><TD> <FORM ACTION="?subtopic=guilds&action=change_nick&name='.urlencode($player->getName()).'" METHOD=post> <A HREF="?subtopic=characters&name='.urlencode($player->getName()).'">'.($player->isOnline() ? "<font color=\"green\">".$player->getName()."</font>" : "<font color=\"red\">".$player->getName()."</font>").'</A> '; /* <br><small>Level: '.$player->getLevel().' '.$vocation_name[$player->getPromotion()][$player->getVocation()].'</small> */ $guild_nick = $player->getGuildNick(); if($logged) if(in_array($player->getId(), $players_from_account_ids)) $main_content .= '(<input type="text" name="nick" value="'.htmlentities($player->getGuildNick()).'"><input type="submit" value="Change">)'; else if(!empty($guild_nick)) $main_content .= ' ('.htmlentities($player->getGuildNick()).')'; else if(!empty($guild_nick)) $main_content .= ' ('.htmlentities($player->getGuildNick()).')'; if($level_in_guild > $rank->getLevel() || $guild_leader) if($guild_leader_char->getName() != $player->getName()) $main_content .= '&nbsp;<font size=1>{<a href="?subtopic=guilds&action=kickplayer&guild='.$guild->getId().'&name='.urlencode($player->getName()).'">KICK</a>}</font>'; $main_content .= '</TR></FORM>'; } $main_content .= '</TABLE></TD><TD>'.$vocation_name[$player->getPromotion()][$player->getVocation()].'<TD>'.$player->getLevel().'</TR>'; } }

Informação Importante

Confirmação de Termo