MoveEvent Script! Restart POI...

alaska91

New Member
Joined
Oct 17, 2009
Messages
2
Best answers
0
Reaction score
0
I greet script made want to present by only me :)

Create file ending.lua and we insert it for it:
Code:
--Script by alaska91--
function onStepIn(cid, item, frompos, item2, topos) 
	deska1 = [COLOR="Blue"]{x=408, y=1389, z=10, stackpos=1}[/COLOR]
	plomien1 = [COLOR="blue"]{x=438, y=1386, z=10, stackpos=1}[/COLOR]
	plomien2 = [COLOR="blue"]{x=440, y=1386, z=10, stackpos=1}[/COLOR]
	plomien3 = [COLOR="blue"]{x=442, y=1386, z=10, stackpos=1}[/COLOR]
	plomien4 = [COLOR="blue"]{x=444, y=1386, z=10, stackpos=1}[/COLOR]
	dzwignia1 = [COLOR="blue"]{x=450, y=1412, z=11, stackpos=1}[/COLOR]
	getdzwignia1 = getThingfromPos(dzwignia1)
	dzwignia2 = [COLOR="blue"]{x=454, y=1385, z=12, stackpos=1}[/COLOR]
	getdzwignia2 = getThingfromPos(dzwignia2)
	dzwignia3 = [COLOR="blue"]{x=493, y=1390, z=12, stackpos=1}[/COLOR]
	getdzwignia3 = getThingfromPos(dzwignia3)
	dzwignia4 = [COLOR="Blue"]{x=460, y=1412, z=13, stackpos=1}[/COLOR]
	getdzwignia4 = getThingfromPos(dzwignia4)
	dzwignia5 = [COLOR="blue"]{x=457, y=1419, z=12, stackpos=1}[/COLOR]
	getdzwignia5 = getThingfromPos(dzwignia5)
	dzwignia6 = [COLOR="blue"]{x=467, y=1417, z=12, stackpos=1}[/COLOR]
	getdzwignia6 = getThingfromPos(dzwignia6)
	dzwignia7 = [COLOR="blue"]{x=481, y=1407, z=13, stackpos=1}[/COLOR]
	getdzwignia7 = getThingfromPos(dzwignia7)
	dzwignia8 = [COLOR="blue"]{x=481, y=1387, z=11, stackpos=1}[/COLOR]
	getdzwignia8 = getThingfromPos(dzwignia8)
	dzwignia9 = [COLOR="blue"]{x=498, y=1381, z=13, stackpos=1}[/COLOR]
	getdzwignia9 = getThingfromPos(dzwignia9)
	dzwignia10 = [COLOR="blue"]{x=450, y=1405, z=13, stackpos=1}[/COLOR]
	getdzwignia10 = getThingfromPos(dzwignia10)
	dzwignia11 = [COLOR="blue"]{x=496, y=1402, z=14, stackpos=1}[/COLOR]
	getdzwignia11 = getThingfromPos(dzwignia11)
	dzwignia12= [COLOR="blue"]{x=494, y=1383, z=11, stackpos=1}[/COLOR]
	getdzwignia12 = getThingfromPos(dzwignia12)
	dzwignia13 = [COLOR="blue"]{x=453, y=1371, z=11, stackpos=1}[/COLOR]
	getdzwignia13 = getThingfromPos(dzwignia13)
	dzwignia14 = [COLOR="blue"]{x=494, y=1408, z=12, stackpos=1}[/COLOR]
	getdzwignia14 = getThingfromPos(dzwignia14)
	kamien1 = [COLOR="blue"]{x=458, y=1386, z=11, stackpos=1}[/COLOR]
	kamien2 = [COLOR="blue"]{x=459, y=1386, z=11, stackpos=1}[/COLOR]
	dzwigniaID = [COLOR="red"]1945[/COLOR]
	kamienID = [COLOR="red"]1304[/COLOR]
	if item.uid == [COLOR="lime"]10284[/COLOR] then
		doCreateItem(493,1,deska1)
		doCreateItem(6289,1,plomien1)
		doCreateItem(6289,1,plomien2)
		doCreateItem(6289,1,plomien3)
		doCreateItem(6289,1,plomien4)
		doRemoveItem(getdzwignia1.uid,1)
		doRemoveItem(getdzwignia2.uid,1)
		doRemoveItem(getdzwignia3.uid,1)
		doRemoveItem(getdzwignia4.uid,1)
		doRemoveItem(getdzwignia5.uid,1)
		doRemoveItem(getdzwignia6.uid,1)
		doRemoveItem(getdzwignia7.uid,1)
		doRemoveItem(getdzwignia8.uid,1)
		doRemoveItem(getdzwignia9.uid,1)
		doRemoveItem(getdzwignia10.uid,1)
		doRemoveItem(getdzwignia11.uid,1)
		doRemoveItem(getdzwignia12.uid,1)
		doRemoveItem(getdzwignia13.uid,1)
		doRemoveItem(getdzwignia14.uid,1)
	end
	if item.uid == [COLOR="Lime"]10284[/COLOR] then
		doCreateItem(dzwigniaID,1,dzwignia1)
		doCreateItem(dzwigniaID,1,dzwignia2)
		doCreateItem(dzwigniaID,1,dzwignia3)
		doCreateItem(dzwigniaID,1,dzwignia4)
		doCreateItem(dzwigniaID,1,dzwignia5)
		doCreateItem(dzwigniaID,1,dzwignia6)
		doCreateItem(dzwigniaID,1,dzwignia7)
		doCreateItem(dzwigniaID,1,dzwignia8)
		doCreateItem(dzwigniaID,1,dzwignia9)
		doCreateItem(dzwigniaID,1,dzwignia10)
		doCreateItem(dzwigniaID,1,dzwignia11)
		doCreateItem(dzwigniaID,1,dzwignia12)
		doCreateItem(dzwigniaID,1,dzwignia13)
		doCreateItem(dzwigniaID,1,dzwignia14)
		doCreateItem(kamienID,1,kamien1)
		doCreateItem(kamienID,1,kamien2)
	end
	return 1
end
add line in:
movements.xml
Code:
    	<movement type="StepIn" uniqueid="10284" event="script" value="PitsOfInferno/ending.lua" />
add map editor unique:
10284

ok its end ;D

yes PL ;]

alaska91
 
Last edited:

chojrak

Banned User
Joined
Oct 25, 2008
Messages
5,832
Best answers
2
Reaction score
158
Please explain variables for noobz or gtfo ;o
 

hansito78

New Member
Joined
Nov 30, 2009
Messages
1
Best answers
0
Reaction score
0
works to perfection but there is a problem when you change levers (doCreateItem) erases the uniqueid could fix it if it can

ptra thing I get an error when he stepped on the floor luaDoCreateItem (). Tile not found

[04/12/2009 01:57:09] Lua Script Error: [MoveEvents Interface]
[04/12/2009 01:57:09] data / movements / scripts / ending.lua: onStepIn
 

wiccan

New Member
Joined
Oct 11, 2009
Messages
26
Best answers
0
Reaction score
0
loop pleaseeeeeeeeeeeeeeeeeeeeeee
 

FabianoBN

l|¬¬"|l
Joined
Jan 23, 2009
Messages
745
Best answers
0
Reaction score
21
Location
Goias - Brazil
plomien1 = {x=438, y=1386, z=10, stackpos=1}
plomien2 = {x=440, y=1386, z=10, stackpos=1}
plomien3 = {x=442, y=1386, z=10, stackpos=1}
plomien4 = {x=444, y=1386, z=10, stackpos=1}
this is part of the levers of vocations?
 
Top