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

Problem with "Loading script systems" - crash

lyczos

wot.no-ip.info
Joined
Aug 31, 2007
Messages
26
Reaction score
0
Location
Europe > Poland > Lodz
hello!
I have problem with my movement script.
When I starting server I get error message "Don't send"(after "Loading script systems...")
I using TFS 0.2 Mystic Spirit
My script:
in movements.xml:
Code:
<movevent event="StepIn" actionid="61016" script="darkportal1.lua"/>
<movevent event="StepOut" actionid="61016" script="darkportal1.lua"/>

and my lua script:
Code:
 	local wallpos1 = {x=988, y=804, z=14, stackpos=1}
local wallpos2 = {x=988, y=805, z=14, stackpos=1}
local wallpos3 = {x=988, y=806, z=14, stackpos=1}
local wall1 = getThingfromPos(wallpos1)
local wall2 = getThingfromPos(wallpos2)
local wall3 = getThingfromPos(wallpos3)
local wallID = 1049 --- item id of the wall to be removed ---
function onStepIn(cid, item, position, fromPosition)

		if item.actionid == 61016 and isPlayer(cid) == TRUE then
			doRemoveItem(getThingfromPos(wallpos1).uid, 1)
			doRemoveItem(getThingfromPos(wallpos2).uid, 1)
			doRemoveItem(getThingfromPos(wallpos3).uid, 1)
			doTransformItem(item.uid, 425)
	

	end
	end

function onStepOut(cid, item, position, fromPosition)

		if item.actionid == 61016 then
            doCreateItem(wallID, 1, wallpos1)
			doCreateItem(wallID, 1, wallpos2)
			doCreateItem(wallID, 1, wallpos3)
			doTransformItem(item.uid, 426)

return TRUE
	end
	end

But when I made this
Code:
[COLOR="Red"]<!--[/COLOR]<movevent event="StepIn" actionid="61016" script="darkportal1.lua"/>
<movevent event="StepOut" actionid="61016" script="darkportal1.lua"/>[COLOR="Red"]-->[/COLOR]
Serwer is staring normal and i delete <!-- --> form movemens.xml and make RELOAD then all work fine.

@btw
can somebody give me script:
when player use item id 1945 then tp him to X position and set storageValue to 9999(example)

i have this and it doesn't work:
Code:
function onUse(cid, item, frompos, item2, topos)
player1pos = {x=964, y=787, z=14, stackpos=253}
player1 = getThingfromPos(player1pos)
nplayer1pos = {x=869, y=788, z=14}

		if item.itemid == 1945 then 				    									
				doSendMagicEffect(player1pos,2)
				doTeleportThing(cid, player1, nplayer1pos)
				doSendMagicEffect(nplayer1pos,10)
				setPlayerStorageValue(cid, 22321, 1)
				doTransformItem(item.uid,item.itemid+1)
		elseif item.itemid == 1946 then
		doSendMagicEffect(player1pos,2)
				doTeleportThing(cid, player1, nplayer1pos)
				setPlayerStorageValue(cid, 22321, 1)
				doSendMagicEffect(nplayer1pos,10)
				doTransformItem(item.uid,item.itemid-1)
		           	end
				
		
	return TRUE

end

Thanks!
 
You should change the levers to use a unique id instead of going by item id because im sure you have more than one script that uses levers.
 
Back
Top