• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

PROSZĘ o pomoc ze skryptem.

Koci1994

Banned User
Joined
Dec 27, 2008
Messages
807
Reaction score
1
Udało mi sie juz niezły kawałek tego skryptu skleić :
Code:
function onUse(cid, item, frompos, item2, topos) 
gatepos = {x=1657, y=410, z=15, stackpos=1} 
switchpos = {x=1672, y=409, z=15, stackpos=1}
getgate = getThingfromPos(gatepos)
getswitchpos = getThingfromPos(switchpos) 
local getitem = getThingfromPos(gatepos,getswitchpos)
    local switchUniqueID = 7041 
    local nowa = 7042 
    local blok = 7043  
    local switchID = 1945
    local switch2ID = 1946

if item.uid == 7041 and item.itemid == 1945 and getgate.itemid == 1355 then 
doRemoveItem(getgate.uid,1)
 doTransformItem(item.uid,item.itemid+1)
addEvent(onTimer6, 6*1000)
elseif item.uid == switchUniqueID and item.itemid == switch2ID then
            doTransformItem(item.uid,item.itemid-1)
elseif item.uid == 7041 and item.itemid == 1946 and getgate.itemid == 0 then
doCreateItem(1355,1,gatepos) 
            doTransformItem(item.uid,item.itemid+1)
else 

end 
return 1 
end

function onTimer6()

wallnewpos = {x=1657, y=410, z=15} 
switchhpos = {x=1672, y=409, z=15}
  
        doCreateItem(1355,1,wallnewpos)
        doRemoveItem(getswitchpos.uid,1)
	[COLOR="Red"][B]  doCreateItem(1945,1,switchhpos)[/B][/COLOR]


end
JESZCZE NIE MOGE ZROBIC ZEBY TA FUNKJA NA CZERWNO TWORZYLA SWITCH 1945 O UNIQUE 7041. Plx help
 
Last edited:
PHP:
function onUse(cid, item, frompos, item2, topos)
 
	local switchUniqueID = 12616  -- uniqueID of switch
	local switchID = 1945
	local switch2ID = 1946
	local itemID = 5527
	local itempos = {x=1149, y=1244, z=12, stackpos=1} 
	local wallpos = {x=1147, y=1245, z=12, stackpos=1}
 
	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 == 1028 then
			doSendMagicEffect(itempos,10)
			doSendMagicEffect(wallchk,10)
			doRemoveItem(getitem.uid,1)
			doRemoveItem(wallchk.uid,1)
			doTransformItem(item.uid,item.itemid+1)
			addEvent(onTimer6, 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 TRUE
end


function onTimer6()

wallnewpos = {x=1147, y=1245, z=12} 
		doCreateItem(1028,1,wallnewpos)
end
Tu masz skrypt np zabijesz potworka kladziesz na portal przesuwasz dzwignie cialo znika i sciana tez znika i po 2 minutach sciana powraca cos takiego :p
 
Taki skrypt to juz miałem. Ale mi chodzi o taki co nie musisz nic zabijać tylko ciagniesz wajche i wtedy znika kamien na 10 minut (po 10 min pojawia sie spowrotem a dzwignia powraca do pierwotnego stanu) .
 
Mam taki problem juz prawie sam zrobiłem sobie tego skrypta i chce zrobic tak zeby urzywało doRemove items

doRemoveItem()
EDIT: JUZ DODAŁEM doRemoveItem
 
Last edited:
Back
Top