• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Horestis boss script like real

Frostie

Mapper/basic scripter (NL)
Joined
Feb 14, 2012
Messages
447
Reaction score
425
Location
Holland
Today i release my Horestis boss script.

data/actions/actions.xml
Code:
    <action itemid="13500" event="script" value="litho/horestis.lua" />

data/actions/scripts/horestis.lua
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if item.itemid == 13500 then
        doTransformItem(item.uid, item.itemid - 5)
        doCreatureSay(cid, "Horestis has spawned!", TALKTYPE_ORANGE_1)
        doCreateMonster("horestis", {x= 1303, y= 1468, z= 7})
    end
    return TRUE
end

rtdv6q.png
 
Thanks ppl.
But this no is like global ;x

I add this for create the jar xD

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local function createjar(item, pos)
      doTransformItem(getTileItemById({x= 1303, y= 1468, z= 7}, 13495).uid,13500)
    end
   
    if item.itemid == 13500 then
        doTransformItem(item.uid, item.itemid - 5)
        doCreatureSay(cid, "Horestis has spawned!", TALKTYPE_ORANGE_1)
        doCreateMonster("horestis", {x= 1303, y= 1468, z= 7})
        addEvent(createjar, 60*1000, cid)
    end
    return TRUE
end

Test xD
 
how do I add thow do I add to the chance of not breaking the jar and the player can only try to break it after 1 hour?o the chance of not breaking the jar and the player can only try to break it after 1 hour?
 
@FabianoBN

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local function createjar(fItem, tItem, pos)
doTransformItem(getTileItemById(pos, fItem).uid, tItem)
end

doTransformItem(item.uid, item.itemid - 5)
doCreatureSay(cid, "Horestis has spawned!", TALKTYPE_ORANGE_1)
doCreateMonster("horestis", {x= 1303, y= 1468, z= 7})
addEvent(createjar, 60*1000, 13495, 13500, pos)
return TRUE
end

Also please stop using PHP code for Lua, its look so bad.
Hope OTLand give us back Lua code some day...
 
Back
Top