Indenpedens
Banned User
Hi![Big Grin :D :D](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
This is a part of blue legs quest
If you select a good configuration of statues stairs will appear
in data\actions\scripts create bluelegs_stairs.lua and paste:
in actions.xml add:
and you must set Unique ID on the map on this item:
This is a part of blue legs quest
If you select a good configuration of statues stairs will appear
in data\actions\scripts create bluelegs_stairs.lua and paste:
Code:
function onUse(cid, item, frompos, item2, topos)
local stat1 = {x=33281, y=32442, z=8, stackpos=1}
local stat2 = {x=33286, y=32444, z=8, stackpos=1}
local stat3 = {x=33284, y=32450, z=8, stackpos=1}
local stat4 = {x=33278, y=32450, z=8, stackpos=1}
local stat5 = {x=33276, y=32444, z=8, stackpos=1}
orlacepos = {x=33284, y=32476, z=8}
schodypos = {x=33273, y=32458, z=8}
schody2pos = {x=33273, y=32459, z=8}
local statuetka1 = getThingFromPos(stat1)
local statuetka2 = getThingFromPos(stat2)
local statuetka3 = getThingFromPos(stat3)
local statuetka4 = getThingFromPos(stat4)
local statuetka5 = getThingFromPos(stat5)
if item.uid == 9900 then
if statuetka1.itemid == 3698 and statuetka2.itemid == 3698 and statuetka3.itemid == 3697 and statuetka4.itemid == 3697 and statuetka5.itemid == 3697 then
doRemoveItem(statuetka1.uid,3697)
doRemoveItem(statuetka2.uid,3697)
doRemoveItem(statuetka3.uid,3697)
doRemoveItem(statuetka4.uid,3697)
doRemoveItem(statuetka5.uid,3697)
doCreateItem(7525,1,schodypos)
doCreateItem(7521,1,schody2pos)
doCreateItem(1448,1,orlacepos)
doPlayerSendTextMessage(cid,22,"Oh, there are stairs!")
else
doPlayerSendTextMessage(cid,26,"Bad configuration")
end
return 1
end
end
in actions.xml add:
Code:
<action uniqueid="xxxx" event="script" value="bluelegs_stairs.lua" />
and you must set Unique ID on the map on this item:
![HmnHFU1.jpg](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FHmnHFU1.jpg&hash=7cd9b39cceff3a2a3474bbb30565083d)