• 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. Aled

    Summon Commands

    oh gracious, the things that can be overlooked when somebodies brain is not switched on >.> how could I be so dumb not to realise that getSummons() might return a table very good
  2. Aled

    Problem auto death channel

    I don't know enough about your distro to be sure but this function exists: sendChannelMessage(channelId, type, message) so you could write sendChannelMessage(10, TALKTYPE_SAY, '') and, assuming it opens the channel to send the message, you would get a new line every time somebody logs in
  3. Aled

    [TFS 1.2] Send Player Items to Depot

    here you go: local slots = { CONST_SLOT_HEAD, CONST_SLOT_NECKLACE, CONST_SLOT_BACKPACK, CONST_SLOT_ARMOR, CONST_SLOT_RIGHT, CONST_SLOT_LEFT, CONST_SLOT_LEGS, CONST_SLOT_FEET, CONST_SLOT_RING, CONST_SLOT_AMMO } function onSay(player, words, param) if not player:getGroup():getAccess() then...
  4. Aled

    [TFS 1.2] Send Player Items to Depot

    the script above sends all YOUR items to YOUR depot, you want a script such as this: '/depot XXX' that sends all of player XXX items to his depot?
  5. Aled

    [TFS 1.x] Monster pick up item and throw

    Yes it seems so, thanks :P All that is needed is change if cid:getTarget() and not alreadyrock then cid:getPosition():sendDistanceEffect(cid:getTarget():getPosition(), c.disteffect) doTargetCombatHealth(cid, cid:getTarget(), c.damagetype...
  6. Aled

    [TFS 1.2] Send Player Items to Depot

    I tested it and it worked for me, that parameter was presumably for when there were separate depots for each town
  7. Aled

    [TFS 1.2] Send Player Items to Depot

    It's possible, you mean all items in all slots? Is it an action? a talk action? creature script? here is a talk action that will remove all items on your person and put them in your depot (TFS 1.x) local slots = { CONST_SLOT_HEAD, CONST_SLOT_NECKLACE, CONST_SLOT_BACKPACK, CONST_SLOT_ARMOR...
  8. Aled

    Ccript converting tfs 1.2

    I don't think the script in OP post did what he wanted What exactly DO you want Ancienciq? It's better just to tell us Anyway here you are, I think this is what you want: local function A(p) local t = {} for i = -1,1 do for j = -1,1 do table.insert(t, p + {x = i } +...
  9. Aled

    One Click and Death

    I believe what he said in his broken English is using the ring makes the player die, not equipping it That's cool, I didn't know that
  10. Aled

    Summon Commands

    Hmm, can someone tell me why this doesn't work? local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, 6) combat:setArea(createCombatArea(AREA_CIRCLE2X2)) function onGetFormulaValues(player, level, maglevel) local min =...
  11. Aled

    [TFS 1.3] !mute command

    lol my bad, os.time() is not in milliseconds change target:setStorageValue(storage,os.time()+mutetime*60*1000) to target:setStorageValue(storage,os.time()+mutetime*60) he is muted for 17 hours or so, to fix it just mute him again lol 2Rec does exactly the same thing just in a different way...
  12. Aled

    [LUA] & possibly [C++] requests - Sizaro

    If its a spear put in weapons.xml <distance id="19390" breakchance="6" unproperly="1" script="beginnerspear.lua" /> then in beginnerspear.lua put function onUseWeapon(cid, var) local level = 20 if cid:getLevel() > level then return false end return true end
  13. Aled

    [TFS 1.3] !mute command

    in talkactions put function onSay(player, words, param) local storage = 1500 local mutetime = 5 local reason = 'No reason' if not player:getGroup():getAccess() then return true end if player:getAccountType() < ACCOUNT_TYPE_GOD then return false end...
  14. Aled

    Lua Spell Condition Parameter

    just put doPlayerAddMana(cid, mana, ...) doPlayerAddManaSpent(cid, mana)
  15. Aled

    Newest Map Editor

    this is what you need OpenTibia - *UPDATED* [RME 3.2][Any Client*] Remere's Map Editor Modification 2.0
  16. Aled

    Lua Multi Boss Create Teleport tfs 1.2

    Oops sorry, I fixed it put <script> <event name="bossdeath"/> </script> in the boss monster xml and in creaturescripts.xml <event type="death" name="bossdeath" script="bossdeath.lua" />
  17. Aled

    Lua Multi Boss Create Teleport tfs 1.2

    will this do what you want? local timer = 4*60*1000 local bosses = {'Ferumbras' = Position(1000,1000,7), 'Orshabaal' = Position(1500,1500,7)} function onDeath(cid, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) if isInArray(bosses,cid:getName()) then...
  18. Aled

    Lua Multi Boss Create Teleport tfs 1.2

    Probably better to do with onDeath, is there any reason you tried to do this with onKill?
  19. Aled

    Lua Multi Boss Create Teleport tfs 1.2

    what did the original script look like what did you try and do
  20. Aled

    [TFS 1.x] Monster pick up item and throw

    Made some adjustments: fixed some things that might have caused console errors and what I believe might crash the server if monster dies with a rock wrote awesome new config monsters slows down while holding a rock monster no longer picks up or drops rock if there is already a rock under the...
Back
Top