Koci1994
Banned User
- Joined
- Dec 27, 2008
- Messages
- 807
- Reaction score
- 1
Mam taki problem z qestem bo jak ide na inquisition to tam sa takie pomieszczenia z bosami i jest wajha ktora jak sie pociagnien to sie sciana do teleportu usuwa ale jak posiagne ta wajche to pisze mi
Uzywam takiego skryptuYou need to place the corpse of the slain demon lord
Wiec w czym jest problem .function onUse(cid, item, frompos, item2, topos)
local switchUniqueID = 12614 -- Wajha ma takie Unique ID
local switchID = 1945
local switch2ID = 1946
local itemID = 5527
local itempos = {x=501, y=2080, z=7, stackpos=1} -- tu wpisalem pozycje tego pola co jest obok wajchy taki przycisk
local wallpos = {x=499, y=2081, z=7, stackpos=1} --pozycja scainy ktora ma usunac
local playername = getPlayerName(cid)
local getitem = getThingfromPos(itempos)
local wallchk = getThingfromPos(wallpos)
if item.uid == switchUniqueID and item.itemid == switchID and getitem.itemid == itemID and wallchk.itemid == 1034 then
doSendMagicEffect(itempos,10)
doSendMagicEffect(wallchk,10)
doRemoveItem(getitem.uid,1)
doRemoveItem(wallchk.uid,1)
doTransformItem(item.uid,item.itemid+1)
addEvent(onTimer1, 2*60*1000)
elseif item.uid == switchUniqueID and item.itemid == switch2ID then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"You need to place the corpse of the slain demon lord.")
end
return 1
end
function onTimer1()
wallnewpos = {x=499, y=2081, z=7} - A tu wpisalem Pozycje tego miesjac gdzie ma powstac sciana po 2 pociagnieciach wajcha
doCreateItem(1034,1,wallnewpos)
end