-
Rodrigo94 alterou sua foto pessoal
-
-
-
(PEDIDO) Task system (Killing in the name of) grizzly addans com boss room tfs 0.4
Vou procurar, pois cassei muito pela task e todos são incompletos.. até baixei alguns globais 8.6 mas não são completos... tem um sistema bacana que tem o archvievements mas não possui o boss, e ele deu uma bugadinha no site os pontos estão contando errados e derrepente quando vc consegue um achievements ele fica aparecendo que vc tem 89281891291289 pontos..
-
Rodrigo94 reagiu a uma resposta no tópico: (PEDIDO) Task system (Killing in the name of) grizzly addans com boss room tfs 0.4
-
-
(PEDIDO) Task system (Killing in the name of) grizzly addans com boss room tfs 0.4
Tfs 0.4 8.40 old Tudo bem galera? Gostaria de fazer um pedido, estou precisando do sistema de task pro tfs 0.4 que tenha o boss room ou que o npc leve pro boss após finalizar a task... Já procurei em todos os foruns, e não obtive sucesso.. será que alguém poderia me ajudar? Obrigado desde já!
-
Rodrigo94 começou a seguir Shop com outfit para TFS 0.4 3777 8.60 AJUDA
-
-
-
-
Rodrigo94 reagiu a uma resposta no tópico: Adicionando Novas Montarias e Itens Tibia Ot Server 12x (Assets Editor) Corrigindo Itens não aparecendo na Store.
-
-
-
-
LOOK ITENS NO CAST (ESPECTADOR)
Achou alguma solução?
-
Trade Offline V2.0
estou com o mesmo erro. já recompilei a distro como pede e coloquei a lib 090-woox_functions.. tentei adicionar na lib 050 function: function getItemDuration(uid) return getItemDurationTime(uid, duration) end mas apareceu outro erro: data/lib/050-function.lua:318: in function 'getItemArticleById'
- Trade Offline V2.0
-
[Loot Channel] -- Tutorial como adicionar Loot Channel
Pelo que analisei o codigo nao é pro meu TFS da erro de MSG_CHANNEL Não deu certo, tive erros ao compilar: 1> monsters.cpp 1>..\monsters.cpp(137): error C2065: 'MSG_CHANNEL' : undeclared identifier 1>..\monsters.cpp(140): error C2065: 'ChatChannel' : undeclared identifier 1>..\monsters.cpp(140): error C2065: 'lootChannel' : undeclared identifier 1>..\monsters.cpp(140): error C2065: 'g_chat' : undeclared identifier 1>..\monsters.cpp(140): error C2228: left of '.getChannel' must have class/struct/union 1> type is ''unknown-type'' 1>..\monsters.cpp(141): error C2065: 'lootChannel' : undeclared identifier 1>..\monsters.cpp(146): error C2065: 'lootChannel' : undeclared identifier 1>..\monsters.cpp(146): error C2227: left of '->hasUser' must point to class/struct/union/generic type 1> type is ''unknown-type'' 1>..\monsters.cpp(151): error C2065: 'MSG_CHANNEL' : undeclared identifier 1>..\monsters.cpp(157): error C2601: 'MonsterType::createLoot' : local function definitions are illegal 1> ..\monsters.cpp(95): this line contains a '{' which has not yet been matched 1>..\monsters.cpp(190): error C2601: 'MonsterType::createChildLoot' : local function definitions are illegal 1> ..\monsters.cpp(95): this line contains a '{' which has not yet been matched 1>..\monsters.cpp(216): error C2601: 'Monsters::loadFromXml' : local function definitions are illegal 1> ..\monsters.cpp(95): this line contains a '{' which has not yet been matched 1>..\monsters.cpp(267): error C2601: 'Monsters::getDamageCondition' : local function definitions are illegal 1> ..\monsters.cpp(95): this line contains a '{' which has not yet been matched 1>..\monsters.cpp(282): error C2601: 'Monsters::deserializeSpell' : local function definitions are illegal 1> ..\monsters.cpp(95): this line contains a '{' which has not yet been matched 1>..\monsters.cpp(887): error C2601: 'Monsters::loadMonster' : local function definitions are illegal 1> ..\monsters.cpp(95): this line contains a '{' which has not yet been matched 1>..\monsters.cpp(1486): error C2601: 'Monsters::loadLoot' : local function definitions are illegal 1> ..\monsters.cpp(95): this line contains a '{' which has not yet been matched 1>..\monsters.cpp(1546): error C2601: 'Monsters::loadChildLoot' : local function definitions are illegal 1> ..\monsters.cpp(95): this line contains a '{' which has not yet been matched 1>..\monsters.cpp(1580): error C2601: 'Monsters::getMonsterType' : local function definitions are illegal 1> ..\monsters.cpp(95): this line contains a '{' which has not yet been matched 1>..\monsters.cpp(1589): error C2601: 'Monsters::getMonsterType' : local function definitions are illegal
-
(Resolvido)Npc Comprar 100 unidades
Pô cara tu me salvou! usei essa parte no TFS 0.4.. estava com o mesmo problema.. o npc vendia com charges 1 e nao comprava drop por causa desse mesmo erro seu, ai troquei o modules pelo seu e agora ta show.. menos o bronze amulet está dando boa mas o restante funcionou! principalmente o terra amulet que o pessoal enxia o saco pra arrumar e o lighting
-
[Loot Channel] -- Tutorial como adicionar Loot Channel
Eu adicionei no tfs 0.4 e funcionou tudo certo, só que nao manda pro player os dizeres do Loot na tela só direto no loot channel.. esse script só funciona assim? tem alguma maneira de voltar a escrita como se fosse broadcast no meio da tela ?
-
Shop com outfit para TFS 0.4 3777 8.60 AJUDA
Tudo bem galera do TK? Tenho um projeto TFS 0.4 rev 3777 e instalei o gesior 2012 nele, e o shop vende outfits Mas não estou conseguindo arrumar o script pro player receber a outfit... alguem tem o script do Shop globalevents com o outfit pra me passar? ou me ajudar a criar um?? Meu script original do shop é este: -- ### CONFIG ### -- message send to player by script "type" (types you can check in "global.lua") SHOP_MSG_TYPE = 19 -- time (in seconds) between connections to SQL database by shop script SQL_interval = 30 -- ### END OF CONFIG ### function onThink(interval, lastExecution) local result_plr = db.getResult("SELECT * FROM z_ots_comunication WHERE `type` = 'login';") if(result_plr:getID() ~= -1) then while(true) do id = tonumber(result_plr:getDataInt("id")) action = tostring(result_plr:getDataString("action")) delete = tonumber(result_plr:getDataInt("delete_it")) cid = getCreatureByName(tostring(result_plr:getDataString("name"))) if isPlayer(cid) == TRUE then local itemtogive_id = tonumber(result_plr:getDataInt("param1")) local itemtogive_count = tonumber(result_plr:getDataInt("param2")) local container_id = tonumber(result_plr:getDataInt("param3")) local container_count = tonumber(result_plr:getDataInt("param4")) local add_item_type = tostring(result_plr:getDataString("param5")) local add_item_name = tostring(result_plr:getDataString("param6")) local received_item = 0 local full_weight = 0 if add_item_type == 'container' then container_weight = getItemWeightById(container_id, 1) if isItemRune(itemtogive_id) == TRUE then items_weight = container_count * getItemWeightById(itemtogive_id, 1) else items_weight = container_count * getItemWeightById(itemtogive_id, itemtogive_count) end full_weight = items_weight + container_weight else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) if isItemRune(itemtogive_id) == TRUE then full_weight = getItemWeightById(itemtogive_id, 1) else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) end end local free_cap = getPlayerFreeCap(cid) if full_weight <= free_cap then if add_item_type == 'container' then local new_container = doCreateItemEx(container_id, 1) local iter = 0 while iter ~= container_count do doAddContainerItem(new_container, itemtogive_id, itemtogive_count) iter = iter + 1 end received_item = doPlayerAddItemEx(cid, new_container) else local new_item = doCreateItemEx(itemtogive_id, itemtogive_count) received_item = doPlayerAddItemEx(cid, new_item) end if received_item == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'You received >> '.. add_item_name ..' << from OTS shop.') db.executeQuery("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") db.executeQuery("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";") else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. Please make place for this item in your backpack/hands and wait about '.. SQL_interval ..' seconds to get it.') end else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. It weight is '.. full_weight ..' oz., you have only '.. free_cap ..' oz. free capacity. Put some items in depot and wait about '.. SQL_interval ..' seconds to get it.') end end if not(result_plr:next()) then break end end result_plr:free() end return TRUE end
-
Rodrigo94 começou a seguir Natanael Beckman
-
Encharting remover Rainbow Shield (AJUDA)
.Qual servidor ou website você utiliza como base? TFS 0.4DEV Qual o motivo deste tópico? Preciso remover o Rainbow shield id 8905 do script encharting ACTION Script encharting action:
-
EMOTED ON/OFF SPELLS TFS 0.4 AJUDA
Amigo, esse que você compartilhou é para o TFS 1.2 ou seja servidores 10.9... o meu é para versão TFS 0.4 versão 8.60 a linguagem muda, pedi ajuda pro Lyu mas ele não respondeu
-
EMOTED ON/OFF SPELLS TFS 0.4 AJUDA
Boa tarde galera! estou precisando do código fonte pra compilar o emoted spells, achei um mas sem sucesso ao compilalo... Explicando: você consegue ativar o emoted spells ON (MAGIAS SEM SPAWNAR O CHAT EM LARANJA) e desativar !emotedspells OFF (MAGIAS NO CHAT AMARELO). Segue o código que eu tentei compilar: game.h bool internalCreatureSay(Creature* creature, SpeakClasses type, const std::string& text, bool ghostMode, SpectatorVec* spectators = NULL, Position* pos = NULL, bool isSpell = false); game.cpp bool Game::internalCreatureSay(Creature* creature, SpeakClasses type, const std::string& text, bool ghostMode, SpectatorVec* spectators/* = NULL*/, Position* pos/* = NULL*/, bool isSpell/* = false*/) for(it = list.begin(); it != list.end(); ++it) { if(!(tmpPlayer = (*it)->getPlayer())) continue; if(!ghostMode || tmpPlayer->canSeeCreature(creature)) { if(isSpell) { // to jest spell std::string strValue; if(tmpPlayer->getStorage("58678", strValue)) { // storage jest ustawione int32_t intValue = atoi(strValue.c_str()); if(intValue) { // storage jest liczba i ma wartosc inna niz 0, typ tekstu 'monster' tmpPlayer->sendCreatureSay(creature, SPEAK_MONSTER_SAY, text, &destPos); } else { // storage rowne 0, domyslny typ tekstu tmpPlayer->sendCreatureSay(creature, type, text, &destPos); } } else { // storage nie ustawione, domyslny typ tekstu tmpPlayer->sendCreatureSay(creature, type, text, &destPos); } } else { tmpPlayer->sendCreatureSay(creature, type, text, &destPos); } } } spells.cpp return g_game.internalCreatureSay(player, type, ret, player->isGhost(), NULL, &pos, true) ? RET_NOERROR : RET_NOTPOSSIBLE; Talkaction para ativar o comando function onSay(cid, words, param) if param == "emote" and getCreatureStorage(cid, 58678) < 1 then doCreatureSetStorage(cid, 58678, 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have enabled emoted spells.") elseif param == "normal" and getCreatureStorage(cid, 58678) == 1 then doCreatureSetStorage(cid, 58678, 0) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have disabled emoted spells.") end return false end ERRO AO COMPILAR:
-
[8.60] The Forgotten Server 0.4 By Fir3Element (SQL and MYSQL)
@Fir3element Parabéns pelo trabalho, estou usando em meu servidor global TOP estou com uma dúvida, queria adicionar o EMOTED SPELLS em meu servidor.. mas nao consigo achar os codes pra esta distro, até achei uma mas na hora de compilar ocorre um erro, alguem poderia me ajudar?? game.cpp for(it = list.begin(); it != list.end(); ++it) { if(!(tmpPlayer = (*it)->getPlayer())) continue; if(!ghostMode || tmpPlayer->canSeeCreature(creature)) { if(isSpell) { // to jest spell std::string strValue; if(tmpPlayer->getStorage("58678", strValue)) { // storage jest ustawione int32_t intValue = atoi(strValue.c_str()); if(intValue) { // storage jest liczba i ma wartosc inna niz 0, typ tekstu 'monster' tmpPlayer->sendCreatureSay(creature, SPEAK_MONSTER_SAY, text, &destPos); } { // storage rowne 0, domyslny typ tekstu tmpPlayer->sendCreatureSay(creature, type, text, &destPos); } } else { // storage nie ustawione, domyslny typ tekstu tmpPlayer->sendCreatureSay(creature, type, text, &destPos); } } else { tmpPlayer->sendCreatureSay(creature, type, text, &destPos); } } }
-
Cast system tsf 0.4
@Yan Liima Usei seu código em meu ot mas não atualizou no website, nem com o comando /cast update ele atualiza no site.. ERROR [17:24:06.312] mysql_real_query(): UPDATE `players` set `castViewers` = '0' where `id` = '7'; - MYSQL ERROR: Lost connection to MySQL server during query (2013) [17:24:06.374] MYSQL Lost connection, attempting to reconnect... segue meu cast.php: <?PHP $order = $_REQUEST['order']; if($order == 'name') { $orderby = 'name'; } if($order == 'level') { $orderby = 'level'; } if($order == 'vocation') { $orderby = 'vocation'; } if(empty($orderby)) { $orderby = 'name'; } if(count($config['site']['worlds']) > 1) { $worlds .= '<i>Select world:</i> '; foreach($config['site']['worlds'] as $idd => $world_n) { if($idd == (int) $_GET['world']) { $world_id = $idd; $world_name = $world_n; } } } if($idd == (int) $_GET['world']) { $world_id = $idd; $world_name = $world_n; } if(!isset($world_id)) { $world_id = 0; $world_name = $config['server']['serverName']; } if(count($config['site']['worlds']) > 1) { $main_content .= '<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD> <FORM ACTION="?subtopic=whoisonline" METHOD=get><INPUT TYPE=hidden NAME=subtopic VALUE=whoisonline><INPUT TYPE=hidden NAME=list VALUE=experience> <TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>World Selection</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['lightborder'].'"> <TABLE BORDER=0 CELLPADDING=1><TR><TD>World: </TD><TD><SELECT SIZE="1" NAME="world"><OPTION VALUE="" SELECTED>(choose world)</OPTION>'; foreach($config['site']['worlds'] as $id => $world_n) { $main_content .= '<OPTION VALUE="'.$id.'">'.$world_n.'</OPTION>'; } $main_content .= '</SELECT> </TD><TD><INPUT TYPE=image NAME="Submit" ALT="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18> </TD></TR></TABLE></TABLE></FORM></TABLE><br>'; } $players_online_data = $SQL->query('SELECT * FROM players WHERE online > 0 AND cast = 1 AND world_id = '.$world_id.' ORDER BY '.$orderby); $number_of_players_online = 0; foreach($players_online_data as $player) { $number_of_players_online++; if($config['site']['show_flag']) { $account = $SQL->query('SELECT * FROM accounts WHERE id = '.$player['account_id'].'')->fetch(); $flag = '<image src="images/flags/'.$account['flag'].'.png"/> '; } if(is_int($number_of_players_online / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $players_rows .= ' <TR BGCOLOR='.$bgcolor.'> <TD WIDTH=40%>'.$flag.'<A HREF="index.php?subtopic=characters&name='.urlencode($player['name']).'">'.$player['name'].'</A><br/>'.$player['level'].' '.$vocation_name[$player['world_id']][$player['promotion']][$player['vocation']].'</TD> <TD WIDTH=40%>'.($player['castDescription'] == "" ? '-' : $player['castDescription']).'</TD> <TD WIDTH=20%>'.$player['castViewers'].'/50</TD> </TR>'; } if($number_of_players_online == 0) { //server status - server empty $main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=white><B>Server Status</B></TD></TR><TR BGCOLOR='.$config['site']['darkborder'].'><TD><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1><TR><TD>Currently there are no active casts on '.$config['server']['serverName'].'.</TD></TR></TABLE></TD></TR></TABLE><BR>'; } else { //server status - someone is online $main_content .= ' <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%> <TR BGCOLOR="'.$config['site']['vdarkborder'].'"> <TD CLASS=white><B>Server Status</B></TD> </TR> <TR BGCOLOR='.$config['site']['darkborder'].'> <TD>'; $main_content .= 'Currently there are '.$number_of_players_online.' active live casts'; $main_content .= ' on '.$world_name.' gameworlds.<br> </TD> </TR> </TABLE><BR>'; //list of players $main_content .= ' <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%> <TR BGCOLOR="'.$config['site']['vdarkborder'].'"> <TD><A HREF="index.php?subtopic=whoisonline&order=name" CLASS=white>Name</A></TD> <TD><A HREF="index.php?subtopic=whoisonline&order=level" CLASS=white>Description</A></TD> <TD><A HREF="index.php?subtopic=whoisonline&order=vocation" CLASS=white>Viewers</TD> </TR> '.$players_rows.'</TABLE>'; //search bar //$main_content .= '<BR><FORM ACTION="index.php?subtopic=characters" METHOD=post> <TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>Search Character</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['darkborder'].'"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE></FORM>'; } $main_content .= '<BR><TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>Description</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['darkborder'].'"><h4 style="margin: 0px;">Commands (owner):</h4><i>/cast {on/off}</i> - Create or close your own cast<br/><i>/cast password |password|</i> - Sets a password for the cast<br/><i>/cast desc |description|</i> - Set a description for the cast<br/><i>/cast status</i> - Information about your cast (viewer amount, description, password)<br/><i>/cast viewers</i> - Displays the name of all viewers<br/><i>/cast {ban/unban} "name"</i> - Bans a viewer from joining your cast/Removes the ban<br/><i>/cast {mute/unmute} "name"</i> - Mutes a viewer on your cast/Removes the mute<br/><i>/cast bans</i> - Displays a list of banned viewers<br/><i>/cast mutes</i> - Displays a list of muted viewers<br/><i>/cast update</i> - Updates the description and status on the website<br/><br/><h4 style="margin: 0px;">Commands (viewer):</h4><i>/nick newNick</i> - Changes the viewer\'s name<br><i>/info</i> - Displays a list of all viewers</TD></TR></TABLE>'; ?>
-
-
[TFS 0.4] Bow Mágico
Topico muito bom, curti e estou usando seu script TOP!