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

I need the script for step in monster summon

Ussef

New Member
Joined
May 27, 2009
Messages
123
Reaction score
2
me and my friend just tried to do it but guess what it worked on him but when he gave it to me it doesnt work...
Code:
local t = {
	storage = 32000,
	interval = 45,
	monster = {"Butter Guardian", {x=120, y=656, z=7}},
	msg = "NOT SO FAST!"
}
function onStepIn(cid, item, position, fromPosition)
	if os.difftime(os.time(), getGlobalStorageValue(t.storage)) >= t.interval then       
		doCreatureSay(cid, t.msg, TALKTYPE_ORANGE_1)
		doSummonCreature(t.monster[1], t.monster[2])
		setGlobalStorageValue(t.storage, os.time())
	end
end
and in actions xml i put
Code:
<movevent type="StepIn" uniqueid="25567" event="script" value="Guard.lua"/>

Any help please fast:)

maybe storage ??
 
Last edited:
LUA:
local t = {

	storage = 32000,
	interval = 45,
	monster = {"Butter Guardian", {x=120, y=656, z=7}},
	msg = "NOT SO FAST!"
}
function onStepIn(cid, item, position, fromPosition)
	if os.difftime(os.time(), getGlobalStorageValue(t.storage)) >= t.interval then       
		doCreatureSay(cid, t.msg, TALKTYPE_ORANGE_1)
		doSummonCreature(t.monster[1], t.monster[2])
		setGlobalStorageValue(t.storage, os.time())
	end
return TRUE
end

test like this it should work


or cant this work?:

LUA:
local t = {
              charpos = {x=xxx, y=yyy, z=z},
	storage = 32000,
	interval = 45,
	monster = {"Butter Guardian", {x=120, y=656, z=7}},
	msg = "NOT SO FAST!"
}
function onStepIn(cid, item, position, fromPosition)
	if os.difftime(os.time(), getCreaturePosition(t.charpos)) >= t.interval then       
		doCreatureSay(cid, t.msg, TALKTYPE_ORANGE_1)
		doSummonCreature(t.monster)
		setGlobalStorageValue(t.storage, os.time())
	end
return TRUE
end
this might work idk
 
Last edited:
Back
Top