Ir para conteúdo

alissonxzff2

Campones
  • Total de itens

    55
  • Registro em

  • Última visita

  • Dias Ganhos

    1

Histórico de Reputação

  1. Upvote
    alissonxzff2 recebeu reputação de Evergol em Erro no install.php(etapa5)   
    é só botar page acess 3 no phpmyadmin, nas accounts, e retirar o acess da 1 (pra poder usar acc manager)
     
    alias tente botar page acess numa conta e entrar no site, tira das config o yes de instalar o gesior
  2. Upvote
    alissonxzff2 recebeu reputação de Caronte em Aol infinito   
    como eu tenho que por no creaturescripts.xml?
     
    <event type="*****" name="*****" event="script" value="aolmaster.lua"/>
     
    sou leigo em scripts, mas quando há alguma duvida basica eu até consigo ajudar os outros, mas é pura gambiarra ou o que ja aconteceu comigo x)
     
    tudo certo coloquei
    <event type="preparedeath" name="AolMaster" event="script" value="aolmaster.lua"/> e no login.lua adicionei
    registerCreatureEvent(cid, "AolMaster") valeuuuuu
     
    pra quem quiser arrumar o bug do black também tem que por: (tentei e consegui uhu, menos trabalho pra vcs s2)
    if isPlayer(cid) and getPlayerSkullType(cid) ~= SKULL_RED and getPlayerSkullType(cid) ~= SKULL_BLACK then
  3. Upvote
    alissonxzff2 deu reputação a Caronte em Aol infinito   
    Mude esse script que você passou para isto:
    function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) and getPlayerSkullType(cid) ~= SKULL_RED then if (getPlayerSlotItem(cid, 2).itemid == 5785) then doCreatureSetStorage(cid, 1294, 1) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA) return true end end return true end Agora vá em login.lua, e adicione isto no final dele, antes do último return true:
    if getCreatureStorage(cid, 1294) == 1 then doCreatureSetStorage(cid, 1294, -1) doPlayerAddItem(cid, 5785) end
    Não é exatamente uma aol infinita, mas, toda vez que você morre com ela você vai receber outra ao logar.
  4. Upvote
    alissonxzff2 recebeu reputação de Danihcv em VIP no nome, ao usar item que da Vip Time.   
    actions:
    <action itemid="xxxx" script="vipdonat.lua"/> vipdonat.lua: (13778) storage, mude-a para desejada
    function onUse(cid, item, fromPosition, itemEx, toPosition) local config={ removeOnUse = "yes" -- remover quando usar ("yes" or "no") } local days = 30 -- dias que serão adicionados local daysvalue = days * 24 * 60 * 60 local storageplayer = getPlayerStorageValue(cid, 13778) local timenow = os.time() if getPlayerStorageValue(cid, 13778) - os.time() <= 0 then time = timenow + daysvalue else time = storageplayer + daysvalue end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 13778, time) local quantity = math.floor((getPlayerStorageValue(cid, 13778) - timenow)/(24 * 60 * 60)) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") if (config.removeOnUse == "yes") then doRemoveItem(item.uid, 1) db.executeQuery("UPDATE `players` SET `name` = '[VIP] "..getCreatureName(cid).."' WHERE `id` = "..getPlayerGUID(cid)..";") doPlayerSendTextMessage(cid,25,"Você será kickado em 5 segundos para mudança de nome.") doPlayerAddAddons(cid, 1) addEvent(doRemoveCreature, 5*1000, cid, true) end return TRUE end creaturescripts.xml: add
    <event type="login" name="FimVip" event="script" value="fimvip.lua"/> fimvip.lua: \creaturescripts\scripts
    function onLogin(cid) local temple = { x =160, y = 54, z = 7} if vip.hasVip(cid) == true then if getPlayerStorageValue(cid,13778) ~= 1 then setPlayerStorageValue(cid,13778,1) end else if getPlayerStorageValue(cid,13778) == 1 then doTeleportThing(cid, temple) doPlayerSendTextMessage(cid, 22, "Sua vip acabou!") db.executeQuery("UPDATE `accounts` SET `vip_time` = 0 WHERE `id` = ".. getAccountIdByName(getPlayerName(cid)) ..";") setPlayerPromotionLevel(cid, 1) setPlayerStorageValue(cid, 13778, 0) end end return true end function onLogin(cid) local name = string.gsub(""..getCreatureName(cid).."", ".VIP. ", "") if getPlayerStorageValue(cid, 13778) <= 0 then if getCreatureName(cid) ~= name then db.executeQuery("UPDATE `players` SET `name` = '"..name.."' WHERE `id` = "..getPlayerGUID(cid)..";") addEvent(doRemoveCreature, 2*1000, cid, true) end end return true end movements.xml: 29859 (action id do piso que expulsará intrusos)
    <movevent type="StepIn" actionid="29859" event="script" value="viptile.lua"/> viptile.lua:
    function onStepIn(cid, item, position, fromPosition) local config = { msgDenied = "Este lugar é só para vips donate, adquira sua vip no site..", msgWelcome = "Bem vindo a area vip, você tem 20% a mais de xp, bom up.." } if getPlayerStorageValue(cid, 13778) - os.time() <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return TRUE end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome) return TRUE end Qualquer coisa manda um salve ^^
     
  5. Upvote
    alissonxzff2 deu reputação a Lumus em Aurea por level   
    local tab = {
    [6] = {effect = 70},
    [7] = {effect = 70},
    [8] = {effect = 70},
    [9] = {effect = 70},
    [10] = {effect = 70},
    [11] = {effect = 70},-- [vocationID] = {effect = Number}
    [12] = {effect = 70}
    }
    local delay = 2 -- tempo do efeito da aura em segundos
    local level = 50 -- coloque o level desejado
    function ariseAura(cid)
    if isPlayer(cid) then
    doSendMagicEffect(getThingPos(cid), tab[getPlayerVocation(cid)].effect)
    addEvent(ariseAura, delay * 1000, cid)
    end
    end
    function onLogin(cid)
    if tab[getPlayerVocation(cid)] and getPlayerLevel(cid) >= level then
    ariseAura(cid)
    end
    return true
    end

     
  6. Upvote
    alissonxzff2 recebeu reputação de jvcasarin em Erro com script portas   
    ja aconteceu comigo, ta duplicada essas ids, separe elas.. exemplo:
     
    1259, in fromid: 1219 and toid: 1262 (1259 ta duplicada porque tem alguma action declarando DO ID 1219 AO ID 1262.. no caso 1259 ta envolvido, então ele deve estar duplicado)
     
    declare aonde ta 1219 ao 1262: 1219 ao 1258 depois 1260 ao 1262, nisso 1259 fica de fora.. deu pra entender mais ou menos?
     
    ali esta dizendo que os ids 1214, 1213, 1261, 1259 estão duplicados.. separe todos esses do action 1219 ao 1262, como te disse
     
    ---
     
    <action fromid="1219" toid="1258" script="script"/>
    <action itemid="1260" script="script"/>
    <action itemid="1262" script="script"/>
    <action itemid="1212" script="script"/>
    <action itemid="1215" script="script"/>
     
    troque a action 1219 to 1262 e a outra action 1212 to 1215 por essas /\
     
  7. Upvote
    alissonxzff2 recebeu reputação de EddyHavaiano em VIP no nome, ao usar item que da Vip Time.   
    actions:
    <action itemid="xxxx" script="vipdonat.lua"/> vipdonat.lua: (13778) storage, mude-a para desejada
    function onUse(cid, item, fromPosition, itemEx, toPosition) local config={ removeOnUse = "yes" -- remover quando usar ("yes" or "no") } local days = 30 -- dias que serão adicionados local daysvalue = days * 24 * 60 * 60 local storageplayer = getPlayerStorageValue(cid, 13778) local timenow = os.time() if getPlayerStorageValue(cid, 13778) - os.time() <= 0 then time = timenow + daysvalue else time = storageplayer + daysvalue end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 13778, time) local quantity = math.floor((getPlayerStorageValue(cid, 13778) - timenow)/(24 * 60 * 60)) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") if (config.removeOnUse == "yes") then doRemoveItem(item.uid, 1) db.executeQuery("UPDATE `players` SET `name` = '[VIP] "..getCreatureName(cid).."' WHERE `id` = "..getPlayerGUID(cid)..";") doPlayerSendTextMessage(cid,25,"Você será kickado em 5 segundos para mudança de nome.") doPlayerAddAddons(cid, 1) addEvent(doRemoveCreature, 5*1000, cid, true) end return TRUE end creaturescripts.xml: add
    <event type="login" name="FimVip" event="script" value="fimvip.lua"/> fimvip.lua: \creaturescripts\scripts
    function onLogin(cid) local temple = { x =160, y = 54, z = 7} if vip.hasVip(cid) == true then if getPlayerStorageValue(cid,13778) ~= 1 then setPlayerStorageValue(cid,13778,1) end else if getPlayerStorageValue(cid,13778) == 1 then doTeleportThing(cid, temple) doPlayerSendTextMessage(cid, 22, "Sua vip acabou!") db.executeQuery("UPDATE `accounts` SET `vip_time` = 0 WHERE `id` = ".. getAccountIdByName(getPlayerName(cid)) ..";") setPlayerPromotionLevel(cid, 1) setPlayerStorageValue(cid, 13778, 0) end end return true end function onLogin(cid) local name = string.gsub(""..getCreatureName(cid).."", ".VIP. ", "") if getPlayerStorageValue(cid, 13778) <= 0 then if getCreatureName(cid) ~= name then db.executeQuery("UPDATE `players` SET `name` = '"..name.."' WHERE `id` = "..getPlayerGUID(cid)..";") addEvent(doRemoveCreature, 2*1000, cid, true) end end return true end movements.xml: 29859 (action id do piso que expulsará intrusos)
    <movevent type="StepIn" actionid="29859" event="script" value="viptile.lua"/> viptile.lua:
    function onStepIn(cid, item, position, fromPosition) local config = { msgDenied = "Este lugar é só para vips donate, adquira sua vip no site..", msgWelcome = "Bem vindo a area vip, você tem 20% a mais de xp, bom up.." } if getPlayerStorageValue(cid, 13778) - os.time() <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return TRUE end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome) return TRUE end Qualquer coisa manda um salve ^^
     
  8. Upvote
    alissonxzff2 recebeu reputação de GabrielEvaristo em Mudando a cor das letras no Gesior   
    html/php usa de vez em quando "red/blue/green" e tem aquelas que se não me engano sao numeros "#FFFAFA/245245245"
     
    http://www.ufpa.br/dicas/htm/htm-cor2.htm
     
    /\ aqui tem o numero das cores e tal..
     
    procure na line que ta colorido, veja como ta o código, tente fazer igual mas trocando a cor e os nomes que vc deseja
  9. Upvote
    alissonxzff2 deu reputação a Kemix em Script de chave abrir porta bugado   
    Esta bugado ou vc quer modificar para o jeito que vc falou?
  10. Upvote
    alissonxzff2 deu reputação a FlamesAdmin em item duplicado em OTB   
    Não tem como.
  11. Upvote
    alissonxzff2 deu reputação a Kemix em vip system o que tem errado   
    function onStepIn(cid, item, position, fromPosition)
     
    local config = {
    msgDenied = "Você não e vip II , faça a quest vip II ",
    msgWelcome = "Seja Bem Vindo a Area vip II."
    }
     
    if getPlayerStorageValue(cid, 13540) <= 0 then
    doTeleportThing(cid, fromPosition, true)
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied)
    doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
    return TRUE
    end
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome)
    return TRUE
    end
  12. Upvote
    alissonxzff2 deu reputação a RigBy em Duvida sobre [VIP] não sair do nick   
    Quando loga e a vip tiver acabado, vai tirar o nome [VIP]
    Creaturescript:
    .lua
    function onLogin(cid) local name = string.gsub(""..getCreatureName(cid).."", ".VIP. ", "") if getPlayerStorageValue(cid, 13704) <= 0 then if getCreatureName(cid) ~= name then db.executeQuery("UPDATE `players` SET `name` = '"..name.."' WHERE `id` = "..getPlayerGUID(cid)..";") addEvent(doRemoveCreature, 2*1000, cid, true) end end return true end .xml <event type="login" name="RemoveName" event="Nome_do_Scriptt"> Login.lua antes do ultimo return true registerCreatureEvent(cid, "RemoveName")
  13. Upvote
    alissonxzff2 deu reputação a Alencar522 em por vip com % de exp   
    local expextra = 20 -- 20% de exp
    local storage = 13704 -- coloque sua storage aqui
    local valor = 1 -- valor da storage, se for por tempo deixe como está
     
    function onLogin(cid)
    if getPlayerStorageValue(cid, 1452369) == 1 then -- verificação para adicionar a xp só uma vez
    return true
    end
    if getPlayerStorageValue(cid, storage) >= valor then
    doPlayerSetExperienceRate(cid,expextra)
    doPlayerSendTextMessage(cid,21,"Você ganhou "..expextra.."% de exp por ser vip ")
    setPlayerStorageValue(cid, 1452369, 1)
    else
    doPlayerSendTextMessage(cid,21,"Torna-se vip e ganhe "..expextra.."% de exp")
    end
    end
  14. Upvote
    alissonxzff2 deu reputação a Alencar522 em por vip com % de exp   
    local expextra = 20 -- 20% de exp local storage = 13704 -- coloque sua storage aqui local valor = 1 -- valor da storage, se for por tempo deixe como está function onLogin(cid) if getPlayerStorageValue(cid, 1452369) == 1 then -- verificação para adicionar a xp só uma vez return true end if getPlayerStorageValue(cid, storage) >= valor then setPlayerExtraExpRate(cid, expextra) doPlayerSendTextMessage(cid,21,"Você ganhou "..expextra.."% de exp por ser vip ") setPlayerStorageValue(cid, 1452369, 1) else doPlayerSendTextMessage(cid,21,"Torna-se vip e ganhe "..expextra.."% de exp") end end Tenta ae
  15. Upvote
    alissonxzff2 deu reputação a Bruno em por vip com % de exp   
    Qual é seu sistema vip meu querido?
  16. Upvote
    alissonxzff2 deu reputação a Alencar522 em por vip com % de exp   
    Tenta assim
    local expextra = 20 -- 20% de exp local storage = 123456 -- coloque sua storage aqui local valor = 1 -- valor da storage, se for por tempo deixe como está function onLogin(cid) if getPlayerStorageValue(cid, 1452369) == 1 valor then -- verificação para adicionar a xp só uma vez return true end if getPlayerStorageValue(cid, storage) >= valor then doPlayerSetExperienceRate(cid,expextra) doPlayerSendTextMessage(cid,21,"Você ganhou "..expextra.."% de exp por ser vip ") setPlayerStorageValue(cid, 1452369, 1) else doPlayerSendTextMessage(cid,21,"Torna-se vip e ganhe "..expextra.."% de exp") end end
  17. Upvote
    alissonxzff2 deu reputação a Bruno em Erro na hora de criar o personagem   
    Coloca o arquivo OTS_Player.php aqui para que eu veja se tem algo errado.
  18. Upvote
    alissonxzff2 deu reputação a Bruno em Teleporte falante   
    Tente assim:
     

    local config = { ["VipCity"] = { x = 167, y = 49, z = 7 }, ["Power"] = { x = 153, y = 44, z = 7 }, ["Castle"] = { x = 166, y = 54, z = 7 }, ["Arena"] = { x = 151, y = 53, z = 7 }, ["Teleports"] = { x = 157, y = 47, z = 7 }, ["VipQuest"] = { x = 151, y = 54, z = 7 }, ["Depot"] = { x = 151, y = 55, z = 7 }, ["Especiais"] = { x = 177, y = 62, z = 7 }, ["Eventos"] = { x = 159, y = 47, z = 7 }, ["Bem Vindo"] = { x = 160, y = 54, z = 7 } } function onThink(cid, interval, lastExecution) for text, pos in pairs(config) do doSendAnimatedText(pos, text, math.random(1, 255)) end return true end
  19. Upvote
    alissonxzff2 deu reputação a Bruno em Ajuda na vip   
    Se é questão de acesso apenas, isso é simples resolver, pois provavelmente ele deve estar sobreescrevendo a storage quando ele evolui de vip e o movements checa apenas x valor.
     
    Exemplo:
    Deve estar: getPlayerStorageValue(cid, xxxx) == 1
    Deveria estar: getPlayerStorageValue(cid, xxxx) >= 1
     
    Ai isso vai só mudando conforme ele vai adquirindo outras vips, evitando ter que registrar uma storage para cada nível.
  20. Upvote
    alissonxzff2 deu reputação a Bruno em Temple position mysql   
    Altera o town_id para o correto!
  • Quem Está Navegando   0 membros estão online

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