• 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

    Lua Blue Arrow when drop item rare

    if anyone is interested I wrote this for TFS 1.x but you can set what loot rate to notify players local effect = CONST_ME_TUTORIALARROW -- magic effect local chance = 5 -- magic effect for item that drops less than 5% of the time function onLogin(player) player:registerEvent('rarelootkill')...
  2. Aled

    [C++ / LUA] Loot rate or chance

    yeah I wasn't sure, to lazy to check just made assumptions do this instead <event type="kill" name="bonuslootkill" script="bonusloot.lua"/> <event type="death" name="bonusloot" script="bonusloot.lua"/> local BONUS_RATE = 3 -- 1 normal loot, 2 double loot etc function onKill(player...
  3. Aled

    [C++ / LUA] Loot rate or chance

    use an onequip movement event to register this creature event with that item local BONUS_RATE = 3 function onKill(player, target, lastHit) if target:isMonster() then local newLoot = {} for i, k in pairs(Monster(target):getType():getLoot()) do newLoot[i] = k...
  4. Aled

    Problem adding actionid on key in quest chest

    doSetItemActionId(uid, actionId) is this what you need? post more of the script and ill tell you where to put it, it doesn't look quite right
  5. Aled

    Lever that requires players on tile.

    funny co-inkidink I had 0.3.6 (Crying Damson) on my laptop from a long time ago, so you're in luck (not that I couldn't have helped you but this makes it easier anyway) this is the annihilator.lua I plucked from there local config = { daily = "no", -- allow only one enter per day? (like in...
  6. Aled

    C++ players walk speed

    what distro usually player base speed is in vocations.xml <vocation id="0" clientid="0" name="None" description="none" gaincap="10" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" basespeed="220"...
  7. Aled

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

    idk just to be sure :P good information I am sorry, change line: local name = param:match('%a+') for local name = param:match('%P+')
  8. Aled

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

    spat my drink out.. for now, put function onThink(cid, interval) local cpos = cid:getPosition() if not cid:getMaster() then print('ERROR:'..cid:getName()..' removed at '..cpos.x..' '..cpos.y..' '..cpos.z..' for having no master') cid:remove() return true end...
  9. Aled

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

    lol well I don't know why apocalypse didn't like you maybe its because has flag summonable = 0 in creature xml? here is updated script for manacost and level req --------- CONFIG ------ local summonables = { ['Rat'] = {mana = 60, level = 10}, -- rat costs 60 mana and you must be level 10 to...
  10. Aled

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

    Wow sorry I made a mistake! if cid:getTarget() and not alreadyrock then if cid:getPosition():isSightClear(cid:getTarget():getPosition()) then cid:getPosition():sendDistanceEffect(cid:getTarget():getPosition(), c.disteffect)...
  11. Aled

    Player dont drop items even if i dont have aol.

    what distro you changed something in droploot.lua in creaturescripts
  12. Aled

    One Click and Death

    function onUse(player, item, fromPosition, target, toPosition, isHotkey) if player:getSlotItem(CONST_SLOT_RING) == item then player:addHealth(-player:getMaxHealth()) return true end return false end
  13. Aled

    Ccript converting tfs 1.2

    well thats what the script in your original post did :P if you don't want any magic effects then all you need is function onDeath(creature, corpse, killer) if creature:isPlayer() and killer:isPlayer() then local position = creature:getPosition() local text = " rekt by " ...
  14. Aled

    Problem auto death channel

    no function onLogin(cid) doPlayerOpenChannel(cid,10) return true end is all you need or you could add only this line doPlayerOpenChannel(cid,10) to your existing login.lua if there already is one in your creaturescripts folder also: How to display CODE properly in your post
  15. Aled

    Problem auto death channel

    May I ask where did you have to look to find that function
  16. Aled

    Summon Commands

    I believe that is a matter of what is in spells.xml but I could be wrong If not, if all you want is a single target HMM type spell then it can be handled differently
  17. Aled

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

    It's probably best done in source code but I reckon you could handle all that in LUA Ok so, if you handle utevo res as a talk action like this <talkaction words="utevo res" separator=" " script="summonmonster.lua" /> local summonables = { 'Rat', 'Bat', 'Cat' } local sum = {} for _...
  18. Aled

    Summon Commands

    in regards to your question, instead of createCombatArea(AREA_SQUARE1X1) put createCombatArea({1}) and see what happens EDIT: sorry for double posting, I thought I was editing the previous one
  19. Aled

    Ccript converting tfs 1.2

    Hey it works :p It isn't likely to bother OP since he was looking for a plug and play script anyway and I made it local so it shouldn't interfere with anything else right?
Back
Top