Ir para conteúdo

Rusherzin

Membro
  • Registro em

  • Última visita

Solutions

  1. Rusherzin's post in (Resolvido)Como Remover Protection Zone RME was marked as the answer   
    Sim, selecione a opção que adiciona a PZone e segure ctrl ao mesmo tempo e passe nos tiles onde tem PZone.
  2. Rusherzin's post in (Resolvido)Problemas - Item novo was marked as the answer   
    Ah, sim. Tem que adicionar a tag dos itens no movements.xml, procure pela tag da soft boots e adicione as mesmas tags só mudando os respectivos ID's
  3. Rusherzin's post in (Resolvido)Ajuda aqui! was marked as the answer   
    Para não remover nenhum dos dois:
     
    local scroll = ID DO ITEM QUE PRECISA local temple = {x=xxx, y=xxx, z=x} local level = 25 function onUse(cid, item, frompos, item2, topos) if item.itemid == scroll and getPlayerLevel(cid) >= level then doTeleportThing(cid, temple, TRUE) doSendMagicEffect(temple,10) doSendAnimatedText(temple, "You are teleporting!", 5) else doPlayerSendCancel(cid, "Sorry, your level must higher than 25!") end return 1 end
  4. Rusherzin's post in (Resolvido)[Duvida] Player Morreno was marked as the answer   
    data/creaturescripts/scripts
    minlevel.lua
     
    function onLogin(cid) local minlevel = 10 if getPlayerLevel(cid) < minlevel then doPlayerAddExp(cid, (getExperienceForLevel(minlevel) - getPlayerExperience(cid))) end return TRUE end creaturescripts.xml
     
        <event type="login" name="minlevel" event="script" value="minlevel.lua"/>
  5. Rusherzin's post in (Resolvido)Outro erro na distro was marked as the answer   
    ALTER TABLE `players` ADD `rep` INT( 11 ) NOT NULL DEFAULT '0';
  6. Rusherzin's post in (Resolvido)erro na distro was marked as the answer   
    Creio que não
  7. Rusherzin's post in (Resolvido)[Pedido] Doll que transforma em orc warlord. was marked as the answer   
    data/actions/scripts/
    doll.lua
     
    local waittime = 2 -- Tempo para se transformar novamente (em minutos) local exhaust = createConditionObject(CONDITION_EXHAUST) local CustomOutfits = {lookType = 12} setConditionParam(exhaust, CONDITION_PARAM_TICKS, (60 * 1000 * waittime)) function onUse(cid, item, fromPosition, itemEx, toPosition) if hasCondition(cid, CONDITION_EXHAUST) == TRUE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Você só pode se transformar a cada "..waittime.." minutos") return TRUE end if hasCondition(cid, CONDITION_EXHAUST) == FALSE then doSetCreatureOutfit(cid, CustomOutfits, waittime * 60 * 1000) doPlayerSendTextMessage(cid, 25, "Transformação!") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) doAddCondition(cid, exhaust) end return TRUE end actions.xml
     
    <action itemid="IDDODOLL" script="doll.lua"/>
  8. Rusherzin's post in (Resolvido)[ERRO] Fatal error: Uncaught exception was marked as the answer   
    Tenta aí:
     
    CREATE TABLE IF NOT EXISTS `bans` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `type` tinyint(1) NOT NULL COMMENT '1 - ip banishment, 2 - namelock, 3 - account banishment, 4 - notation, 5 - deletion', `value` int(10) unsigned NOT NULL COMMENT 'ip address (integer), player guid or account number', `param` int(10) unsigned NOT NULL DEFAULT '4294967295' COMMENT 'used only for ip banishment mask (integer)', `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` text NOT NULL, `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 `active` (`active`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  9. Rusherzin's post in (Resolvido)[Pedido] Action para porta que teleporta se tiver level necessário was marked as the answer   
    function onUse(cid, item, fromPosition, itemEx, toPosition) local doorPos = {x=getThingPosition(item.uid).x, y=getThingPosition(item.uid).y, z=getThingPosition(item.uid).z} local playerPos = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z} local pLevel = 100 --Level necessário para teleportar. local canpass = "Você passou da porta!" -- Mensagem que vai ser enviada ao passar local cannotpass = "Você precisa de level " ..pLevel.. " pelo menos para passar desta porta."         if playerPos.y > doorPos.y and getPlayerLevel(cid) >= pLevel then                 doTeleportThing(cid, {x= doorPos.x, y= doorPos.y-1, z= doorPos.z})                 doSendMagicEffect(getPlayerPosition(cid), 10)                 doPlayerSendTextMessage(cid, 22, canpass)         elseif playerPos.y < doorPos.y and getPlayerLevel(cid) >= pLevel then                 doTeleportThing(cid, {x= doorPos.x, y= doorPos.y+1, z= doorPos.z})                 doSendMagicEffect(getPlayerPosition(cid), 10)                 doPlayerSendTextMessage(cid, 22, canpass)         elseif getPlayerLevel(cid) < pLevel then         doPlayerSendTextMessage(cid, 22, cannotpass)         end          return TRUE end Testei e funcionou aqui, e nem precisa estar exatamente na frente da porta..
  10. Rusherzin's post in (Resolvido)Ajuda com tabela sql players_items was marked as the answer   
    Abre teu SQLite pressione Alt + E e cole isso:
    CREATE TABLE IF NOT EXISTS `player_items` ( `player_id` int(11) NOT NULL DEFAULT '0', `pid` int(11) NOT NULL DEFAULT '0', `sid` int(11) NOT NULL DEFAULT '0', `itemtype` int(11) NOT NULL DEFAULT '0', `count` int(11) NOT NULL DEFAULT '0', `attributes` blob NOT NULL ); E pressione F9

     
  11. Rusherzin's post in (Resolvido)[DUVIDA] Um erro no meu distro was marked as the answer   
    Abre o SqLite, pressione Alt + E, cole esta query:
     
    ALTER TABLE "players" ADD "rep" INT( 11 ) NOT NULL DEFAULT "0"; E aperte F9.
  12. Rusherzin's post in (Resolvido)[Erro] Sample was marked as the answer   
    INSERT INTO `players` (`id`, `name`, `world_id`, `group_id`, `account_id`, `level`, `vocation`, `health`, `healthmax`, `experience`, `lookbody`, `lookfeet`, `lookhead`, `looklegs`, `looktype`, `lookaddons`, `maglevel`, `mana`, `manamax`, `manaspent`, `soul`, `town_id`, `posx`, `posy`, `posz`, `conditions`, `cap`, `sex`, `lastlogin`, `lastip`, `save`, `skull`, `skulltime`, `rank_id`, `guildnick`, `lastlogout`, `blessings`, `balance`, `stamina`, `direction`, `loss_experience`, `loss_mana`, `loss_skills`, `loss_containers`, `loss_items`, `premend`, `online`, `marriage`, `promotion`, `deleted`, `description`) VALUES (10, 'Naruto Sample', 1, 1, 1, 10, 1, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, ''), (11, 'Sasuke Sample', 1, 1, 1, 10, 13, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, ''), (12, 'Lee Sample', 1, 1, 1, 10, 25, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, ''), (13, 'Sakura Sample', 1, 1, 1, 10, 34, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, ''), (14, 'Gaara Sample', 1, 1, 1, 10, 50, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, ''), (15, 'Neji Sample', 1, 1, 1, 10, 70, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, ''), (16, 'Kiba Sample', 1, 1, 1, 10, 90, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, ''), (17, 'Shikamaru Sample', 1, 1, 1, 10, 110, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, ''), (18, 'Hinata Sample', 1, 1, 1, 10, 130, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, ''), (19, 'Tenten Sample', 1, 1, 1, 10, 150, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, ''), (20, 'Itachi Sample', 1, 1, 1, 10, 170, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, ''), (21, 'Killer Bee Sample', 1, 1, 1, 10, 190, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, ''), (22, 'Kakashi Sample', 1, 1, 1, 10, 200, 180, 180, 0, 0, 0, 0, 0, 110, 0, 0, 30, 30, 0, 0, 0, 160, 54, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '');
  13. Rusherzin's post in (Resolvido)Account criada pelo site. was marked as the answer   
    O seu password está criptografado? Pelo que vi em seu config.lua está em "plain" tenta trocar por "sha1" ..
  14. Rusherzin's post in (Resolvido)Como tirar do account manege e coloca para o site ? was marked as the answer   
  15. Rusherzin's post in (Resolvido)Erro na hora de salvar was marked as the answer   
    ALTER TABLE `players` ADD `castViewers` INT( 11 ) NOT NULL DEFAULT '0', ADD `castDescription` VARCHAR( 255 ) NOT NULL
  16. Rusherzin's post in (Resolvido)Rec de Staminia was marked as the answer   
    Mas eu botei a função pra remover e depois adicionar o item
    function onUse(cid, item, fromPosition, itemEx, toPosition) local cfg = {} cfg.refuel = 42 * 60 * 1000 if(getPlayerStamina(cid) >= cfg.refuel) then doPlayerSendCancel(cid, "Your stamina is already full.") elseif(not isPremium(cid)) then doPlayerSendCancel(cid, "You must have a premium account.") else doPlayerSetStamina(cid, cfg.refuel) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.") doRemoveItem(item.uid) doPlayerAddItem(cid, 1234, 1) end return true end Ali em "1234" , substitui o id do Rec..
  17. Rusherzin's post in (Resolvido)Erro no VPS quase direto! was marked as the answer   
    Veja no "system requirements" se é compatível com teu VPS.
    LINK
  18. Rusherzin's post in (Resolvido)Bug pot de remover skulls e frags was marked as the answer   
    Tenta usar esse..
     
    function onUse(cid, item, frompos, item2, topos) local skull = getCreatureSkullType(cid) local bad_skulls = {SKULL_RED,SKULL_BLACK} if getTileInfo(getThingPos(cid)).protection == false then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You can't remove your skull in this area.") return false elseif isInArray(bad_skulls, skull) == true then doPlayerSetSkullEnd(cid, 0, skull) doRemoveItem(item.uid, 1) db.executeQuery('UPDATE `killers`, `player_killers` SET `killers`.`unjustified` = 0 WHERE `killers`.`unjustified` = 1 AND `player_killers`.`player_id` = ' .. getPlayerGUID(cid) .. ' AND `killers`.`id` = `player_killers`.`kill_id`') doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your skull has been removed!") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You do not have red/black skull!") end return true end
  19. Rusherzin's post in (Resolvido)[AJUDA] instalação Gesior was marked as the answer   
    Tenta usar outra database então :x
  20. Rusherzin's post in (Resolvido)Resete database mysql was marked as the answer   
    Manda todos para o templo:
     
    UPDATE players SET posx = 160, posy = 54, posz = 7; Reseta a mana/máximo de mana e a vida/máximo de vida
    UPDATE players SET health = 10, healthmax = 10, mana = 10, manamax = 10, level = 8; É só você escolher o quanto quer que cada char fique de mana,vida.. E o de skills eu vou tentar fazer aqui.
  21. Rusherzin's post in (Resolvido)Erro Na PvP do server was marked as the answer   
    Tenta botar "openpvp" no config.lua
  22. Rusherzin's post in (Resolvido)login.lua.. so q agora n consigo logar... was marked as the answer   
    Tenta:



     
     
    Se der algum erro, poste-o.
  23. Rusherzin's post in (Resolvido)[ERRO] !stamina was marked as the answer   
    Não é incomodo, o fórum é para perguntar sobre o que tu tens dúvida..
    Arrumei o script que estava mostrando a stamina em minutos, botei para dividir por 60, ou seja, vai mostrar em horas.
     
    function onSay(cid, words, param, channel) local stamina = getPlayerStamina(cid) / 60 if isPlayer(cid) then doPlayerPopupFYI(cid, "Your stamina is "..stamina.." hours.") end return true end
  24. Rusherzin's post in (Resolvido){Ajuda} Descrição dos items was marked as the answer   
    movements.xml procura pelo id da armor lá.
  25. Rusherzin's post in (Resolvido)[HELP] Como colocar novos comandos para GM was marked as the answer   
    Se for só colocá-los para GM usar é só por acess no talkactions.xml
    Por Ex:
    <talkaction log="yes" words="/clean" access="3" event="script" value="clean.lua"/> Acess="3" é paraGM
    Acess="4" é para CM
    Acess="5" é para GOD

Informação Importante

Confirmação de Termo