Ir para conteúdo

Kamiz

Membro
  • Registro em

  • Última visita

Solutions

  1. Kamiz's post in (Resolvido)Geisor 0.6.3 + XAMPP 7.3.1-0 Não consigo dar continuidade was marked as the answer   
    tenta usar "yes" e me posta o que aconteceu!
  2. Cara, podem ser muitas coisas mas a principio eu acredito que seja a sua conexão com a internet que deve oscilar.
    Pode ser o seu firewall que as vezes bloqueia o acesso a porta e a otservlist não consegue "perceber" que o servidor está online.
    Pode ser o executavel que tu tá usando.
     
    Edita a parada da vunerabilidade do webdav do seu xampp, http://servtest.servegame.com:8090/webdav/ aparentemente está vuneravel.
  3. Kamiz's post in (Resolvido)Estou tendo problemas com os baús da minha quest, alguém me ajuda was marked as the answer   
    da look nos baus e posta aqui como está á action e o unique id do bau.
    e posta a flag que tu coloca no actions.xml
    exemplo 
     
            <action actionid="3003" script="seucript.lua" />
     
    Uma explicação breve
    todos os seus baus terão a actions 3003 por exemplo...
    Já os uniques id's vão ser diferentes por exemplo : 
     
    if item.uid == 3030 then
    queststatus = getPlayerStorageValue(cid,100)
    if queststatus == -1 then
    doPlayerSendTextMessage(cid,22,"Voce conquistou a Legendary sorcerer cap.")
    doPlayerAddItem(cid,8865,1)
    setPlayerStorageValue(cid,100,1)
    else
    doPlayerSendTextMessage(cid,22,"It is empty.")
    end
    end  // a action desse bau será 3003, o uniqueid que colocará no map editor será 3030.
     
     
    o próximo item
     
    if item.uid == 3031 then
    queststatus = getPlayerStorageValue(cid,100)
    if queststatus ~= 1 then
    doPlayerSendTextMessage(cid,22,"Voce conquistou a Legendary knight armor.")
    doPlayerAddItem(cid,8883,1)
    setPlayerStorageValue(cid,100,1)
    else
    doPlayerSendTextMessage(cid,22,"It is empty.")
    end
    end
     
    a actionid do bau será 3003 e o uniqueid é 3031.
     
     
    bom, espero que tenha entendido qualquer coisa me manda pm não sou muito bom na didatica.
     
     
     
     
     
     
     
  4. Kamiz's post in (Resolvido)[Vip] No Nome was marked as the answer   
    -- Script System Vip 2.2 -- function onSay(cid, words, param) if(words == "!buyvip") then if doPlayerRemoveItem(cid, 8981, 1) == TRUE then local days = 30 local daysvalue = days * 24 * 60 * 60 local storageplayer = getPlayerStorageValue(cid, 13540) local timenow = os.time() if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then time = timenow + daysvalue else time = storageplayer + daysvalue end if string.find(tostring(getCreatureName(cid)),"[[Vip]]") then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 13540, time) local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 13540, time) local name = getCreatureName(cid) db.executeQuery("UPDATE `players` SET `name` = '[Vip] "..name.."' WHERE `id` = "..getPlayerGUID(cid)..";") doRemoveCreature(cid) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você precisa do ITEM para colocar vip.") end elseif(words == "!vipdays") then local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(cid, 13540) - timenow)/(24 * 60 * 60)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. (quantity < 0 and 0 or quantity) .." dias de VIP no seu character.") elseif(words == "/checkvip") then if getPlayerAccess(cid) == 5 then if not param then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") end local player = getPlayerByName(param) if not isPlayer(player) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player "..player.." not found.") end local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(player, 13540) - timenow)/(24 * 60 * 60)) doPlayerPopupFYI(cid, "O jogador tem ".. (quantity < 0 and 0 or quantity) .." dias de VIP no character.") return TRUE end elseif(words == "/addvip") then if getPlayerAccess(cid) == 5 then local t = string.explode(param, ",") if not t[2] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") end local player = getPlayerByName(t[1]) local name = getCreatureName(player) local days = t[2] local pid = getPlayerByNameWildcard(t[1]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.") return TRUE end local daysvalue = days*3600*24 local storageplayer = getPlayerStorageValue(player, 13540) local timenow = os.time() local time = storageplayer <= 0 and (timenow + daysvalue) or (storageplayer + daysvalue) if string.find(tostring(getCreatureName(pid)),"[[Vip]]") then doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Foram adicionados "..days.." dias de VIP no seu character.") setPlayerStorageValue(player, 13540, time) local quantity = math.floor((getPlayerStorageValue(player,13540) - timenow)/(3600*24)) doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "Você tem "..quantity.." dias de VIP restantes.") else setPlayerStorageValue(player, 13540, time) db.executeQuery("UPDATE `players` SET `name` = '[Vip] "..name.."' WHERE `id` = "..getPlayerGUID(player)..";") doRemoveCreature(player) end end elseif(words == "/delvip") then if getPlayerAccess(cid) == 5 then local dec = MESSAGE_INFO_DESCR if(param == "") then return TRUE,doPlayerSendTextMessage(cid,18,"Command param required.")end local C,t = {},string.explode(param, ",") C.pos = getPlayerPosition(cid) C.uid = getCreatureByName(t[1]) C.time = ((tonumber(t[2]) == nil) and 1 or tonumber(t[2]))*3600*24 --Tempo da vip por dia. C.days = (tonumber(t[2]) == nil) and 1 or tonumber(t[2]) --Dias de vip. if(getPlayerStorageValue(C.uid,13540) < C.time)then doPlayerSendTextMessage(cid,dec,'O jogador '..t[1]..' não possui '..C.days..' dias de vip.') else doPlayerSendTextMessage(cid,dec,'Você removeu '..C.days..' dias de vip do player '..t[1]..'.') setPlayerStorageValue(C.uid,13540,getPlayerStorageValue(C.uid,13540)-C.time) end doSendMagicEffect(C.pos, math.random(28,30)) end end return TRUE end Testa ai.
     
    Edit -
     
    Na linha - doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você precisa do ITEM para colocar vip.")
    No lugar do ITEM ali você coloca o nome do seu item!
  5. Kamiz's post in (Resolvido)erro no geisor was marked as the answer   
    ALTER TABLE `accounts` add `vip_time` INT NOT NULL;  executa essa query e ve se funciona!
  6. Kamiz's post in (Resolvido)[OTServer+WebSite] Error Mysql_Real_Query was marked as the answer   
    Faça o seguinte... Drope a tabela bans, e execulte essa query!
     

Informação Importante

Confirmação de Termo