Ir para conteúdo

Adriez

Visconde
  • Total de itens

    341
  • Registro em

  • Última visita

Tudo que Adriez postou

  1. fmz mano ?? como q faz quem so tem 20 resets ser uma vocacao nova ?? flws fmz
  2. fmz manos ?? @boladu fmz como faço isso aew ?? ajuda serei muito grato
  3. fmz manos ?? ta tirando neh num da pra visualiza o trem =.= mais coloquei e agora =.=
  4. fmz manos ?? o scrip desse jeito assim q solta a magia fala sorry you need 20 reset or more so que a magia sai do msm jeito se eu mudar if getResets(cid) para getPlayerReset(cid) aew da erro antes msm de usar a magia no executavel como fazer funfa ??? flws fmz [Error - Spell Interface] [14/08/2011 02:54:04] data/spells/scripts/ThorKiller.lua:onCastSpell [14/08/2011 02:54:04] Description: [14/08/2011 02:54:04] data/spells/scripts/ThorKiller.lua:157: attempt to call global 'getPlayerReset' (a nil value) [14/08/2011 02:54:04] stack traceback: [14/08/2011 02:54:05] data/spells/scripts/ThorKiller.lua:157: in function <data/spells/scripts/ThorKiller.lua:156> local acombat1 = createCombatObject()= local acombat2 = createCombatObject() local acombat3 = createCombatObject() local acombat4 = createCombatObject() local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 15) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENCHANTEDSPEAR) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -30, -20, -100, -105) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 36) setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 33) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -30, -20, -100, -105) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 37) setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE) setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 32) setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -30, -20, -100, -105) local combat4 = createCombatObject() setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat4, COMBAT_PARAM_EFFECT, 38) setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 10) setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -30, -20, -100, -105) arr1 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 1, 1, 1, 2, 1, 1, 1, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} } arr2 = { {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1}, {1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1}, {1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1}, {1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1}, {1, 0, 1, 1, 1, 2, 1, 1, 1, 0, 1}, {1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1}, {1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1}, {1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1}, {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1}, {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1} } arr3 = { {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0}, {0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0}, {0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0}, {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, {1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1}, {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, {0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0}, {0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0}, {0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0} } arr4 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } local area1 = createCombatArea(arr1) local area2 = createCombatArea(arr2) local area3 = createCombatArea(arr3) local area4 = createCombatArea(arr4) setCombatArea(acombat1, area1) setCombatArea(acombat2, area2) setCombatArea(acombat3, area3) setCombatArea(acombat4, area4) function onTargetTile(cid, pos) doCombat(cid,combat1,positionToVariant(pos)) end function onTargetTile2(cid, pos) doCombat(cid,combat2,positionToVariant(pos)) end function onTargetTile3(cid, pos) doCombat(cid,combat3,positionToVariant(pos)) end function onTargetTile4(cid, pos) doCombat(cid,combat4,positionToVariant(pos)) end setCombatCallback(acombat1, CALLBACK_PARAM_TARGETTILE, "onTargetTile") setCombatCallback(acombat2, CALLBACK_PARAM_TARGETTILE, "onTargetTile2") setCombatCallback(acombat3, CALLBACK_PARAM_TARGETTILE, "onTargetTile3") setCombatCallback(acombat4, CALLBACK_PARAM_TARGETTILE, "onTargetTile4") local function onCastSpell1(parameters) doCombat(parameters.cid, acombat1, parameters.var) end local function onCastSpell2(parameters) doCombat(parameters.cid, acombat2, parameters.var) end local function onCastSpell3(parameters) doCombat(parameters.cid, acombat3, parameters.var) end local function onCastSpell4(parameters) doCombat(parameters.cid, acombat4, parameters.var) end local reset_min = 20 function getResets(cid) resets = getPlayerStorageValue(cid,2310) if resets < 1 then resets = 1 end return resets end function onCastSpell(cid, var) if getResets(cid) >= reset_min then doPlayerAddMana(cid, math.random(45000, 55000)) doCombat(cid, combat, var) else doPlayerSendCancel(cid, "Sorry, you need "..reset_min.." reset's or more to use this spell.") end local parameters = { cid = cid, var = var} addEvent(onCastSpell1, 5, parameters) addEvent(onCastSpell2, 10, parameters) addEvent(onCastSpell3, 15, parameters) addEvent(onCastSpell4, 20, parameters) return TRUE end
  5. fmz manos ??? num teria como um npc mudasse a vocacao mais pra isso o char tinha q ter 20 reset virava vocacao Super, 40 resets outra vocacao assim por diante ou restringir spells por reset alguem ajuda ?? flws fmz
  6. fmz manos ??? num teria como um npc mudasse a vocacao mais pra isso o char tinha q ter 20 reset virava vocacao Super, 40 resets outra vocacao assim por diante ou restringir spells por reset alguem ajuda ?? flws fmz fmz manos ??? num teria como um npc mudasse a vocacao mais pra isso o char tinha q ter 20 reset virava vocacao Super, 40 resets outra vocacao assim por diante ou restringir spells por reset alguem ajuda ?? flws fmz
  7. fmz manos ?? no meu ot se um cara fica descendo no ralo e subindo ou descendo na escada e subindo da pra soltar magia nao e tbm o melee attack nao funfa assim meu ot é 8.6 nos outros ot q eu joguei dava e tbm se eu clico pra ataca ele ele corre da tela sai do meu campo de area ele continua marcado nos outros desmarcava como resolver ?? flws fmz manos
  8. fmz manos ?? eu criei um arrow e um bolt 7363 e 7365 queria restringir so pra paladino usa ja tentei varias vezes e nao consegui ou tem q restringir o q lanca as coisas exemplo bow, crossbow ?? flws fmz
  9. fmz manos ?? como restringir spells por reset baseado no q tu fez eu fiz na magia da isso ou uma hora aparece vc tem q ter 50 reset pra da a magia so q a magia sai normalmente como q faz ?? flws fmz [Error - Spell Interface] [14/08/2011 02:45:36] data/spells/scripts/ThorKiller.lua:onCastSpell [14/08/2011 02:45:36] Description: [14/08/2011 02:45:36] data/spells/scripts/ThorKiller.lua:157: attempt to call global 'getPlayerReset' (a nil value) [14/08/2011 02:45:36] stack traceback: [14/08/2011 02:45:36] data/spells/scripts/ThorKiller.lua:157: in function <data/spells/scripts/ThorKiller.lua:156>
  10. up
  11. fmz manos ?? gostaria de como modificar meu scrip pra uh e a mana runa encher de acordo com resets dos players + level quantos mais reset e mais lv ele tiver a runa enche mais e nas spells quanto mais reset + lv ele tiver as magias rancar mais ?? flws fmz up
  12. Adriez

    Subwat V17

    fmz manos ?? quando reseta e vai upar da debug comigo deu eu coloquei esse ot on =.= flws fmz DBUG ONDE ?? CUAL !?
  13. Adriez

    Vocacao Nova Por Item

    fmz manos ?? gostaria de uma vocacao nova por um item usa o item e vira uma vocacao q eu quiser.. oq eu queria msm era um npc que mudasse vocacao pela quantidade de resets exemplo meu servidor tem sistema de reset q mostra no look 1 reset 5 ou 10 e etc aew queria um npc q quando tiver 20 resets mudasse pra uma classe 30 reset outra classe e assim diante entendeu ?? flws fmz
  14. fmz manos ?? o sistema de reset eu ja tenho funfando bacana o cara reseta uma vez aew aparece antes do lv dele 1 reset e se ele reseta duas vezes aparece 2 e etc queria q tipo um npc mudasse ele de vocacao exemplo Warrior sendo q pra ele mudar pra warrior teria q ter 20 reset e pra mudar pra super warrior 40 reset assim por diante entendeu ??? flws fmz fmz manos ?? pode ser tbm um por item exemplo o cara usa um item da quest e vira a vocacao q eu quero a quest eu sei fazer o item como q faz pra cara virar a vocacao q quero pelo item ?? flws fmz
  15. fmz manos ?? eu adciono um item de demonstracao no mapa ou no bau pra galera pegar da quest a id num é a mesma das ids do item da pasta do servidor como q faz no rme adcionar exatamente o item q eu editei da pasta items do servidor ??? flws fmz
  16. fmz manos ?? teria como um npc tipo tu pega 10 resets aew fala com ele, ele muda sua classe pra eu quiser criar e tu tiver 20 resets msm npc o outro muda sua classe pra outra classe e assim adiante ??? flws fmz
  17. Adriez

    Complementacao Script

    fmz manos ??? tipo eu queria q esse scrip do reset funfava pelo !reset e ali aonde mostra q com 3 resets tu vire squire q tbm fosse virando uma classe nova ou so virado a classe nova aew no debaixo a msm coisa a cada 3 reset fora q ja foram acumulados os de cima q virasse outra classe pra eu poder configurar magias mega forte entendeu ?? flws fmz --[[ ((OTBR RESET SYSTEM)) Author : LsM Version : v1.0 Informations : This system was made by LsM to ######. You can get more information at [Retirado]. ]]-- --[[ ///// INÍCIO DE CONFIGS ///// Here you can change that you know what are you doing. ]]-- --Do not forget to include the external file : dofile("data/npc/lib/reset-lib.lua") -- Level config local toLevel = 8 -- Return to level. local focuses = {} -- do not change -- Config local showInDescription = TRUE -- change it to FALSE if you don't want the system make changes in player description. local teleportToTemple = TRUE -- change it to FALSE if you don't want the system teleport player to temple after reset. -- You can change and add new values in the table, but do not change the number in [brackets]. local tbl = { [0] = {premiumLevel = 350, freeLevel = 360, description = "Squire", class = 3}, [1] = {premiumLevel = 360, freeLevel = 370, description = "Count", class = 3}, [2] = {premiumLevel = 370, freeLevel = 380, description = "Celestial", class = 3}, [3] = {premiumLevel = 380, freeLevel = 390, description = "Lord", class = 3}, [4] = {premiumLevel = 390, freeLevel = 400, description = "Emperor", class = 3}, [5] = {premiumLevel = 400, freeLevel = 420, description = "Cerberus", class = 100} -- Is necessary a higher number in the last class. } function onCreatureSay(cid, type, msg) -- Database configurations local dtb_player = getPlayerGUID(cid) local db_actions = { -- Set Informations setR_Id = "UPDATE `players` SET `resetid` = "..(getResetId(dtb_player) + 1).." WHERE `id`= " .. dtb_player .. ";", setR_Class_Reset = "UPDATE `players` SET `reset_class` = '0' WHERE `id`= " .. dtb_player .. ";", setR_Class_Add = "UPDATE `players` SET `reset_class` = "..(getResetClass(dtb_player) + 1).." WHERE `id`= " .. dtb_player .. ";", setDesc_0 = "UPDATE `players` SET `description` = '. ".. getSexName(dtb_player) .." is ".. tbl[getResetId(dtb_player)].description .." [Nv. 0]' WHERE `id`= " .. dtb_player .. ";", setDesc_Plus = "UPDATE `players` SET `description` = '. ".. getSexName(dtb_player) .." is ".. tbl[getResetId(dtb_player)].description .." [Nv. ".. getResetClass(dtb_player) .."]' WHERE `id`= " .. dtb_player .. ";", } -- Talk npc configurations local t_config = { --PlayerSay = "Npc say" Hi = "Hello ".. getCreatureName(cid) ..", I work with resets, do you want to be reseted?", Yes_1 = "Ok, but before I cannot forget to warn you: You will return to level ".. toLevel ..", your skills, attack, magic power will not be change and YOU CANNOT RECOVER YOUR LEVEL AFTER IT. Do you really want to reset your character?", No = "Ok, then.", Bye = "Good bye ".. getCreatureName(cid) ..".", Player_withBattle = "You cannot reset because you are in fight.", NoLevel = "Sorry, but you do not have level to reset now, you need to advance to level {".. tbl[getResetId(dtb_player)].freeLevel .."}. But if you are premium, you can reset at level {".. tbl[getResetId(dtb_player)].premiumLevel .."}." } --[[ ///// FIM DE CONFIGS ///// Do not change anyThing Below. ]]-- -- Início de Main() local cid_Say = msg:lower() if ((cid_Say == "hi") and not (isFocused(cid, focuses))) then selfSay(t_config.Hi, cid) addFocus(cid, focuses) selfFocus(cid) talk_step = 1 elseif ((cid_Say == "yes") and (talk_step == 1)) then selfSay(t_config.Yes_1, cid) talk_step = 2 elseif ((cid_Say == "yes") and (talk_step == 2)) then if (isPlayerPzLocked(cid) == FALSE) then if (isPlayer(cid)) then -- Be shure he is online if (((getPlayerLevel(cid) >= tbl[getResetId(dtb_player)].premiumLevel) and (isPremium(cid) == TRUE)) or ((getPlayerLevel(cid) >= tbl[getResetId(dtb_player)].freeLevel) and (isPremium(cid) == FALSE))) then if (teleportToTemple) then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) end if (isInArray(tbl[getResetId(dtb_player)].class, getResetClass(dtb_player))) then resetPlayer(cid, db_actions, 1) else resetPlayer(cid, db_actions, 0) end if (showInDescription) then setDescription(dtb_player, tbl, db_actions) end else selfSay(t_config.NoLevel, cid) end else print("RESET ERROR: Player not found when request (isPlayer). System Paused, no changes in player.") return 0 end else selfSay(t_config.Player_withBattle, cid) removeFocus(cid, focuses) end elseif ((cid_Say == "no") and (isInArray({1,2}, talk_step))) then selfSay(t_config.No, cid) removeFocus(cid, focuses) elseif (cid_Say == "bye") then selfSay(t_config.Bye, cid) removeFocus(cid, focuses) end end function onThink() for _, focus in pairs(focuses) do if not isCreature(focus) then removeFocus(focus, focuses) else local distance = getDistanceTo(focus) or 5 if distance > 4 then selfSay("Hmpf!", focus) removeFocus(focus, focuses) end end end setFocus(focuses) end
  18. fmz manos ?? meu sistema reset funfa so q aew quando o cara reseta uma vez e volta a upar o boneco dele da debug error =.= como consertar ??? flws fmz
  19. fmz manos ?? como faz pra sempre resetar sempre no lv max 717217 e cada vez q ele pega o lv max ele reseta uma vez e assim por diante ?? flws fmz
  20. Adriez

    Subwat V17

    fmz manos ?? arruma os debug aew fecho curti pacas o ot mais os debug losers =.=
  21. Adriez

    [Encerrado] Xp

    fmz manos ?? aqui meu ot upa rapidao ate lv 60000 apartir dae demora muito quase q impossivel como facil pra apartir desse lv upa rapidao igual antes ? flws fmz
  22. fmz manos ?? parece rox mais paia q ta dando debug assim q ataca bicho -.- flws vlws
  • Quem Está Navegando   0 membros estão online

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