Ir para conteúdo

Maenilse

Conde
  • Total de itens

    711
  • Registro em

  • Última visita

  • Dias Ganhos

    1

Tudo que Maenilse postou

  1. vlw ae champz, deu certinho mt obrigado, rep+. amanha te dou uma tekpix do roksas. vlw <3
  2. o thiago eu sem querer deletei a table player_storage e nao sei a query. poderia me passar tambem? seu script. local config = { MaxPlayer = 20, fight_skills = { ['fist'] = 0, ['club'] = 1, ['sword'] = 2, ['axe'] = 3, ['distance'] = 4, ['shielding'] = 5, ['fishing'] = 6, ['dist'] = 4, ['shield'] = 5, ['fish'] = 6, }, other_skills = { [''] = "level", ['level'] = "level", ['magic'] = "maglevel", ['health'] = "healthmax", ['mana'] = "manamax" }, vocations = { ['sorcerer'] = {1,5}, ['druid'] = {2,6}, ['paladin'] = {3,7}, ['knight'] = {4,8} }, storages = { ['frags'] = 824544, ['resets'] = 2310, ['points'] = 1219 } } function onSay(cid, words, param) local param,str = string.lower(param),"" if not config.fight_skills[param] and not config.other_skills[param] and not config.vocations[param] and not config.storages[param] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "este rank não existe.") return true end str = "--[ RANK "..(param == "" and "LEVEL" or string.upper(param)).." ]--\n\n" query = config.fight_skills[param] and db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = "..config.fight_skills[param].." ORDER BY `value` DESC;") or config.other_skills[param] and db.getResult("SELECT `name`, `"..config.other_skills[param].."` FROM `players` WHERE `id` > 6 AND `group_id` < 2 ORDER BY `"..config.other_skills[param].."` DESC, `name` ASC;") or config.storages[param] and db.getResult("SELECT `player_id`, `value` FROM `player_storage` WHERE `key` = "..config.storages[param].." ORDER BY cast(value as INTEGER) DESC;") or db.getResult("SELECT `name`, `level` FROM `players` WHERE `group_id` <= 2 AND `vocation` = "..config.vocations[param][1].." or `vocation` = "..config.vocations[param][2].." ORDER BY `level` DESC;") if (query:getID() ~= -1) then k = 1 while true do str = str .. "\n " .. k .. ". "..(config.fight_skills[param] and getPlayerNameByGUID(query:getDataString("player_id")) or config.storages[param] and getPlayerNameByGUID(query:getDataString("player_id")) or query:getDataString("name")).." - [" .. query:getDataInt((config.fight_skills[param] and "value" or config.storages[param] and "value" or config.vocations[param] and "level" or config.other_skills[param])) .. "]" k = k + 1 if not(query:next()) or k > config.MaxPlayer then break end end query:free() end doShowTextDialog(cid,6500, str) return true end
  3. bom ontem eu tava com meu servidor ate umas 00:23 horas com sqlite. entao eu resolvi resetar e passa-lo para mysql. ate ai tudo bem. mas quando eu usava a talkaction de rank frags no meu sqlite funcionava. no mysql apresenta esse erro. como eu resolvo isso? nao manjo de mysql. [26/08/2013 19:08:10] mysql_real_query(): SELECT `player_id`, `value` FROM `player_storage` WHERE `key` = 824544 ORDER BY cast(value as INTEGER) DESC; - MYSQL ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INTEGER) DESC' at line 1 (1064)
  4. Maenilse

    DarkXPoke (DXP)

    ta dahora esse servidor/client em fera. mas é como o slicer disse, sozinho tu nunca vai conseguir balancear as coisas. tem que ir com calma e tbm com a ajuda dos players.
  5. Maenilse

    Script de Task

    eof tambem pode significar que a pessoa coloco o end errado. tipo tem dois if, em uma só funçao. ai ao inves de exemplo colocar. end end return true end a pessoa colocar end return true end end. ai da o erro de eof.
  6. Maenilse

    Script de Task

    testei aki e ta funcionando manow ta na hora de saber o basico eof e que falta um end *--* falta um end? eof quer dizer que tem um end a mais -.-. o que falta um end. é quando mostra. not 'end' to close function tal...
  7. Maenilse

    Usar Magia Com Reset

    PS: na verdade eu vi o erro ali na hora da funçao da variavel. editei o script, test ae.
  8. data/creaturescripts/scripts copie qualquer arquivo renomeie para teleportmonster.lua e cole isso. local config = { message = "Eu Sou Imortal e Nao Vou Morrer Agora.......", timeToRemove = 15, -- seconds teleportId = 1387, bosses = { ["Finish"] = { x = 999, y = 999, z = 999 }, } } local function removal(position) doRemoveThing(getTileItemById(position, config.teleportId).uid, 1) return TRUE end function onDeath(cid, corpse, killer) registerCreatureEvent(cid, "teleportmonster") local position = getCreaturePosition(cid) for name, pos in pairs(config.bosses) do if name == getCreatureName(cid) then doCreateTeleport(config.teleportId, pos, position) doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1) addEvent(removal, config.timeToRemove * 1000, position) doSendMagicEffect(position,10) end end return TRUE end no login.lua registra essa tag. registerCreatureEvent(cid, "TeleportMonster") creaturescripts.xml registra essa tag. <event type="death" name="TeleportMonster" event="script" value="teleportmonster.lua"/> feito isto tudo. troque seu monstro, por esse. <?xml version="1.0" encoding="UTF-8"?> <monster name="Finish" nameDescription="a Finish" race="blood" experience="7000000" speed="0" manacost="220"> <health now="40000000" max="40000000"/> <look type="102" head="0" body="0" legs="0" feet="0"/> <targetchange interval="2000" chance="0"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="1"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag canpushcreatures="0"/> <flag targetdistance="1"/> <flag staticattack="90"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="2000" skill="30" attack="36"/> <attack name="poison" interval="1000" chance="12" range="1" radius="1" target="1" min="-5" max="-15"> <attribute key="areaEffect" value="poison"/> </attack> </attacks> <defenses armor="16" defense="19"/> <elements> <element physicalPercent="1"/> <element holyPercent="1"/> <element deathPercent="10"/> <element firePercent="-1"/> <element energyPercent="-1"/> <element icePercent="15"/> <element earthPercent="1"/> </elements> <immunities> <immunity invisible="1"/> </immunities> <voices interval="5000" chance="10"> <voice sentence="Zrp zrp!"/> </voices> <loot> <item id="2157" countmax="1" chance1="100000" chancemax="100000"/> <item id="11365" chance="5000"/><!-- terramite legs --> <item id="11364" chance="5000"/><!-- terramite eggs --> <item id="11363" chance="1000"/><!-- terramite shell --> </loot> <script> <event name="TeleportMonster"/> </script> </monster>
  9. Maenilse

    Script de Task

    so um quote aki pra vc, que acho que voce nao leu direito.
  10. Maenilse

    Comando !vida

    tem como dar erro nao. se realmente for 8.60. function onSay(cid, words, param) local hp = getCreatureHealth(cid) doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE, "Voce tem "..hp.." health points.") return TRUE end
  11. /\ as outfits estao pra premium. substitua todas por esse. <?xml version="1.0"?> <outfits> <outfit id="1"> <list gender="0" lookType="136" name="Cidada"/> <list gender="1" lookType="128" name="Cidadao"/> </outfit> <outfit id="2"> <list gender="0" lookType="137" name="Cacadora"/> <list gender="1" lookType="129" name="Cacador"/> </outfit> <outfit id="3"> <list gender="0" lookType="138" name="Magica"/> <list gender="1" lookType="130" name="Magico"/> </outfit> <outfit id="4"> <list gender="0" lookType="139" name="Amazonas"/> <list gender="1" lookType="131" name="Cavaleiro"/> </outfit> <outfit id="5"> <list gender="0" lookType="140" name="Sra Nobre"/> <list gender="1" lookType="132" name="Sr Nobre"/> </outfit> <outfit id="6"> <list gender="0" lookType="141" name="Sumonadora"/> <list gender="1" lookType="133" name="Sumonador"/> </outfit> <outfit id="7"> <list gender="0" lookType="142" name="Guerreira"/> <list gender="1" lookType="134" name="Guerreiro"/> </outfit> <outfit id="8"> <list gender="0" lookType="147" name="Barbariana"/> <list gender="1" lookType="143" name="Barbariano"/> </outfit> <outfit id="9"> <list gender="0" lookType="148" name="Druida"/> <list gender="1" lookType="144" name="Druid"/> </outfit> <outfit id="10"> <list gender="0" lookType="149" name="Bruxa"/> <list gender="1" lookType="145" name="Bruxo"/> </outfit> <outfit id="11"> <list gender="0" lookType="150" name="Oriental"/> <list gender="1" lookType="146" name="Oriental"/> </outfit> <outfit id="12"> <list gender="0" lookType="155" name="Pirata"/> <list gender="1" lookType="151" name="Pirata"/> </outfit> <outfit id="13"> <list gender="0" lookType="156" name="Assassina"/> <list gender="1" lookType="152" name="Assassino"/> </outfit> <outfit id="14"> <list gender="0" lookType="157" name="Mendiga"/> <list gender="1" lookType="153" name="Mendigo"/> </outfit> <outfit id="15"> <list gender="0" lookType="158" name="Invocadora"/> <list gender="1" lookType="154" name="Invocador"/> </outfit> <outfit id="16"> <list gender="0" lookType="252" name="Mulher da Neve"/> <list gender="1" lookType="251" name="Esquimo"/> </outfit> <outfit id="17"> <list gender="0" lookType="269" name="Escudeiro"/> <list gender="1" lookType="268" name="Escudeira"/> </outfit> <outfit id="18"> <list gender="0" lookType="270" name="Boba da Corte"/> <list gender="1" lookType="273" name="Bobo da Corte"/> </outfit> <outfit id="19"> <list gender="0" lookType="279" name="Irmandade"/> <list gender="1" lookType="278" name="Irmandade"/> </outfit> <outfit id="20"> <list gender="0" lookType="288" name="Demoniaca"/> <list gender="1" lookType="289" name="Demoniaco"/> </outfit> <outfit id="21"> <list gender="0" lookType="324" name="Yalaharian"/> <list gender="1" lookType="325" name="Yalaharian"/> </outfit> <outfit id="34"> <list gender="0" lookType="336" name="Mestra de Guerra"/> <list gender="1" lookType="335" name="Mestre de Guerra"/> </outfit> <outfit id="22"> <list gender="0" lookType="329" name="Casada"/> <list gender="1" lookType="328" name="Casado"/> </outfit> <outfit id="23" access="5" premium="yes"> <list gender="0-3" lookType="159" name="Elfo"/> </outfit> <outfit id="24" access="5" premium="yes"> <list gender="0-3" lookType="160" name="Anao"/> </outfit> <outfit id="25" access="5" premium="yes"> <list gender="0-3" lookType="226" name="Sapo"/> </outfit> <outfit id="26" access="5" premium="yes"> <list gender="0-3" lookType="194" name="Cult"/> </outfit> <outfit id="27" access="5" premium="yes"> <list gender="0-3" lookType="253" name="Headsplitter"/> </outfit> <outfit id="28" access="5" premium="yes"> <list gender="0-3" lookType="254" name="Skullhunter"/> </outfit> <outfit id="29" access="5" premium="yes"> <list gender="0-3" lookType="255" name="Bloodwalker"/> </outfit> <outfit id="30" access="5" premium="yes"> <list gender="0-3" lookType="264" name="Brutetamer"/> </outfit> <outfit id="31" access="3" premium="yes"> <list gender="2;3" lookType="75" name="Gamemaster"/> </outfit> <outfit id="32" access="4" premium="yes"> <list gender="2;3" lookType="266" name="Community Manager"/> </outfit> <outfit id="33" access="5" premium="yes"> <list gender="2;3" lookType="302" name="God"/> </outfit> </outfits>
  12. segura meu rep ta de brincation with me cara?
  13. pq tu nao menciounou o flood do jobby? "MAIS UMA VEZ".
  14. q? q? q? q?, tenho skype nao seu putao. so face.
  15. mas ele disse em todas as magias de healing fera, e nao so em 1, se for de 1 por 1 vai ter que passar no minimo 1 semana fazendo isso, dependendo de tanto de magia que ele tem no ot dele.
  16. apaputaqueparil, quero 174918974981 de rep, se acerta.
  17. se tem que ter as sources do teu executavel, a paradinha que bota o server online, le um tutorial de compilaçao. aki no xtibia tem de monte, so voce procurar que tu acha.
  18. esse vital, seéloks mo putao, cara da uma dica, tem 30284092874902 de homens la -.-
  19. /\ vai ter que fazer isso em literalmente, todo servidor. pois isso dai se muda nas sources, no game.cpp. se for fazer em lua, se vai passar 2/3 dias fazendo isso.
  20. entao seu putao, o de branco do meio ali, ta rodiado de mulher ¬¬
  • Quem Está Navegando   0 membros estão online

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