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

Fix erroR!!!

chricke90

New Member
Joined
Sep 14, 2007
Messages
51
Reaction score
0
The error I got is
Code:
Warning: [Event::loadScript] Event onStepOut not found. data/movements/scripts/warriorq_strange1.lua.

And this is the script.
Code:
function onStepIn(cid, item, pos, frompos, item2, topos)

gatepos = {x=33016, y=32807, z=6, stackpos=2}
getgate = getThingfromPos(gatepos)

		
		if isPlayer(cid) == TRUE then
        if getPlayerStorageValue(cid,44447) == 1 and item.actionid == 14499 and getgate.itemid == 0 then
				doCreateItem(1499,1,gatepos)
				doTransformItem(item.uid,item.itemid-1)
			    doCreatureSay(cid, "OMG, WHAT HAVE YOU DONE YOUR IDIOT!", TALKTYPE_ORANGE_1)
				
monster1pos = {x=33015, y=32809, z=6} -- jugge
monster2pos = {x=33014, y=32808, z=6} -- jugge
monster3pos = {x=33013, y=32808, z=6} -- demon
monster4pos = {x=33013, y=32809, z=6} -- nightmare
monster5pos = {x=33012, y=32809, z=6} -- demon
doSummonCreature("Juggernaut", monster1pos)
doSummonCreature("Juggernaut", monster2pos)
doSummonCreature("Demon", monster3pos)
doSummonCreature("Nightmare", monster4pos)
doSummonCreature("Demon", monster5pos)
else
            doCreatureSay(cid, "There is something wierd with me HELP!", TALKTYPE_ORANGE_1)
end
end

function onStepOut(cid, item, frompos, item2, topos)

gatepos = {x=33016, y=32807, z=6, stackpos=2}
getgate = getThingfromPos(gatepos)

if item.actionid == 14499 and getgate.itemid == 1499 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
end

Movements.
Code:
	<movevent event="StepIn" actionid="14499" script="warriorq_strange1.lua" />
	<movevent event="StepOut" actionid="14499" script="warriorq_strange1.lua" />

Does I need to make diffrent scripts for them?.. I meant seperate them?..
 
Code:
function onStepIn(cid, item, pos, frompos, item2, topos)
	local gatepos = {x=33016, y=32807, z=6, stackpos=2}
	local getgate = getThingfromPos(gatepos)	
	if isPlayer(cid) == TRUE then
		if getPlayerStorageValue(cid,44447) == 1 and item.actionid == 14499 and getgate.itemid == 0 then
			doCreateItem(1499,1,gatepos)
			doTransformItem(item.uid,item.itemid-1)
			doCreatureSay(cid, "OMG, WHAT HAVE YOU DONE YOUR IDIOT!", TALKTYPE_ORANGE_1)			
			local monster1pos = {x=33015, y=32809, z=6} -- jugge
			local monster2pos = {x=33014, y=32808, z=6} -- jugge
			local monster3pos = {x=33013, y=32808, z=6} -- demon
			local monster4pos = {x=33013, y=32809, z=6} -- nightmare
			local monster5pos = {x=33012, y=32809, z=6} -- demon
			doSummonCreature("Juggernaut", monster1pos)
			doSummonCreature("Juggernaut", monster2pos)
			doSummonCreature("Demon", monster3pos)
			doSummonCreature("Nightmare", monster4pos)
			doSummonCreature("Demon", monster5pos)
		else
            doCreatureSay(cid, "There is something wierd with me HELP!", TALKTYPE_ORANGE_1)
		end
	end
	return TRUE
end

function onStepOut(cid, item, frompos, item2, topos)
	local gatepos = {x=33016, y=32807, z=6, stackpos=2}
	local getgate = getThingfromPos(gatepos)
	if item.actionid == 14499 and getgate.itemid == 1499 then
		doRemoveItem(getgate.uid,1)
		doTransformItem(item.uid,item.itemid+1)
	else
		doPlayerSendCancel(cid,"Sorry not possible.")
	end
end

there you go
 
Code:
function onStepIn(cid, item, pos, frompos, item2, topos)
	local gatepos = {x=33016, y=32807, z=6, stackpos=2}
	local getgate = getThingfromPos(gatepos)	
	if isPlayer(cid) == TRUE then
		if getPlayerStorageValue(cid,44447) == 1 and item.actionid == 14499 and getgate.itemid == 0 then
			doCreateItem(1499,1,gatepos)
			doTransformItem(item.uid,item.itemid-1)
			doCreatureSay(cid, "OMG, WHAT HAVE YOU DONE YOUR IDIOT!", TALKTYPE_ORANGE_1)			
			local monster1pos = {x=33015, y=32809, z=6} -- jugge
			local monster2pos = {x=33014, y=32808, z=6} -- jugge
			local monster3pos = {x=33013, y=32808, z=6} -- demon
			local monster4pos = {x=33013, y=32809, z=6} -- nightmare
			local monster5pos = {x=33012, y=32809, z=6} -- demon
			doSummonCreature("Juggernaut", monster1pos)
			doSummonCreature("Juggernaut", monster2pos)
			doSummonCreature("Demon", monster3pos)
			doSummonCreature("Nightmare", monster4pos)
			doSummonCreature("Demon", monster5pos)
		else
            doCreatureSay(cid, "There is something wierd with me HELP!", TALKTYPE_ORANGE_1)
		end
	end
	return TRUE
end

function onStepOut(cid, item, frompos, item2, topos)
	local gatepos = {x=33016, y=32807, z=6, stackpos=2}
	local getgate = getThingfromPos(gatepos)
	if item.actionid == 14499 and getgate.itemid == 1499 then
		doRemoveItem(getgate.uid,1)
		doTransformItem(item.uid,item.itemid+1)
	else
		doPlayerSendCancel(cid,"Sorry not possible.")
	end
end

there you go

Omfg you're sick how fast did you realized my fault :S ? :D
 
Ey dude, I'm now see there is now "Rush Wood apearing or monsters when I stepin or out. Monsters should be spawned at stepin and a rushwood should be apearing also!
 
Back
Top