Ir para conteúdo

Jociel

Membro
  • Total de itens

    114
  • Registro em

  • Última visita

  • Dias Ganhos

    1

Jociel venceu a última vez em Abril 26

Jociel teve o conteúdo mais curtido!

Sobre Jociel

  • Rank
    Angel

Informação de Perfil

  • Genero
    Masculino
  • Eu sou
    OT-Admin
  • Meu personagem
    Alfa
  • OTServ favorito
    Alternativos
  • Bot preferido
    ...

Últimos Visitantes

516 visualizações
  1. @Sttorm poderia fazer uma action que ao abrir o bau adicionasse a storage ao player com uma mensagem
  2. Esse poblema surge de acordo como a vocation é configurada no vocaiton.xml para quando relogar e nao sumir a vocation vc deve fazer assim: um exemplo <vocation id="5" name="elite knight" description="a elite knight" needpremium="0" gaincap="15" gainhp="200" gainmana="90" gainhpticks="0" gainhpamount="0" gainmanaticks="0" gainmanaamount="0" manamultiplier="1.1" attackspeed="500" soulmax="100" gainsoulticks="120" fromvoc="5"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="15.0" magHealingDamage="2.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="2.0" club="1.1" sword="2.0" axe="2.0" distance="2.0" shielding="2.0" fishing="1.1" experience="1.0"/> </vocation> A parte fromvoc tem que esta com a id igual do vocation id para quando relogar continuar com a vocation
  3. Jociel

    Scripting [Resolvido]

    Funcionou! vlw rep+
  4. Jociel

    Scripting [Resolvido]

    como boto no xml? depois tem que registra no monstro né
  5. Tou com uma script de teleport random porem o player nao e teleportado na hora que pisa, para ele poder se teleportado tem que passar por cima varias vezes tem como concertar isso? Script local pos = { {x = 555, y = 334, z = 7}, {x = 392, y = 309, z = 7}, {x = 330, y = 416, z = 7}, {x = 593, y = 409, z = 7}, {x = 593, y = 391, z = 7}, {x = 568, y = 391, z = 7}, {x = 568, y = 409, z = 7}, {x = 537, y = 391, z = 7}, {x = 505, y = 390, z = 7}, {x = 507, y = 409, z = 7}, } function onStepIn(cid) doTeleportThing(cid, pos[math.random(#pos)]) return true end
  6. Jociel

    Scripting [Resolvido]

    @Sttorm Essa script é no globalevents né?
  7. Tou com esse poblema na spell: preciso muito que alguem me ajude a concerta isso , Darei Rep+ Script da Spell local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -4.2, 1, -4.2, 1) arr1 = { {3} } local area1 = createCombatArea(arr1) setCombatArea(combat1, area1) local function onCastSpell1(parameters) return isPlayer(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var) end function magic779(cid) local effect = 29 local position2 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position2, effect) end function magic780(cid) local effect = 177 local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position1, effect) end function magic781(cid) local effect = 177 local position3 = {x=getThingPosition(getCreatureTarget(cid)).x, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position3, effect) end function onCastSpell(cid, var) local waittime = 2.5 -- Tempo de exhaustion local storage = 1158001 if exhaustion.check(cid, storage) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar a spell novamente.") return false end local parameters = { cid = cid, var = var} addEvent(onCastSpell1, 0, parameters) addEvent(onCastSpell1, 400, parameters) addEvent(onCastSpell1, 800, parameters) addEvent(onCastSpell1, 1200, parameters) addEvent(onCastSpell1, 1600, parameters) addEvent(onCastSpell1, 2000, parameters) addEvent(magic779,0,cid) addEvent(magic780,0,cid) addEvent(magic781,0,cid) addEvent(magic779,400,cid) addEvent(magic780,400,cid) addEvent(magic781,400,cid) addEvent(magic779,800,cid) addEvent(magic780,800,cid) addEvent(magic781,800,cid) addEvent(magic779,1200,cid) addEvent(magic780,1200,cid) addEvent(magic781,1200,cid) addEvent(magic779,1600,cid) addEvent(magic780,1600,cid) addEvent(magic781,1600,cid) addEvent(magic779,2000,cid) addEvent(magic780,2000,cid) addEvent(magic781,2000,cid) exhaustion.set(cid, storage, waittime) return TRUE end
  8. @Sttorm deu esse erro [05/06/2018 19:29:14] [Error - LuaScriptInterface::loadFile] data/spells/scripts/monsters/madara.lua:8: unexpected symbol near ')' [05/06/2018 19:29:14] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/monsters/madara.lua) [05/06/2018 19:29:14] data/spells/scripts/monsters/madara.lua:8: unexpected symbol near ')'
  9. @Sttorm e onde fica o script dessa funçao? Edit: Para ser mais exato eu estou precisando de um script de uma spell que o monstro usa e fica soltando efeito em cima do monstro por x segundos
  10. Eu tenho um script de uma spell que o monstro usa porem ela não ta do jeito que eu quero, o efeito que aparece nao é em cima do monstro, o efeito fica aparecendo norte-oeste, quem puder ajeita para fica aparecendo o efeito em cima do monstro Script da spell: local tempo = 60 -- tempo em segundos. local ml = 40 -- quantos ira aumentar o skill de ML local skillfist = 0 -- quantos ira aumentar o skill de Fist local skillsword = 15 -- quantos ira aumentar o skill de Sword local skillaxe = 0 -- quantos ira aumentar o skill de Axe local skillclub = 15 -- quantos ira aumentar o skill de Club local skilldistance = 15 -- quantos ira aumentar o skill de Distance local skillshield = 0 -- quantos ira aumentar o skill de Shield local health = 25 -- A cada 1 segundo quantos aumentar de vida local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, ml) setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, skillfist) setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, skillsword) setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, skillaxe) setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, skillclub) setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, skilldistance) setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, skillshield) setConditionParam(condition, CONDITION_PARAM_OUTFIT, outfit) setCombatCondition(combat, condition) local condition = createConditionObject(CONDITION_HASTE) setConditionParam(condition, CONDITION_PARAM_SPEED, 300) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setCombatCondition(combat, condition) local condition = createConditionObject(CONDITION_REGENERATION) setConditionParam(condition, CONDITION_PARAM_SUBID, 1) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, health) setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000) setCombatCondition(combat, condition) function onCastSpell(cid, var) if getCreatureCondition(cid, CONDITION_REGENERATION, 1) == false then doCombat(cid, combat, var) repeatEff(cid, 102, 102) doCreatureSay(cid, "Perfect Susanoo", TALKTYPE_MONSTER) else end end
  11. Minha spell esta com o seguinte Erro: Espero que consigam arrumar [05/06/2018 11:31:55] [Error - Spell Interface] [05/06/2018 11:31:55] data/spells/scripts/itachi/magia5.lua [05/06/2018 11:31:55] Description: [05/06/2018 11:31:55] (luaSetCombatParam) Combat not found Script da spell local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 26) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -4.8, 1, -4.2, 1) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 103) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 26) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -4.8, 1, -4.2, 1) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 103) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 26) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -4.8, 1, -4.2, 1) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 103) local combat4 = createCombatObject() setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 26) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -4.8, 1, -4.2, 1) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 103) local arr1 = { {1, 1, 1}, {1, 3, 1}, {1, 1, 1} } local arr2 = { {1, 1, 1}, {1, 3, 1}, {1, 1, 1} } local arr3 = { {1, 1, 1}, {1, 3, 1}, {1, 1, 1} } local area1 = createCombatArea(arr1) local area2 = createCombatArea(arr2) local area3 = createCombatArea(arr3) setCombatArea(combat1, area1) setCombatArea(combat2, area2) setCombatArea(combat3, area3) local function onCastSpell1(parameters) return isCreature(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var) end local function onCastSpell2(parameters) return isCreature(parameters.cid) and doCombat(parameters.cid, combat2, parameters.var) end local function onCastSpell3(parameters) return isCreature(parameters.cid) and doCombat(parameters.cid, combat3, parameters.var) end function onCastSpell(cid, var) if isPlayer(cid) and exhaustion.check(cid, 120) then doPlayerSendCancel(cid, "You are exhausted.") doSendMagicEffect(playerpos, 2) return FALSE end local parameters = {cid = cid, var = var} local positions = { [1] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-5, z=getCreaturePosition(cid).z}, [2] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-6, z=getCreaturePosition(cid).z}, [3] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [4] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-1, z=getCreaturePosition(cid).z}, [5] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-2, z=getCreaturePosition(cid).z}, [6] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-3, z=getCreaturePosition(cid).z}, [7] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [8] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [9] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [10] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [11] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [12] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [13] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [14] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [15] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [16] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [17] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [18] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [19] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [20] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [21] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [22] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [23] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [24] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [25] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [26] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [27] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [28] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [29] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [30] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [31] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, [32] = {x=getCreaturePosition(cid).x-4, y=getCreaturePosition(cid).y-4, z=getCreaturePosition(cid).z}, } local function Efect1() for i=1, #positions do doSendDistanceShoot(positions[i], getCreaturePosition(cid), 26) end end local function Efect2() for i=1, #positions do doSendDistanceShoot(positions[i], getCreaturePosition(cid), 26) end end local function Efect3() for i=1, #positions do doSendDistanceShoot(positions[i], getCreaturePosition(cid), 26) end end local function Efect4() for i=1, #positions do doSendDistanceShoot(positions[i], getCreaturePosition(cid), 26) end end local position = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y+1, z=getPlayerPosition(cid).z} doSendMagicEffect(position, 75) exhaustion.set(cid, 120, 2) addEvent(onCastSpell1, 200, parameters) addEvent(onCastSpell2, 400, parameters) addEvent(onCastSpell3, 600, parameters) addEvent(Efect1, 100) addEvent(Efect2, 200) addEvent(Efect3, 300) addEvent(Efect4, 400) addEvent(Efect5, 500) return TRUE end
  12. @Sttorm local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } function onLogin(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. " Please choose your outfit." doPlayerSendOutfitWindow(cid) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account'' to manage your account and if you want to start over then type 'cancel'.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.") end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "Mail") registerCreatureEvent(cid, "TiraBattle") registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "Idle") if(config.useFragHandler) then registerCreatureEvent(cid, "SkullCheck") end registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "msm") registerCreatureEvent(cid, "AdvanceSave") registerCreatureEvent(cid, "HeartDrop") registerCreatureEvent(cid, "AmuletoDeath") registerCreatureEvent(cid, "AmuletoKill") registerCreatureEvent(cid, "Niwdeath") registerCreatureEvent(cid, "attackguild") registerCreatureEvent(cid, "StaffLogin") registerCreatureEvent(cid, "UpAbsolute") registerCreatureEvent(cid, "hmup") registerCreatureEvent(cid, "onPrepareDeathinifi") ---------- Reflect ---------------- registerCreatureEvent(cid, "reflect") if getPlayerStorageValue(cid, 3482101) ~= 0 then setPlayerStorageValue(cid, 3482101, 0) end ---------- Defensive 1 ---------------- registerCreatureEvent(cid, "defensive1") if getPlayerStorageValue(cid, 3482101) < 0 then setPlayerStorageValue(cid, 3482101, 0) end ---------- Defensive 2 ---------------- registerCreatureEvent(cid, "defensive2") if getPlayerStorageValue(cid, 3482102) < 0 then setPlayerStorageValue(cid, 3482102, 0) end ---------- PlayerPort--------------- if getPlayerStorageValue(cid, 49708) ~= 0 then setPlayerStorageValue(cid, 49708, 0) end return true end
×
Close