-
Total de itens
230 -
Registro em
-
Última visita
-
Dias Ganhos
1
Tudo que felipedorgas postou
-
ae deu!! só que apareçe mensagem 3vezes, tem como deixa só 1vez? queria pedi outro favor, nesse script da demon oak, quando o player completa a quest storage(35700) e fala demon oak ele tem q perde o item 8293, só se ele tiver a storage 35700, pra n corre o risco dele perde o axe sem ter feito a quest
-
tentei juntar os 2 scripts mais deu erro no executavel, alguem pode faze esse pequeno favor? local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local percent = 50 -- porcentagem de ganha o premio local t = math.random(1, 100) -- n mecha if(msgcontains(msg, 'mission') or msgcontains(msg, 'MISSION')) then selfSay('olá você trouxe os items que eu pedi? {yes} ', cid) talkState[talkUser] = 1 elseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 then if (not getPlayerItemCount(cid, 7634) >= 1) and (not getPlayerItemCount(cid, 7635) >= 1 then doPlayerSendCancel(cid, "Você não tem nenhum dos itens.") elseif (not getPlayerItemCount(cid, 7634) >= 1) and (getPlayerItemCount(cid, 7635) >= 1) then doPlayerRemoveItem(cid, 7635, 1) doPlayerSendCancel(cid, "Você tem um dos itens pedidos e este foi removido.") elseif (getPlayerItemCount(cid, 7634) >= 1) and (not getPlayerItemCount(cid, 7635) >= 1) then doPlayerRemoveItem(cid, 7634, 1) doPlayerSendCancel(cid, "Você tem um dos itens pedidos e este foi removido.") elseif (getPlayerItemCount(cid, 7634) >= 1) and (getPlayerItemCount(cid, 7635) >= 1) then doPlayerRemoveItem(cid, math.random(7634,7635), 1) doPlayerSendCancel(cid, "Você tinha ambos os itens e um deles foi removido.") if t >= 1 and t <= percent then doPlayerAddItem(cid,5958,1) selfSay('obrigado receba seu item !', cid) talkState[talkUser] = 0 else selfSay('Você não teve sorte,não ganhou o premio', cid) talkState[talkUser] = 0 end else talkState[talkUser] = 0 end elseif msg == "no" and talkState[talkUser] == 1 then selfSay("Then not", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
8.6 [Oficial] We Do Ots 0.1.1 (Beta Version)
tópico respondeu ao Doidin de felipedorgas em OTServ Comum
Doidin teria como disponibiliza como vc arrumo o bug do follow? uso o real serv 8.57 ;x obrigado -
este o vip account vai te ajuda, nos que vc pediu: http://www.xtibia.com/forum/topic/136543-vip-system-by-account-v10/page__pid__902098__st__0entry902098 agora, pro player compra vip, vc tem que criar um item, ou pegar um q ja tem e mudar o nome, ai vc coloca ele a venda no seu shop do seu site, e quando o player clika, ele recebe os dias... segue o script feito pelo vodkart fica em actions, add isso na pasta actions/scripts, cria um arquivo com nome de viptime e cola isso dentro function onUse(cid, item, frompos, item2, topos) local days = 15 -- dias que serão adicionados addVipDays(cid, days) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você adicionou "..days.." dia(s) de vip, agora você possui "..getVipDays(cid).." dia(s) de vip.") doPlayerRemoveItem(cid,ID DO ITEM Q VAI DA VIP,1) return TRUE end agr em actions.xml add isso abraços
-
vlw
-
então, ele ta pedindo todos os itens, tem q ser só o que o player tem na bp tem q ser tpw assim: doPlayerRemoveItem(cid, 7634, 5) or doPlayerRemoveItem(cid, 7635, 5) or doPlayerRemoveItem(cid, 7636, 5) ja tentei bota "or" + n funfa SAOSKOASKSOAS obrigado desde de já.
-
devilmoon, tenho a tag sim, e funcionou, mais sera que vc ou o vodkart consegue faze pra quem não tiver frag, e dar use, pra não perde o item? obrigado Vodkart, tentei com 3 itens (o npc pode pega 3 tipos de itens) + deu erro no log, tenta ver oq fiz de errado: if(getPlayerItemCount(cid, 7634) >= 5) then if(getPlayerItemCount(cid, 7635) >= 5) then if(getPlayerItemCount(cid, 7636) >= 5) then doPlayerAddItem(cid,5958,1) if(getPlayerItemCount(cid, 7634) if(getPlayerItemCount(cid, 7635) if(getPlayerItemCount(cid, 7636) else doPlayerSendCancel(cid, 'Você não tem o item ' .. getItemNameById(7634) .. ' para trocar.') end else doPlayerSendCancel(cid, 'Você não tem ' .. getItemNameById(7635) .. ' para trocar.') end else doPlayerSendCancel(cid, 'Você não tem ' .. getItemNameById(7636) .. ' para trocar.') end se n fosse pedi mto, sera q vc podia faze um script de npc, que vc tem q da um item pra ele, e se tiver sorte ele te da um premio, ja vi vc fazendo script com essa função de sorteio, se vc puder, eu agredeço mto.
-
sim, começe do zero, vc tem q muda 5 coisas ao total C:\xampp\apache\conf\httpd.conf: Procure por “Listen 80″,-> mude para “Listen 8090″ Procure por “ServerName localhost:80″,-> mude para “ServerName localhost:8090″ C:\xampp\apache\conf\extra\httpd-ssl.conf Procure por “Listen 443″,-> mude para “Listen 4499″ Procure por “<VirtualHost _default_:443>”,-> mude para “<VirtualHost _default_:4499>” Procure por “ServerName localhost:443″,-> mude para “ServerName localhost:4499″ ah, n esqueça que vc tem q retirar todos os espaços e traços do seu config.lua
-
roda ot com 512mb de memoria, eita ;x vá em forums especializado em informatica, acho melhor...
-
bom, tenhu o script, +ele n ta funcionando, eu queria que ele remove-se todos os frags, e skull tbm (red e black), menos a white e que o item sumi-se qndo ele usa-se, e se ele usa-se sem ter frag, n sumi-se function onUse(cid, item, frompos, item2, topos) local removesCharges = "no" -- does it remove charges from rune? local nonremskulls = -- These are the skulls it cant remove. If player has any of these, the rune wont work. { red = SKULL_RED, green = SKULL_GREEN, black = SKULL_BLACK } if isInArray(nonremskulls, getPlayerSkullType(cid)) then doPlayerSendCancel(cid,"You can't remove this type of skull.") doSendMagicEffect(getPlayerPosition(cid),2) else db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")") doCreatureSetSkullType(cid,0) doPlayerSendTextMessage(cid,27,"Your frags have been removed.") doSendMagicEffect(getPlayerPosition(cid),CONST_ME_MAGIC_RED) return TRUE end if(removesCharges == "no") then if(item.type > 1) then doChangeTypeItem(item.uid, item.type-1) else doRemoveItem(item.uid,1) return TRUE end end end e tbm queria esclareçer uma duvida sobre o doPlayerRemoveItem por exemplo, como fasso pro npc pegar um item, ou outro item? exemplo: o npc tem q pegar uma blue robe ou uma blue legs pra dar uma golden armor. oq presciso fazer? obrigado
-
sugiro que vc faça sua database novamente, acho que ela esta completamente desconfigurada ou vc pulo alguma passo do tutorial, pke ja abri site normal usando gesior e o real server.
-
aonde vc baixou o seu gesior?
-
Topico Reportado para Duvidas sanadas.
-
tente assim, va em: http://localhost/phpmyadmin/ ou http://localhost:8090/phpmyadmin/ acesse sua database, va na coluna do seu ot (provavelmente otserv, ou no nome que vc escolheu) no inicio da pagina clique na aba SQL cole isso e clica em Executar lá embaixo -- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tempo de Geração: Jun 12, 2010 as 11:57 -- Versão do Servidor: 5.1.41 -- Versão do PHP: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Banco de Dados: `v1` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `bans` -- CREATE TABLE IF NOT EXISTS `bans` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `type` int(11) NOT NULL COMMENT 'this field defines if its ip, account, player, or any else ban', `value` int(10) unsigned NOT NULL COMMENT 'ip, player guid, account number', `param` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'mask', `active` tinyint(1) NOT NULL DEFAULT '1', `expires` int(11) NOT NULL, `added` int(10) unsigned NOT NULL, `admin_id` int(10) unsigned NOT NULL DEFAULT '0', `comment` varchar(1024) NOT NULL DEFAULT '', `reason` int(10) unsigned NOT NULL DEFAULT '0', `action` int(10) unsigned NOT NULL DEFAULT '0', `statement` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `type` (`type`,`value`), KEY `expires` (`expires`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -- Extraindo dados da tabela `bans` -- /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-
vc mudou no seu config.lua de sqlite para mysql ?
-
qual versão do seu ot e qual website esta utilizando? em que vc tento mecher/arrumar? ou simplesmente n quiz abrir?
-
o certo seria em Pedidos de Script, eu tenho 2 djinn aqui, o green compra todos os itens que os 2 green djin igual global compra, msm coisa com o blue djinn. <?xml version="1.0" encoding="UTF-8"?> <npc name="Gabel" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="104" head="0" body="0" legs="0" feet="0" addons="0"/> <parameters> <parameter key="message_greet" value="What do you want from me, |PLAYERNAME|?" /> <parameter key="module_shop" value="1"/> <parameter key="shop_buyable" value=""/> <parameter key="shop_sellable" value="Beholder shield,2518,1200;Crown shield,2519,8000;Dragon shield,2516,4000;Guardian shield,2515,2000;Phoenix shield,2539,16000;Blue robe,2656,10000;Crown armor,2487,12000;Noble armor,2486,900;Boots of haste,2195,30000;Broad sword,2413,500;Dragon lance,2414,9000;Fire axe,2432,8000;Fire sword,2392,4000;Ice rapier,2396,1000;Obsidian lance,2425,500;Spike sword,2383,1000;War hammer,2391,1200;Crown helmet,2491,2500;Crusader helmet,2497,6000;Royal helmet,2498,30000;Crown legs,2488,12000;Axe ring,2208,100;Club ring,2209,100;Power ring,2166,50;Stealth ring,2165,200;Sword ring,2207,100;Bronze amulet,2172,50;Garlic necklace,2199,50;elven amulet,2198,100;Stone skin amulet,2197,500;Wand of cosmic energy,2189,2000;Wand of decay,2188,1000;Wand of dragonbreath,2191,200;Wand of inferno,2187,3000;Wand of vortex,2190,100;Wand of Draconia,8921,1500;Wand of Starstorm,8920,3600;Wand of Voodoo,8922,4400;Magic Light Wand,2162,35;Life Crystal,4851,50;Mind Stone,2178,100;Orb,7493,750"/> </parameters> </npc> <?xml version="1.0" encoding="UTF-8"?> <npc name="Malor" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="103" head="0" body="0" legs="0" feet="0" addons="0"/> <parameters> <parameter key="message_greet" value="Be greeted, human |PLAYERNAME|. How can a humble djinn be of service?" /> <parameter key="message_onsell" value="Thank you, human." /> <parameter key="message_walkaway" value="Farewell, human." /> <parameter key="module_keywords" value="1" /> <parameter key="keywords" value="job" /> <parameter key="keyword_reply1" value="I'm an old djinn, I buy several items, and sell a few myself." /> <parameter key="module_shop" value="1"/> <parameter key="shop_buyable" value=""/> <parameter key="shop_sellable" value="Dragon hammer,2434,2000;Giant sword,2393,17000;Knight axe,2430,2000;Poison dagger,2411,50;Scimitar,2419,150;Serpent sword,2409,900;Skull staff,2436,6000;Dark armor,2489,400;Knight armor,2476,5000;Dark helmet,2490,250;Mystic turban,2663,150;Strange helmet,2479,500;Warrior helmet,2475,5000;Knight legs,2477,5000;Ancient shield,2532,900;Black shield,2529,800;Tower shield,2528,8000;Vampire shield,2534,15000;Dwarven ring,2213,100;Energy ring,2167,100;Life ring,2168,50;Might ring,2164,250;Ring of healing,2214,100;Time ring,2169,100;Dragon necklace,2201,100;Protection amulet,2200,100;Strange talisman,2161,30;Silver amulet,2170,50;Hailstorm rod,2183,3000;Moonlight rod,2186,200;Necrotic rod,2185,1000;Snakebite rod,2182,100;Terra rod,2181,2000;Springsprout Rod,8912,3600;Northwind Rod,8911,1500;Underworld Rod,8910,4400;Ankh,2327,100;Mysterious Fetish,2194,50"/> </parameters> </npc> reportado para algum moderador mover para a area certa.
-
alguem pode ajuda ?
-
fala xitibianos, queria saber como faço pro balance do characters funciona, (~index.php?subtopic=characters) Balance: 0 Gold Coins. e tbm pra apareçe vip status, porem ele n tem storage tem vip status, só que diz "NOT VIP" o vip system é a do kydrai -> http://www.xtibia.com/forum/topic/136543-vip-system-by-account-v10/page__pid__902098__st__0entry902098 vlw
-
vc boto um script PHP, (o que é frags.php) ---- o certo seria esse, Em: data\creaturescripts\scripts Crie Um Novo Arquivo Com O nome: topfrags.lua function onKill(cid, target, lastHit) if isPlayer(target) then db.executeQuery("UPDATE `players` SET `frags` = `frags` + 1 WHERE `id` = " .. getPlayerGUID(cid) .. ";") end return true end ---- agora outra coisa... o seu script.php não funcionou aqui, ele apareçe todos os char que tem na database, e Frag Zero. achei outro script em outro forum que funciona, mais o layout ta meio ruim, como vc pode ver abaixo: quem sabe vc consegue arruma e posta ae frags.php <?php $main_content .= '<div style="text-align: center; font-weight: bold;">Top 30 Frags on ' . $config['server']['serverName'] . '</div> <table border="0" cellspacing="1" cellpadding="4" width="100%"> <tr bgcolor="' . $config['site']['vdarkborder'] . '"> <td class="white" style="text-align: center; font-weight: bold;">Name</td> <td class="white" style="text-align: center; font-weight: bold;">Frags</td> </tr>'; $i = 0; foreach($SQL->query('SELECT `p`.`name` AS `name`, COUNT(`p`.`name`) as `frags` FROM `killers` k LEFT JOIN `player_killers` pk ON `k`.`id` = `pk`.`kill_id` LEFT JOIN `players` p ON `pk`.`player_id` = `p`.`id` WHERE `k`.`unjustified` = 1 GROUP BY `name` ORDER BY `frags` DESC, `name` ASC LIMIT 0,30;') as $player) { $i++; $main_content .= '<tr bgcolor="' . (is_int($i / 2) ? $config['site']['lightborder'] : $config['site']['darkborder']) . '"> <td><a href="?subtopic=characters&name=' . urlencode($player['name']) . '">' . $player['name'] . '</a></td> <td style="text-align: center;">' . $player['frags'] . '</td> </tr>'; } $main_content .= '</table>'; ?>
-
pode fexa topico
-
npc bom de portugues ein... por q não coloca pra ele devolve a staff e ganha uma recompensa em troca? n fica legal vende uma coisa que era dele neh... use doPlayerRemoveItem(cid, id, 1) doPlayerAddItem(cid, id)
-
aqui na parte de downloads tem um anti nuker, porem n é 100%, + ajuda. http://www.xtibia.com/forum/topic/100261-portsafe-anti-nuker/
-
eu n sabia mta coisa... fico bem legal o topico, parabens.
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.