Morlad
Mega USER
The script:
hmm ... Anyone who played the RL should be familiar with this bridge
Operation is simple with two levers, we can open or close ("disappear") bridge
We enter the actions / script and create a file called rats.lua
Paste to him:
|--------|
Actions.xml
Add to :
SS
EXPLICATIONS
hmm ... Anyone who played the RL should be familiar with this bridge
Operation is simple with two levers, we can open or close ("disappear") bridge
We enter the actions / script and create a file called rats.lua
Paste to him:
PHP:
local posi3 = {x=301, y=287, z=8} --
poss = {
[1] = {x=159, y=108, z=7},
[2] = {x=160, y=108, z=7},
[3] = {x=161, y=108, z=7}
}
local lever = {
[1] = {x=158, y=107, z=7},
[2] = {x=164, y=107, z=7}
}
local itemids = 5770
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1945 then
doCreateItem(itemids,poss[2])
if getTileItemById(poss[1],4645).itemid ~= nil then
doTransformItem(getTileItemById(poss[1],4645).uid,itemids)
end
if getTileItemById(poss[3],4647).itemid > 0 then
doTransformItem(getTileItemById(poss[3],4647).uid,itemids)
end
for i=1,#lever do
if lever[i].x == fromPosition.x then
o = i
end
end
if o == 1 then
b = 2
else
b = 1
end
doTransformItem(item.uid,item.itemid+1)
doTransformItem(getTileItemById(lever[b],1945).uid,1946)
elseif item.itemid == 1946 then
for p = 1,#poss do
doRelocate(poss[p], posi3)
end
for z =1,#poss do
poss[z].stackpos = 254
if getThingFromPos(poss[z]).itemid > 1000 then
doRemoveItem(getThingFromPos(poss[z]).uid)
end
poss[z].stackpos = 1
if getThingFromPos(poss[z]).itemid > 1000 then
doRemoveItem(getThingFromPos(poss[z]).uid)
end
end
for i=1,#lever do
if lever[i].x == toPosition.x then
o = i
end
end
if o == 1 then
b = 2
else
b = 1
end
doCreateItem(4616,poss[2])
doCreateItem(351,poss[1])
doCreateItem(351,poss[3])
doCreateItem(4645,poss[1])
doCreateItem(4647,poss[3])
doTransformItem(item.uid,item.itemid-1)
doTransformItem(getTileItemById(lever[b],1946).uid,1945)
end
return TRUE
end
|--------|
Actions.xml
Add to :
PHP:
<action actionid="Action" event="script" value="rats.lua" />
SS
EXPLICATIONS
POLAND
Most po kliknieciu na most w wyznaczonym id. most upuszcza się... pewnie zadajecie se pytanie co sie dzieje z graczami którzy na nim stana i zamknie się.. most/
-teleportuje ich na drógą strone..
ENG
Bridge when you click on the bridge within the id. bridge is released ... You ask a question probably se what happens to players who will stand on it and shut up .. bridge /
-teleport them on the road page ..
Last edited: