• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. aqubjukr

    Lua Loot channel only for premium players

    function canJoin(player) return player:isPremium() end
  2. aqubjukr

    Lua Loot channel only for premium players

    try this: (loot.lua) function onLogin(cid) local player = Player(cid) if player:isPremium() then player:openChannel(9) end return true end
  3. aqubjukr

    Mapper Free map service.

    I think a custom battlefield map would be nice. 🙃
  4. aqubjukr

    Lua magic wand add action id

    I think the easiest thing to do for this case, would be to create a script in the actions folder. In it you would add all the items normally, but in the items you want for an AID, you can use a math.random to do this. Example: local chance = math.random(1, 10) Check the chance: if chance == 1...
  5. aqubjukr

    [HELP] Some initial quest for new players!

    A recommendation, use this if to not to be giving the quest every login ^^ if player:getLastLoginSaved() == 0 then
  6. aqubjukr

    [HELP] Some initial quest for new players!

    In creaturescripts, you can either create a .lua file or directly in login.lua But I don't recommend using the script marked "best answer" because many missions aren't complete yet. And the player can complete a quest (like: yalaharian) and can redo on login.
  7. aqubjukr

    TFS 1.X+ Script give random exp?

    >=
  8. aqubjukr

    Lua Remove percentage of player's health

    Sorry, now will be right. local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE) combat:setArea(createCombatArea({ {0, 1, 1, 1, 0}, {1, 1, 1, 1, 1}, {1, 1, 3, 1, 1}, {1, 1, 1, 1, 1}, {0, 1, 1, 1, 0}, }))...
  9. aqubjukr

    Lua Remove percentage of player's health

    Only invert the line 14 and 15. local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE) combat:setArea(createCombatArea({ {0, 1, 1, 1, 0}, {1, 1, 1, 1, 1}, {1, 1, 3, 1, 1}, {1, 1, 1, 1, 1}, {0, 1, 1, 1, 0}...
  10. aqubjukr

    Lua Remove percentage of player's health

    isMonster( ) ? You need to set isPlayer() in script. Other change, you need to set a damage, like: doTargetCombatHealth(0, tile:getTopCreature(), COMBAT_DROWNDAMAGE, -damage, -damage, CONST_ME_NONE) EDIT: Other change that i saw, script is limiting to one monster. if...
  11. aqubjukr

    TFS 1.X+ regeneration mp/hp for vip

    As he said, os.time () is usually used, then the correct one would be: getStorageValue (161398) > os.time () Try use this: getStorageValue (161398) > os.time ()
  12. aqubjukr

    TFS 1.X+ regeneration mp/hp for vip

    Did you register the script in login.lua? If isn't registered, it won't work.
  13. aqubjukr

    TFS 1.X+ regeneration mp/hp for vip

    You need to create a script, ex: regen.lua in data/creaturescripts/scripts, and put the script that i've said. You'll need to register the script in creaturescripts.xml, like: <event type="login" name="regenStorage" script="regen.lua"/> The last step, is to register the script on your server's...
  14. aqubjukr

    TFS 1.X+ regeneration mp/hp for vip

    Creaturescripts: local regenCondition = Condition(CONDITION_REGENERATION, CONDITIONID_DEFAULT) regenCondition:setTicks(-1) regenCondition:setParameter(CONDITION_PARAM_HEALTHGAIN, 15) regenCondition:setParameter(CONDITION_PARAM_HEALTHTICKS, 2000)...
  15. aqubjukr

    Lua Remove percentage of player's health

    You'll need to create a spell using a param: setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile") And you'll need to create the function onTargetTile, and put this: local damage = ((tile:getTopCreature():getMaxHealth())*60)/100 To set your damage :rolleyes:
  16. aqubjukr

    Lua Remove percentage of player's health

    I'm testing what i've said to create it too for my server. So I ended up seeing what was wrong, the correct damage calculation would be: local damage = ((tile:getTopCreature():getMaxHealth())*60)/100 tile:getTopCreature() is my "creature", you can change this, according your spell.
  17. aqubjukr

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    I'm not aware of dealing with monsters in revscript, my only thought would be the tag:monster.script = rewardboss.lua But if that doesn't work, I won't be able to help you. :/
  18. aqubjukr

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    Are you registering the script in the boss tag? ex: script = "rewardboss.lua" Another thing, are you sure that the flag corresponds to the reward boss is: rewardboss = "true"? Bcos, in general, "1" is used to set as "TRUE", like: <flag rewardboss = "1" />
  19. aqubjukr

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    If you are trying to open with a group account it will not work. The script works only with "normal" accounts, so that the participation of ADMs isn't counted.
  20. aqubjukr

    Lua Remove percentage of player's health

    You'll need to create a spell using a param: setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile") And you'll need to create the function onTargetTile, and put this: local damage = (creature:getMaxHealth())/60 To set your damage
Back
Top