Ir para conteúdo

Xtudomuito

Cavaleiro
  • Total de itens

    191
  • Registro em

  • Última visita

Posts postados por Xtudomuito

  1. Eu quero o crafting system que poder fundir 2 ou 3 items, e tbm queria quem fosse min ajuda, coloca-se tipo uma tabela pra facilitar as fusão dos itens. Porque vou pow muito item pra fundir.

    Ex:

    Q1 + Q2 + Q3 = Q4 sempre vai ser essa ordem.

    Mas tbm poder ser Q1 + Q2 = Q4. Isso tudo é no chão.

     

    Uso tfs 0.3.6 versão 8,60.

  2. Vir atrás de alguém pra min ajuda mudar os nomes das skills, Dessas mensagem You advanced skill fighting...

    por exemplo trocar o nome do sword fighting por agilidade, axe Fighting pra administração e asiim endiante. se precisa mexer na source pode dizer que eu tenho.

  3. Então o script não está compatível com seu site ou está com algum erro...problema que não gera erro...

    então vou espera o cara que criou pra ver o que ele acha, e dizer o que eu fis de errado. Obrigado e reputado.

  4. O link para verificar a vocação diretamente sim, pois você estava tentando usar outro.

     

    Agora pra acessar a página, basta acessar:

    seusite.com/index.php?subtopic=topplayers

    cara coloquei tudo pra topplayers mas ainda fica igual a imagem que mostrei ai em cima. n sei o que fazer e preciso muito.

    <li><a href="index.php?subtopic=topplayers"><b>TOP Profession Players</b></a></li>

  5. entao cara o que tenho que fazer. faz o mini tutorial pra min add no meu site, onde tenho que coloca.

     

    Como fis:

     

    em layouts/nno/layout.php coloquei:

     

    <li><a href="index.php?subtopic=topvocation"><b>TOP Profession Players</b></a></li>

     

    crie o arquivo php com o nome topvocation e colei o que mandou:

     

     

     

    1. <?php
    2. if(!defined('INITIALIZED'))
    3. exit;
    4. $list = 'experience';
    5. if(isset($_REQUEST['list']))
    6. $list = $_REQUEST['list'];
    7. $page = 0;
    8. if(isset($_REQUEST['page']))
    9. $page = min(50, $_REQUEST['page']);
    10. $vocation = '';
    11. if(isset($_REQUEST['vocation']))
    12. $vocation = $_REQUEST['vocation'];
    13. switch($list)
    14. {
    15. case "fist":
    16. $id=Highscores::SKILL_FIST;
    17. $list_name='Fist Fighting';
    18. break;
    19. case "club":
    20. $id=Highscores::SKILL_CLUB;
    21. $list_name='Club Fighting';
    22. break;
    23. case "sword":
    24. $id=Highscores::SKILL_SWORD;
    25. $list_name='Sword Fighting';
    26. break;
    27. case "axe":
    28. $id=Highscores::SKILL_AXE;
    29. $list_name='Axe Fighting';
    30. break;
    31. case "distance":
    32. $id=Highscores::SKILL_DISTANCE;
    33. $list_name='Distance Fighting';
    34. break;
    35. case "shield":
    36. $id=Highscores::SKILL_SHIELD;
    37. $list_name='Shielding';
    38. break;
    39. case "fishing":
    40. $id=Highscores::SKILL_FISHING;
    41. $list_name='Fishing';
    42. break;
    43. case "magic":
    44. $id=Highscores::SKILL__MAGLEVEL;
    45. $list_name='Magic';
    46. break;
    47. default:
    48. $id=Highscores::SKILL__LEVEL;
    49. $list_name='Experience';
    50. break;
    51. }
    52. $world_name = $config['server']['serverNameSite'];
    53. $offset = $page * 100;
    54. $skills = new Highscores($id, 100, $page, $vocation);
    55. $main_content .= '<img class="Title" src="/images/head/Highscores.png" alt="Contentbox headline" /><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD><IMG SRC="'.$layout_name.'/images/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD><TD><CENTER><H2>Ranking for '.htmlspecialchars($list_name).' on '.htmlspecialchars($world_name).'';
    56. if($_POST['vocation']){
    57. $vocs = array(
    58. 1 => 'Sorcerer',
    59. 2 => 'Druid',
    60. 3 => 'Paladin',
    61. 4 => 'Knight',
    62. 5 => 'Master Sorcerer',
    63. 6 => 'Elder Druid',
    64. 7 => 'Royal Paladin',
    65. 8 => 'Elite Knight'
    66. );
    67. $main_content .= '<br />('.$vocs[$_POST['vocation']].')';
    68. }
    69. $main_content .='</H2></CENTER><BR>';
    70. if (!$_GET['list']){
    71. $list = 'experience';
    72. }
    73. $main_content .= '
    74. <center>
    75. <table>
    76. <tr>
    77. <td valign="top"><h2>Choose Vocation:</h2></td>
    78. <td valign="top">
    79. <SCRIPT LANGUAGE="JavaScript">
    80. function selecturl(s) {
    81. var gourl = s.options[s.selectedIndex].value; window.top.location.href = gourl;
    82. }
    83. </SCRIPT>
    84. <FORM>
    85. <SELECT class="textbox" name="urljump" OnChange="selecturl(this)">
    86. <OPTION VALUE="">->'.$vocs[$_GET['vocation']].'</OPTION>
    87. <option value="?subtopic=highscores&list=magic&vocation=1">Sorcerer</option>
    88. <option value="?subtopic=highscores&list=magic&vocation=2">Druid</option>
    89. <option value="?subtopic=highscores&list=magic&vocation=3">Paladin</option>
    90. <option value="?subtopic=highscores&list=magic&vocation=4">Knight</option>
    91. <option value="?subtopic=highscores&list=magic&vocation=5">Master Sorcerer</option>
    92. <option value="?subtopic=highscores&list=magic&vocation=6">Elder Druid</option>
    93. <option value="?subtopic=highscores&list=magic&vocation=7">Royal Paladin</option>
    94. <option value="?subtopic=highscores&list=magic&vocation=8">Elite Knight</option>
    95. </SELECT>
    96. </FORM>
    97. </td>
    98. </tr>
    99. </table>
    100. <center><h2>Best '.$vocs[$_GET['vocation']].' Players:</h2></center>
    101. ';
    102. $main_content .= '<br>
    103. <TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%></TABLE><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=whites><B>Rank    </B></TD><TD WIDTH=75% CLASS=whites><B>Name</B></TD><TD WIDTH=15% CLASS=whites><b>Level</B></TD>';
    104. if($list == "experience")
    105. $main_content .= '<TD CLASS=whites><b>Experience</B></TD>';
    106. //$main_content .= '</TR><TR>';
    107. $main_content .= '</TR>';
    108. $number_of_rows = 0;
    109. foreach($skills as $skill)
    110. {
    111. if($list == "magic")
    112. $value = $skill->getMagLevel();
    113. elseif($list == "experience")
    114. $value = $skill->getLevel();
    115. else
    116. $value = $skill->getScore();
    117. $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']);
    118. $main_content .= '<tr bgcolor="'.$bgcolor.'"><td style="text-align:left">'.($offset + $number_of_rows).'</td><td><a href="?subtopic=characters&name='.urlencode($skill->getName()).'">'.htmlspecialchars($skill->getName()).'</a></td><td>'.$value.'</td>';
    119. if($list == "experience")
    120. $main_content .= '<td>'.$skill->getExperience().'</td>';
    121. $main_content .= '</tr>';
    122. }
    123. $main_content .= '</TABLE><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%>';
    124. if($page > 0)
    125. $main_content .= '<TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF="?subtopic=highscores&list='.urlencode($list).'&page='.($page - 1).'&vocation=' . urlencode($vocation) . '" CLASS="size_xxs">Previous Page</A></TD></TR>';
    126. if($page < 50)
    127. $main_content .= '<TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF="?subtopic=highscores&list='.urlencode($list).'&page='.($page + 1).'&vocation=' . urlencode($vocation) . '" CLASS="size_xxs">Next Page</A></TD></TR>';
    128. $main_content .= '</TABLE></TD><TD WIDTH=5%><IMG SRC="'.$layout_name.'/images/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0></TD><TD WIDTH=15% VALIGN=top ALIGN=right><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=whites><B>Choose a skill</B></TD></TR><TR BGCOLOR="'.$config['site']['lightborder'].'"><TD><A HREF="?subtopic=highscores&list=experience" CLASS="size_xs">Experience</A><BR><A HREF="?subtopic=highscores&list=magic" CLASS="size_xs">Magic</A><BR><A HREF="?subtopic=highscores&list=shield" CLASS="size_xs">Shielding</A><BR><A HREF="?subtopic=highscores&list=distance" CLASS="size_xs">Distance</A><BR><A HREF="?subtopic=highscores&list=club" CLASS="size_xs">Club</A><BR><A HREF="?subtopic=highscores&list=sword" CLASS="size_xs">Sword</A><BR><A HREF="?subtopic=highscores&list=axe" CLASS="size_xs">Axe</A><BR><A HREF="?subtopic=highscores&list=fist" CLASS="size_xs">Fist</A><BR><A HREF="?subtopic=highscores&list=fishing" CLASS="size_xs">Fishing</A><BR></TD></TR></TABLE></TD><TD><IMG SRC="'.$layout_name.'/images/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD></TR></TABLE>';

     

     

     

    e add tb no index:

     

    case "topvocation":
    $topic = "Top Profession Players";
    $subtopic = "topvocation";
    include("topvocation.php");
    break;
    mas quando eu entro no site que eu ti mandei pra copia o arquivo php o index dele esta assim:
    index.php?subtopic=topplayers&profa=Naruto
    vc acha que eu fis algo de errado, poderia dizer o que tenho que fazer de certo.
    quando abro fica assin
    YuyJGf0.png
  6.  

    Tenta assim:

    local config = {	pos1 = {x = 1000, y = 550, z = 7},	pos2 = {x = 1002, y = 553, z = 7},	templo = {x = 160, y = 54, z = 7},	tempo = 2 -- minutos para ficar na sala}local keywordHandler = KeywordHandler:new()local npcHandler = NpcHandler:new(keywordHandler)NpcSystem.parseParameters(npcHandler)local talkState = {}function onCreatureAppear(cid)            npcHandler:onCreatureAppear(cid)        endfunction onCreatureDisappear(cid)        npcHandler:onCreatureDisappear(cid)        endfunction onCreatureSay(cid, type, msg)        npcHandler:onCreatureSay(cid, type, msg)    endfunction onThink()                npcHandler:onThink()                endfunction creatureSayCallback(cid, type, msg)    if (not npcHandler:isFocused(cid)) then        return false    end	local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid	if (msgcontains(msg, 'destino')) then		selfSay('Posso escolher seu destino?', cid)		talkState[talkUser] = 1	elseif ((msgcontains(msg, 'yes') or msgcontains(msg, 'sim')) and talkState[talkUser] == 1) then		local rand = math.random(1, 2)		local pos = (rand == 1 and config.pos1 or config.pos2)		doTeleportThing(cid, pos)		addEvent(function() doTeleportThing(cid, config.templo) end, config.tempo * 60 * 1000)		talkState[talkUser] = 0	end	return trueendnpcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)npcHandler:addModule(FocusModule:new())
    obrigado ficou com queria.
  7. Veja se ajuda, fiz baseado em tibia, basta editar o nome das vocações

     

     

     

    <?php
    if(!defined('INITIALIZED'))
    	exit;
    
    $list = 'experience';
    if(isset($_REQUEST['list']))
    	$list = $_REQUEST['list'];
    
    $page = 0;
    if(isset($_REQUEST['page']))
    	$page = min(50, $_REQUEST['page']);
    
    $vocation = '';
    if(isset($_REQUEST['vocation']))
    	$vocation = $_REQUEST['vocation'];
    
    switch($list)
    {
    	case "fist":
    		$id=Highscores::SKILL_FIST;
    		$list_name='Fist Fighting';
    		break;
    	case "club":
    		$id=Highscores::SKILL_CLUB;
    		$list_name='Club Fighting';
    		break;
    	case "sword":
    		$id=Highscores::SKILL_SWORD;
    		$list_name='Sword Fighting';
    		break;
    	case "axe":
    		$id=Highscores::SKILL_AXE;
    		$list_name='Axe Fighting';
    		break;
    	case "distance":
    		$id=Highscores::SKILL_DISTANCE;
    		$list_name='Distance Fighting';
    		break;
    	case "shield":
    		$id=Highscores::SKILL_SHIELD;
    		$list_name='Shielding';
    		break;
    	case "fishing":
    		$id=Highscores::SKILL_FISHING;
    		$list_name='Fishing';
    		break;
    	case "magic":
    		$id=Highscores::SKILL__MAGLEVEL;
    		$list_name='Magic';
    		break;
    	default:
    		$id=Highscores::SKILL__LEVEL;
    		$list_name='Experience';
    		break;
    }
    $world_name = $config['server']['serverNameSite'];
    
    $offset = $page * 100;
    $skills = new Highscores($id, 100, $page, $vocation);
    $main_content .= '<img class="Title"  src="/images/head/Highscores.png" alt="Contentbox headline" /><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD><IMG SRC="'.$layout_name.'/images/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD><TD><CENTER><H2>Ranking for '.htmlspecialchars($list_name).' on '.htmlspecialchars($world_name).'';
    if($_POST['vocation']){
    $vocs = array(
    1 => 'Sorcerer',
    2 => 'Druid',
    3 => 'Paladin',
    4 => 'Knight',
    5 => 'Master Sorcerer',
    6 => 'Elder Druid',
    7 => 'Royal Paladin',
    8 => 'Elite Knight'
    );
    $main_content .= '<br />('.$vocs[$_POST['vocation']].')';
    }
    $main_content .='</H2></CENTER><BR>';
    
    if (!$_GET['list']){
    $list = 'experience';
    }
    
    
    
    $main_content .= '
    <center>
    <table>
    <tr>
    <td valign="top"><h2>Choose Vocation:</h2></td>
    <td valign="top">
    <SCRIPT LANGUAGE="JavaScript">
    function selecturl(s) {
    	var gourl = s.options[s.selectedIndex].value;	window.top.location.href = gourl;
    }
    </SCRIPT>
    
    
    <FORM>
    
    <SELECT class="textbox" name="urljump" OnChange="selecturl(this)">
    <OPTION VALUE="">->'.$vocs[$_GET['vocation']].'</OPTION>
    <option value="?subtopic=highscores&list=magic&vocation=1">Sorcerer</option>
    <option value="?subtopic=highscores&list=magic&vocation=2">Druid</option>
    <option value="?subtopic=highscores&list=magic&vocation=3">Paladin</option>
    <option value="?subtopic=highscores&list=magic&vocation=4">Knight</option>
    <option value="?subtopic=highscores&list=magic&vocation=5">Master Sorcerer</option>
    <option value="?subtopic=highscores&list=magic&vocation=6">Elder Druid</option>
    <option value="?subtopic=highscores&list=magic&vocation=7">Royal Paladin</option>
    <option value="?subtopic=highscores&list=magic&vocation=8">Elite Knight</option>
    </SELECT>
    </FORM>
    
    </td>
    </tr>
    </table>
    
    <center><h2>Best '.$vocs[$_GET['vocation']].' Players:</h2></center>
    ';
    
    
    
    $main_content .= '<br>
    <TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%></TABLE><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=whites><B>Rank    </B></TD><TD WIDTH=75% CLASS=whites><B>Name</B></TD><TD WIDTH=15% CLASS=whites><b>Level</B></TD>';
    if($list == "experience")
    	$main_content .= '<TD CLASS=whites><b>Experience</B></TD>';
    //$main_content .= '</TR><TR>';
    $main_content .= '</TR>';
    $number_of_rows = 0;
    foreach($skills as $skill)
    {
    	if($list == "magic")
    		$value = $skill->getMagLevel();
    	elseif($list == "experience")
    		$value = $skill->getLevel();
    	else
    		$value = $skill->getScore();
    	$bgcolor = (($number_of_rows++ % 2 == 1) ?  $config['site']['darkborder'] : $config['site']['lightborder']);
    	$main_content .= '<tr bgcolor="'.$bgcolor.'"><td style="text-align:left">'.($offset + $number_of_rows).'</td><td><a href="?subtopic=characters&name='.urlencode($skill->getName()).'">'.htmlspecialchars($skill->getName()).'</a></td><td>'.$value.'</td>';
    	if($list == "experience")
    		$main_content .= '<td>'.$skill->getExperience().'</td>';
    	$main_content .= '</tr>';
    }
    $main_content .= '</TABLE><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%>';
    if($page > 0)
    	$main_content .= '<TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF="?subtopic=highscores&list='.urlencode($list).'&page='.($page - 1).'&vocation=' . urlencode($vocation) . '" CLASS="size_xxs">Previous Page</A></TD></TR>';
    if($page < 50)
    	$main_content .= '<TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF="?subtopic=highscores&list='.urlencode($list).'&page='.($page + 1).'&vocation=' . urlencode($vocation) . '" CLASS="size_xxs">Next Page</A></TD></TR>';
    $main_content .= '</TABLE></TD><TD WIDTH=5%><IMG SRC="'.$layout_name.'/images/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0></TD><TD WIDTH=15% VALIGN=top ALIGN=right><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=whites><B>Choose a skill</B></TD></TR><TR BGCOLOR="'.$config['site']['lightborder'].'"><TD><A HREF="?subtopic=highscores&list=experience" CLASS="size_xs">Experience</A><BR><A HREF="?subtopic=highscores&list=magic" CLASS="size_xs">Magic</A><BR><A HREF="?subtopic=highscores&list=shield" CLASS="size_xs">Shielding</A><BR><A HREF="?subtopic=highscores&list=distance" CLASS="size_xs">Distance</A><BR><A HREF="?subtopic=highscores&list=club" CLASS="size_xs">Club</A><BR><A HREF="?subtopic=highscores&list=sword" CLASS="size_xs">Sword</A><BR><A HREF="?subtopic=highscores&list=axe" CLASS="size_xs">Axe</A><BR><A HREF="?subtopic=highscores&list=fist" CLASS="size_xs">Fist</A><BR><A HREF="?subtopic=highscores&list=fishing" CLASS="size_xs">Fishing</A><BR></TD></TR></TABLE></TD><TD><IMG SRC="'.$layout_name.'/images/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD></TR></TABLE>'; 

     

     

     

    Amigo aqui n abriu pagina ficou tudo branco, tenho que fazer mas alguma coisa.

  8. Bom queria coloca no meu site o rank vocation, pra mostra quem é mas forte na sua vocation. Alguém poderia arruma, meu Server é anime tem muitas vocation.

     

    queria igual a esse:

    hRhbAhA.png

  9.  

    --- Xtibia--- Xtibia.local vocations = {1, 2, 4, 5, 6, 7, 8} -- Vocações que podem refinar itenslocal ids_bloqueados = {2160, 5706, 2463} -- Itens que não podem ser refinadoslocal controle = {    {level = 0, quantOre = 1, chance = 100}, -- Level do item, quantidade de Iron Ore necessaria, chance de sucesso    {level = 1, quantOre = 2, chance = 90},    {level = 2, quantOre = 3, chance = 80},    {level = 3, quantOre = 4, chance = 70},    {level = 4, quantOre = 5, chance = 60},    {level = 5, quantOre = 6, chance = 50},    {level = 6, quantOre = 7, chance = 40},    {level = 7, quantOre = 8, chance = 30},    {level = 8, quantOre = 9, chance = 20},    {level = 9, quantOre = 10, chance = 10}}function getItemLevel(uid)    if uid > 0 then        return getItemAttribute(uid, "lvl") or 0    end    return falseendfunction doItemAddLevel(uid, count)    if uid > 0 and tonumber(count) then        return doItemSetAttribute(uid, "lvl", getItemLevel(uid) + count)    end    return falseendfunction onUse(cid, item, fromPosition, itemEx, toPosition)    if not isInArray(vocations, getPlayerVocation(cid)) then        return doPlayerSendCancel(cid, "Sua vocacao nao pode refinar.")    elseif isInArray(ids_bloqueados, itemEx.uid) then        return doPlayerSendCancel(cid, "Este item nao pode ser refinado.")    end         if getItemInfo(itemEx.itemid).attack > 0 or getItemInfo(itemEx.itemid).defense > 0 or getItemInfo(itemEx.itemid).armor > 0 then        for _, upgrade in pairs(controle) do            local atk = getItemAttribute(itemEx.uid, "attack") or getItemInfo(itemEx.itemid).attack            local def = getItemAttribute(itemEx.uid, "defense") or getItemInfo(itemEx.itemid).defense            local arm = getItemAttribute(itemEx.uid, "armor") or getItemInfo(itemEx.itemid).armor            local chance = math.random(1, 100)            if getItemLevel(itemEx.uid) == upgrade.level then               if doPlayerRemoveItem(cid, 5880, upgrade.quantOre) then                   doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_CRAPS)                  if chance <= upgrade.chance then                      if getItemLevel(itemEx.uid) == 0 then                          doItemSetAttribute(itemEx.uid, "description", "Esse item foi refinado por" ..getCreatureName(cid))                      end                      doItemAddLevel(itemEx.uid, 1)                      doItemSetAttribute(itemEx.uid, "name", getItemNameById(itemEx.itemid).. " + " ..getItemLevel(itemEx.uid))                      doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce refinou com sucesso! Agora seu "..getItemNameById(itemEx.itemid).." eh level " ..getItemLevel(itemEx.uid))                      if getItemInfo(itemEx.itemid).attack > 0 then                          doItemSetAttribute(itemEx.uid, "attack", atk + 1)                          return true                      elseif getItemInfo(itemEx.itemid).armor > 0 then                          doItemSetAttribute(itemEx.uid, "armor", arm + 1)                          return true                      elseif getItemInfo(itemEx.itemid).defense > 0 and getItemInfo(itemEx.itemid).attack <= 0 then                          doItemSetAttribute(itemEx.uid, "defense", def + 1)                          return true                      end                  else                      doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce falhou.")                      if getItemLevel(itemEx.uid) > 0 then                          doItemAddLevel(itemEx.uid, -1)                          doItemSetAttribute(itemEx.uid, "name", getItemNameById(itemEx.itemid).. " + " ..getItemLevel(itemEx.uid))                          if getItemInfo(itemEx.itemid).attack > 0 then                              doItemSetAttribute(itemEx.uid, "attack", atk - 1)                              return true                          elseif getItemInfo(itemEx.itemid).armor > 0 then                              doItemSetAttribute(itemEx.uid, "armor", arm - 1)                              return true                          elseif getItemInfo(itemEx.itemid).defense > 0 and getItemInfo(itemEx.itemid).attack <= 0 then                              doItemSetAttribute(itemEx.uid, "defense", def - 1)                              return true                          end                      end					  return true                  end              else                  doPlayerSendCancel(cid, "Voce nao tem iron ores o suficiente. Voce precisa de "..upgrade.quantOre.." iron ores.")              end          end      end  else      doPlayerSendCancel(cid, "Esse item nao pode ser refinado.")  end  return trueend

    alguém poderia deixa que todas vocation pode usa e no lugar de coloca os id bloqueado coloca os item que pode ser refinados

  10. Esse tópico deve te ajuda.

    http://www.xtibia.com/forum/topic/195644-monstro-que-so-ataca-player-com-tal-storage/

     

    obrigado por responde, lah nao tem nada resolvido e o topico é muito velho nem da pra responde o topico é 2012.mas o brun123 dis:

     

    Só modificando a source do seu server amigo... as funções onTarget, onAttack, onCombat e onFollow foram desenvolvidas para serem funcionais com players apenas, com monstros elas não funcionam exatamente como esperado. Pode retornar false em todas elas que o monstro vai sempre seguir o player.

    O melhor que você pode fazer em lua é fazer um npc que simule um monstro, torna ele atacável e configura no onThink pra ele atacar apenas targets que não tenham a tal storage, e quando morrer (onDeath), irá criar um corpo pra ele, colocar itens gerados pelo próprio script simulando o loot, distruibuir exp. etc...

     

    mas n sei onde tenho que mexe,alguem:

  11. Bom quando eu tinha o Server de Dragon Ball versão 8.00 tinha o sistema saga. Mas eu n tinha sources, aí agr eu tô com as sources do meu wodbo só que a versão é 8.54. Mas n tem o sistema saga.

     

    Esse sistema saga Funcionava assim no wodbo 8.00:

     

    no Server tinha um monster que só poderia ataca alguém e ser atacado ser o player estive o storage que o monster precisa para se move, caso contrário o monster fica parado, não pode ataca e nem ser atacado. Aí o player tinha que ir fala com o npc que da premisao pra mata o monster(o storage) aí sim o monster pode se mover,ataca e ser atacado.

     

    Aí quero coloca no meu Server na versão 8.54 tfs 0.3.5 mas n ser como fazer, alguém pode ajudar. Se precisa mexe em sources pode fala que eu tenho.

    O npc n precisa fazer pq eu msm faço.

  12. Bom galera do tk vir atrás do npc basicamente assim. Ao player fala com o npc, esse npc escolherá uma sala aleatoriamente para o player(sala 1 ou sala 2). O player ficará nessa sala por 2 minutos. Ao acaba o templo o player que fica nas duas sala será teleportado por templo. Esse npc tem hora e dia pra fala com ele.

     

    Pra quem n entendeu vou explica assim.

     

    Player= hi

    Npc= ola [nome do player], o que vc quer?

    Player= destino

    Npc= vc quer que eu escolha o seu destino.

    Player= Yes

     

    ao o npc escolhe aleatoriamente sala 1 ou sala 2. Aí o player passará 2 minutos nessa duas sala ao acaba o templo será teleportado por templo.

  13. Tamanho: sua preferência

    Tema: naruto

    Pedido: sign

    Cores: sua preferência

    outros: uma sign que chame o pessoal pra curtir a página do facebook.

     

    -- No tópico do Tony --

     

    se disse que o João ia min ajuda na capa do client. mas nada ainda, posso atualizar o pedido aqui. Vlw

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...