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

Use pick summon monster

Suxex

Member
Joined
Aug 13, 2007
Messages
391
Reaction score
5
Location
Halland - Getinge
Hey there otlanders. I really need some help here. I need a script, when you use a pick on a item it will spawn some monsters.
Can someone please help me?
Thanks in advance!
 
Add this to your pick at
data/actions/scripts/tools/pick.lua
LUA:
if(itemEx.uid == 5867) then --- Put the uniqueID you will set at RME for item/floor
        local inposition = {x=92, y=114, z=7} --- Position where monster will be created
	   doTransformItem(itemEx.uid, 0) --- You want item to destroy?? If you dont then remove this line!
           doSummonMonster("Demon", inposition) ---- Change monster if you want
        return true 
end

Before return fals
 
Thanks, will try it out.

If you want several monsters to spawn, I just add a new line with:
Code:
           doSummonMonster("Demon", inposition) ---- Change monster if you want
or how do I do then?
 
It doesnt work.
doSummonMonster("Demon", inposition)

It says creauter not found and also Tile not found.

I also have another request, I want players to get a certain storage ID after using the pick 3 times. so you cant use it more then 3 times.
Please help me.
 
Last edited:
Back
Top