• 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!

Players forcing raid with item

Swiff

Member
Joined
Apr 6, 2009
Messages
366
Reaction score
12
Location
Sweden
I just had an idea to go about when server is crowded and raids have a long delay before being launched.

How about an item that forces a certain raid to start?
This was players that are looking for those rare raid spawns can (by hardships ofc) force a certain raid with a certain item.

I would like to implement such an item to my server, just not sure how to go about it. Making an onuse script with a /raid talkaction seems a bit foggy to me.
Maybe there's a more simple way?
 
This is written in browser, actions script:

<action itemid="7762" event="script" value="raid_execution.lua"/>

Lua:
local raidName = "Ferumbras"

function onUse(cid, item, fromPosition, itemEx, toPosition)
executeRaid(raidName)
doCreatureSay(cid, "I start ".. raidName .." raid now!", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
end
 
Back
Top