Ir para conteúdo

StyflerDrunou

Campones
  • Total de itens

    65
  • Registro em

  • Última visita

Histórico de Reputação

  1. Upvote
    StyflerDrunou deu reputação a SkyDangerous em Erro Samples   
    executa isso:
     
    INSERT INTO `players` (`id`, `name`, `world_id`, `group_id`, `account_id`, `level`, `vocation`, `health`, `healthmax`, `experience`, `lookbody`, `lookfeet`, `lookhead`, `looklegs`, `looktype`, `lookaddons`, `lookmount`, `maglevel`, `mana`, `manamax`, `manaspent`, `soul`, `town_id`, `posx`, `posy`, `posz`, `conditions`, `cap`, `sex`, `lastlogin`, `lastip`, `save`, `skull`, `skulltime`, `rank_id`, `guildnick`, `lastlogout`, `blessings`, `pvp_blessing`, `balance`, `stamina`, `direction`, `loss_experience`, `loss_mana`, `loss_skills`, `loss_containers`, `loss_items`, `premend`, `online`, `marriage`, `promotion`, `deleted`, `description`, `created`, `nick_verify`, `old_name`, `hide_char`, `worldtransfer`, `comment`) VALUES
    (1, 'Account Manager', 0, 1, 1, 1, 0, 150, 150, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, ''),
    (2, 'Rook Sample', 0, 1, 1, 1, 0, 150, 150, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 0, 0, 50, 50, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, ''),
    (3, 'Sorcerer Sample', 0, 1, 1, 1, 1, 150, 150, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 0, 0, 50, 50, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, ''),
    (4, 'Druid Sample', 0, 1, 1, 1, 2, 150, 150, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 0, 0, 50, 50, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, ''),
    (5, 'Paladin Sample', 0, 1, 1, 1, 3, 150, 150, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 0, 0, 50, 50, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, ''),
    (6, 'Knight Sample', 0, 1, 1, 1, 4, 150, 150, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 0, 0, 50, 50, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, '');
     
    pronto, ai resolveu seu problema
     
  2. Upvote
    StyflerDrunou deu reputação a Piabeta Kun em [Tópico Atualizado 04/15] Protegendo O Xampp E Gesior!   
    Muitos sofrem com problemas ocasionados com bugs tanto no Xampp quando no Gesior eu estarei apenas ensinando algumas maneiras de deixar ambos um pouco mais seguro!

    Gesior
    Primeiramente vamos ao classico bug de redirecionamento, onde seu site fica sendo redirecionado para outro!
    Este é um bug do gesior e agora vamos corrigir esse problema!

    Vá em htdocs/config e abra o arquivo config.php, dentro procure a seguinte linha!
    $config['site']['access_news'] = 2; onde está ['access_news'] = 2; mude para ['access_news'] = 6;
    Explicando esse é o numero de acesso maximo para paginas do Gesior!

    Na linha de baixo adicone essa tag:
    $config['site']['access_tickers'] = 6; E nas linhas abaixo adicione o acess 6 em todas tags que contem comando de acess, ficando assim:
    $config['site']['access_news'] = 6; // access level needed to edit news $config['site']['access_tickers'] = 6; $config['site']['access_admin_panel'] = 6; // access level needed to open admin panel para ter acesso ao painel admin do site, batsa colocar page acess 6, na conta que irá ter o privilégio, isso no phpmyadmin !
     
     
    Vá até layouts/sua-skin/layout.php e procure a tag <body e substitua por essa:
    <body onBeforeUnLoad="SaveMenu();" onUnload="SaveMenu();" oncontextmenu="return false" onselectstart="return false" ondragstart="return false"> Agora, logo abaixo da tag <body>, você adicionará o seguinte código:
    <?php { $sql = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$sql); $sql = trim($sql); $sql = strip_tags($sql); $sql = addslashes($sql); return $sql; } function protect($str) { if( !is_array($str) ) { $str = preg_replace("/(from|select|insert|delete|where|drop table|show tables)/i","",$str); $str = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))',$str); $str = preg_replace('~&#([0-9]+);~e', 'chr("\\1")',$str); $str = str_replace("<script","",$str); $str = str_replace("script>","",$str); $str = str_replace("<Script","",$str); $str = str_replace("Script>","",$str); $str = trim($str); $tbl = get_html_translation_table(HTML_ENTITIES); $tbl = array_flip($tbl); $str = addslashes($str); $str = strip_tags($str); return strtr($str,$tbl); } else return $str; } $nome = anti_injection($_POST["nome"]); $senha = anti_injection($_POST["senha"]); $link = htmlspecialchars($_POST['link'], ENT_QUOTES); echo $link; header("Content-Type: text/html; charset=ISO-8859-1",true)?> Ainda em layout.php logo abaixo da tag <head>, você adicionará o seguinte código:
    <script type="text/javascript"> function click() { if (event.button==2||event.button==3) { oncontextmenu='return false'; } } document.onmousedown=click document.oncontextmenu = new Function("return false;") </script> Esses códigos te ajudarão a se previr contra SQL Injection, mas eu afirmo logo que isso não é 100% seguro.


    Vá até o arquivo guilds.php e localize a seguinte tag:
    $guild_logo = $guild->getCustomField('logo_gfx_name'); if(empty($guild_logo) || !file_exists("guilds/".$guild_logo)) $guild_logo = "default_logo.gif"; Agora substitua por isso:
    foreach (array("/", "\\", "..") as $char) { $guild_logo = str_replace($char, "", $guild->getCustomField('logo_gfx_name')); } if (empty($guild_logo) || !file_exists("guilds/".$guild_logo)) { $guild_logo = "default_logo.gif"; } Pronto, seu guilds.php está seguro agora.

    Exclua completamente o arquivo houses.php, ele é um arquivo muito inutilizado e ainda muito vulnerável, pessoas maliciosas podem conseguir ver sua config.lua através dele, portanto apenas exclua.


    Agora vamos ao Xampp

    Vá na pasta Xampp e delete a pasta webdav. É ela que é responsavel pelo acesso do seu site de outro local, e pode ser usada para hackiar seu site! (recomentado o uso apenas para quem sabe mecher nas configurações da webdav).
    Irei postar agora um video de como proteger seu phpmyadmin



    Em breve estarei atualizando com mais conteudo como proteger seu xampp e gesior!

    Creditos: GPedro, lipehcf e PiabetaMan01
  3. Upvote
    StyflerDrunou deu reputação a Sofft em [ Resolvido ]{Duvidas} Gesior Valendo Muitos Rep+   
    1º - Crie uma nova conta no seu OT, abra o localhost/phpmyadmin, / BD do seu OT / account / nome da account criada, vá em page acess e mude para 3 (numero padrão do Gesior).
    Logue com essaconta no site, e você verá o Admin Panel
     
    2º - localhost:8090, não é um bug, pois você está acessando pelo local onde está hospedado o otserver, certifique-se que todos os roteadores estejam com as
    portas abertas, e tente entrar em seu site externamente.
  4. Upvote
    StyflerDrunou deu reputação a Subwat em Nova Versao Do Site Tibia.com   
    pois é o link está quebrado é porque o tópico já faz 2 anos que foi criado.
  5. Upvote
    StyflerDrunou deu reputação a Vodkart em (Pedido) Deathlist   
    cria um char, e só morre pra bixo.
    o player nao pode ter morrido pra nenhum player no seu char lol
  6. Upvote
    StyflerDrunou deu reputação a jhon992 em [House] Perder A House   
    ashudahu, não néh. ta arrumado pq eu modifiquei o último post, então é sóh substituir os scripts.
  7. Upvote
    StyflerDrunou deu reputação a tibino96 em Npc De Magia!   
    Ola amigos tudo bem?
    Tenho um npc defeituoso no meu ot! Gostaria que vcs olhassem para mim,pois não estou achando o erro!
    Quando abre o ot aparece:
    [Warning] NpcSystem:
    Parameter<s> missing for item:
     
     
     
     
    [Warning] NpcSystem:
    Parameter<s> missing for item:
     
     
    Depois carrega normalmente o ot!
    Quando vou no npc,ele vende coisas no numero errado (se eu compro 1 runa ele vende 2,etc...) e as vezes cobra 2x!
    Script do npc:
     
    <?xml version="1.0"?>
    <npc name="Cyric" script="data/npc/scripts/dark_rodo.lua" walkinterval="25" access="1" lookdir="2">
    <mana now="800" max="800"/>
    <health now="200" max="200"/>
    <look type="128" head="78" body="71" legs="82" addons="1" feet="114"/>
    <parameters>
    <parameter key="module_shop" value="1"/>
    <parameter key="shop_buyable" value="
    Avalanche,2274,180,4;Blank rune,2260,5,1;SpellBook,2175,1000,1;Explosion,2313,190,100;Great fireball,2304,180,100;Firebomb,2305,235,100;Heavy magic missile,2311,120,100;Icicle,2271,150,100;Magic wall,2293,350,100;Paralyze,2278,700,100;Poison Bomb,2286,170,100;Sudden death,2268,325,100;Ultimate healing,2273,175,100;antidote,2266,65,100;thunderstorm,2315,325,100;stone shower,2288,150,4;stalagmite,2292,120,10;energy bomb,2262,325,2;energy wall,2279,340,4;energy field,2277,115,3;fireball,2302,150,5;soulfire,2308,140,3;fire wall,2303,245,4;fire field,2301,85,3;poison field,2285,65,3;poison wall,2289,210,4;light magic missile,2287,40,10;chameleon,2291,210,1;destroy field,2261,45,3;desintegrate,2310,80,3;convince creature,2290,80,1;animate dead,2316,375,1;intense healing,2265,95,1;Wand of Vortex,2190,500,1;Wand of Dragonbreath,2191,1000,1;Wand of Decay,2188,5000,1;Wand of Draconia,8921,5000,1;Wand of Cosmic Energy,2189,10000,1;Wand of Inferno,2187,15000,1;Wand of Starstorm,8920,15000,1;Wand of Voodoo,8922,15000,1;Snakebite rod,2182,500,1;Moonlight rod,2186,1000,1;Necrotic rod,2185,5000,1;Northwind rod,8911,5000,1;Terra rod,2181,10000,1;Hailstorm rod,2183,15000,1;Springsprout Rod,8912,15000,1;Underworld Rod,8910,15000,1;Health potion,7618,45,1;Strong health potion,7588,100,1;Great health potion,7591,190,1;Ultimate health potion,8473,310,1;Mana potion,7620,50,1;Strong mana potion,7589,80,1;Great mana potion,7590,120,1;great spirit potion,8472,190,1;"/>
    <parameter key="shop_sellable" value="
    empty potion flask,7636,5;
    empty potion flask,7478,5;
    empty potion flask,7635,5;
    empty potion flask,7634,5;
    "/>
    </parameters>
    </npc>
     
     
    Script dark_rodo.lua
     
     
    local keywordHandler = KeywordHandler:new()
    local npcHandler = NpcHandler:new(keywordHandler)
    NpcSystem.parseParameters(npcHandler)
     
    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
     
    local shopModule = ShopModule:new()
    npcHandler:addModule(shopModule)
     
    shopModule:addBuyableItem({'wand of voodoo', 'voodoo'}, 8922, 22000, 'wand of voodoo')
    shopModule:addBuyableItem({'wand of inferno', 'inferno'}, 2187, 15000, 'wand of inferno')
    shopModule:addBuyableItem({'wand of decay', 'decay'}, 2188, 5000, 'wand of decay')
    shopModule:addBuyableItem({'wand of draconia', 'plague'}, 8921, 7500, 'wand of draconia')
    shopModule:addBuyableItem({'wand of starstorm', 'starstorm'}, 8920, 18000, 'wand of starstorm')
    shopModule:addBuyableItem({'wand of cosmic energy', 'cosmic'}, 2189, 10000, 'wand of cosmic energy')
    shopModule:addBuyableItem({'wand of vortex', 'vortex'}, 2190, 500, 'wand of vortex')
    shopModule:addBuyableItem({'wand of dragonbreath', 'dragon'}, 2191, 1000, 'wand of dragonbreath')
    shopModule:addBuyableItem({'northwind rod', 'northwind'}, 8911, 7500, 'northwind rod')
    shopModule:addBuyableItem({'underworld rod', 'underworld'}, 8910, 22000, 'underworld rod')
    shopModule:addBuyableItem({'hailstorm rod', 'hailstorm rod'}, 2183, 15000, 'hailstorm rod')
    shopModule:addBuyableItem({'terra rod', 'terra'}, 2181, 10000, 'terra rod')
    shopModule:addBuyableItem({'snakebite rod', 'snakebite'}, 2182, 500, 'snakebite rod')
    shopModule:addBuyableItem({'necrotic rod', 'necrotic'}, 2185, 5000, 'necrotic rod')
    shopModule:addBuyableItem({'moonlight rod', 'moonlight'}, 2186, 1000, 'moonlight rod')
    shopModule:addBuyableItem({'springsprout rod', 'springsprout'}, 8912, 18000, 'springsprout rod')
    shopModule:addBuyableItem({'ultimate health potion', 'uhp'}, 8473, 310, 'ultimate health potion')
    shopModule:addBuyableItem({'great health potion', 'ghp'}, 7591, 190, 'great health potion')
    shopModule:addBuyableItem({'strong health potion', 'shp'}, 7588, 100, 'strong health potion')
    shopModule:addBuyableItem({'health potion', 'hp'}, 7618, 45, 'health potion')
    shopModule:addBuyableItem({'great spirit potion', 'gsp'}, 8472, 190, 'great spirit potion')
    shopModule:addBuyableItem({'great mana potion', 'gmp'}, 7590, 120, 'great mana potion')
    shopModule:addBuyableItem({'strong mana potion', 'smp'}, 7589, 80, 'strong mana potion')
    shopModule:addBuyableItem({'mana potion', 'mp'}, 7620, 50, 'mana potion')
    shopModule:addBuyableItem({'light wand', 'lightwand'}, 2163, 500, 'magic light wand')
    shopModule:addBuyableItem({'heavy magic missile', 'hmm'}, 2311, 300, 20, 'heavy magic missile rune')
    shopModule:addBuyableItem({'great fireball', 'gfb'}, 2304, 500, 20, 'great fireball rune')
    shopModule:addBuyableItem({'explo', 'xpl'}, 2313, 800, 20, 'explosion rune')
    shopModule:addBuyableItem({'ultimate healing', 'uh'}, 2273, 700, 20, 'ultimate healing rune')
    shopModule:addBuyableItem({'sudden death', 'sd'}, 2268, 1000, 20, 'sudden death rune')
    shopModule:addBuyableItem({'blank', 'rune'}, 2260, 10, 'blank rune')
    shopModule:addBuyableItem({'spellbook'}, 2175, 150, 'spellbook')
     
    npcHandler:addModule(FocusModule:new())
     
    Obrigado a todos pela ajuda,valendo rep +!
  8. Upvote
    StyflerDrunou deu reputação a japavrb15 em Preciso De Um Script De Um Item Que Quando Clique Vire Os Itens Que Eu Quero   
    bom tem ese aki da caixinha.
     
     
    akele q vc usava no seu ot.
    se kiser de otro tipo e so me falar.
    flw ;]
  9. Upvote
    StyflerDrunou deu reputação a japavrb15 em [Crio] Peça Sua Spell Aqui   
    ai styfler
    cai em spells.xml
    troca a tag la em summon spells por essa
     
     
     
     
    ecria 1 script em data/spells/scripts/summon
    xamado summmon.lua
    e poe iso dentro
     
     
     
     
    sim..precisa criar ese monstro em data/monster ...
    vc ja sabe como faz? :]
    flw
    rep+ u.u
     
    ai sky...
    nao entendi oq vc kér q eu faça...
    efeito de umonte de flexas saindo do xar?
    me explika direito :S
  10. Upvote
    StyflerDrunou deu reputação a 139 em Ajuda Aqui Nesse Script O Mais Rapido Possivel.   
    De nada, é um prazer ajudar (:
  11. Upvote
    StyflerDrunou deu reputação a 139 em Ajuda Aqui Nesse Script O Mais Rapido Possivel.   
    Eu fiz, mas ai envolve movements também.
    Obs: Não testei, pq to sem tempo.
     
    Em data/actions/scripts copie qualquer arquivo lua e renomei-o para tpalavanca
    Após feito isso abra o arquivo, apague tudo que estiver dentro e cole:
     

    function onUse(cid, item, fromPosition, itemEx, toPosition) teleportepos = {x=??, y=??, z=??, stackpos=1} teleporte = getThingfromPos(teleportepos) if (item.uid == 3720) and (item.itemid == 1945) and (teleporte.itemid ~= 1387) then doCreateItem(1387,1,teleportepos) doTransformItem(item.uid,item.itemid+1) elseif item.uid == 3720 and item.itemid == 1946 then doTransformItem(item.uid,item.itemid-1) else end return TRUE end
     
    Agora vá em data/actions/actions.xml e adicione a linha:

    <action uniqueid="3720" event="script" value="tpalavanca.lua" />
     
     
    Explicação:

    teleportepos = {x=??, y=??, z=??, stackpos=1}
    ?? = coordenadas de onde deve ser criado o teleporte.
     
     
    Agora vá em data/movements/scripts copie qualquer arquivo lua e renomei-o para tpteleport
    Após feito isso abra o arquivo, apague tudo que estiver dentro e cole:
     

    function onStepIn(cid, item, pos) teleportepos = {x=??, y=??, z=??, stackpos=1} teleporte = getThingfromPos(teleportepos) novolugarpos = {x=??, y=??, z=??, stackpos=1} if teleporte.itemid == 1387 then doSendMagicEffect(teleportepos,10) doSendMagicEffect(novolugarpos,10) doTeleportThing(cid,novolugarpos) end end
     
    Agora vá em data/movements/movements.xml e adicione a linha:
     

    <movevent type="StepIn" uniqueid="13720" event="script" value="tpteleport.lua"/>
     
     
    Explicação:
     

    teleportepos = {x=??, y=??, z=??, stackpos=1}
    Coordenadas da posição em que o TP criado pela alavanca deve estar.
     

    novolugarpos = {x=??, y=??, z=??, stackpos=1}
    Coordenadas da posição para onde o player será teleportado, após pisar no TP criado pela alavanca.
  12. Upvote
    StyflerDrunou deu reputação a jhon992 em [Pedido] Script De Service Para Os Players   
    Vai em data/talkactions/script e duplica um arquivo dae, nomei para service e cole:

    function onSay(cid, words, param, channel) local money = 100000 -- quantidade de grana if (param == "") then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"Parametro invalido!") return TRUE end if (doPlayerRemoveMoney(cid, money)) then doBroadcastMessage(getCreatureName(cid).." ["..getPlayerLevel(cid).."]: "..param) else doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"Voce nao possui grana suficiente!") end return TRUE end
     
    Agora em data/talkactions/talkacitons.xml cole a tag:

    <talkaction words="!service" event="script" value="service.lua"/>
     
    É isso aew, ja testei aqui
  13. Upvote
    StyflerDrunou deu reputação a meubk em [Globalevents] Invasão   
    Obrigado apocarai, tudu que sei, devo a vc.
  14. Upvote
    StyflerDrunou deu reputação a Rodugoni em Ajuda Ai Por Favor   
    É o seguinte to querendo um escript que ao clicar no objeto ele leve para o player que a pessoa digitar mas levar ao player tipo assim consiguir ver o player tipo tv system
  • Quem Está Navegando   0 membros estão online

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