• 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

    onspawn

    Well that's exactly what I told him to do should achieve EDIT: well ok theres a little more, one sec EDIT: change your shit to this: hunterconfig = { respawntime = 2*60*1000 chance2 = 25, chance3 = 10, chance4 = 5, monster1 = 'Hunter', monster2 = 'Hunter2', monster3 =...
  2. Aled

    onspawn

    So I think I understand what you're getting at: if the player in the zone is under level 15, you want only hunters to spawn if he is greater than 15 then hunter1 can spawn too, if he is greater than 16 then hunter2 can spawn, if he is greater than 20 then hunter2 can spawn, and if he is greater...
  3. Aled

    onspawn

    You really need to improve your English I can't even get started if I don't know what you want to happen EDIT: explain in your native tongue, maybe google translate can save us EDIT: unless your native tongue is English then we're screwed
  4. Aled

    onspawn

    I'm sorry I really, really don't know what you are asking for
  5. Aled

    onspawn

    what in tarnation do you mean by "chose between 4 hunters with chance"?
  6. Aled

    onspawn

    You need a creaturescript, put <script> <event name="hunterspawn"/> </script> in hunter.xml and hunter2.xml then <event type="death" name="hunterspawn" script="hunterspawn.lua" /> in creaturescripts.xml then in hunterspawn.lua function onDeath(cid, corpse, killer...
  7. Aled

    onspawn

    In fact he doesn't even need to do this, all he really needs is the creaturescript, I will do it in a minute EDIT: actually yes he does, since there no other way I can think of to avoid double spawning..
  8. Aled

    Question

    Something like this? local p = Player("Admin") local pos = item:getPosition() p:sendTextMessage(MESSAGE_INFO_DESCR, "An error occured at: x = "..pos.x..", y = "..pos.y..", z = "..pos.z..".",) You should not be accommodating errors
  9. Aled

    onspawn

    This is probably not the correct way to achieve what you want, instead make a globalevent: <globalevent type="startup" name="hunters" script="hunters.lua" /> local config = { chance = 40, monster = 'Hunter' boss = 'Hunter2' } local hunterpos = { {x=1000,y=1000,z=7}...
  10. Aled

    Lua Distance weapon adds DoT?

    Sorry replace CONST_SLOT_ARROW with CONST_SLOT_AMMO I am not as smart as I think I am
  11. Aled

    Lua Distance weapon adds DoT?

    function onUseWeapon(player, variant) local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BURSTARROW) combat:setParameter(COMBAT_PARAM_BLOCKARMOR, true)...
  12. Aled

    Lua Spell Problem

    Hahaha I would do it myself but I am just doing something else at the moment Karofel, what exactly do you want the spell to do? I could make it from scratch
  13. Aled

    Lua Spell Problem

    I knew that but after a brief glance at the script I suspected that was where the issue was raised and I thought the explanation was sufficient I am not sure what the problem is currently though I do not know why you have function onCastSpell(player, var, cid) instead of just function...
  14. Aled

    Lua Spell Problem

    addevent should look like this: addEvent(callback, delay) instead you seem to have addEvent(func1, delay, func2(arg1, arg2), cid, startPos)
  15. Aled

    need help with monster look type

    Yes you are right, this line comes from dark_apprentice.xml: <defense name="outfit" interval="2000" chance="5" target="1" monster="green frog" duration="3000" />
  16. Aled

    need small help please in this script

    It's good that you told us what distro you were using and gave us your script but next time put it in It would also help if you gave us some more information, why doesn't it work? what error do you get? what else do you want it to do? It seems you aren't using doSummonMonster(name, pos)...
  17. Aled

    need help with monster look type

    Firstly I don't think this is the right place to ask questions Secondly it would help to know what distro you are using Unless theres a way to do it in XML I would imagine what you want is a creaturescript so put: <script> <event name="changelook"/> </script> in your monster...
  18. Aled

    NPC - When all task finish

    Not hard, I am just being stupid and putting things in the wrong place.. It has been a long day local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local xmsg = {} function onCreatureAppear(cid)...
  19. Aled

    NPC - When all task finish

    Sorry I meant to do this: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local xmsg = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid)...
Back
Top