• 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!

Dźwignia zonk

Czaku

Banned User
Joined
Mar 24, 2010
Messages
177
Reaction score
1
Witam,
mam problem z dźwignią, gdy przesuwasz dźwignie schody się pojawiają lecz gdy kombujesz tą dźwignie to schody wskakują na siebie, zamiast się pojawiać i zamykać
i jeszcze takie pytanie, czy dało by dare żeby te drzwi stały np 120 sekund?
Tu skrypt
Code:
 function onUse(cid, item, frompos, item2, topos)
gatepos = {x=974, y=988, z=6, stackpos=1}
getgate = getThingfromPos(gatepos)
local playerVoc = getPlayerVocation(cid)
if playerVoc == 3 or playerVoc == 7 then
if item.uid == 1557 and item.itemid == 1945 and getgate.itemid == 10825 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 1557 and item.itemid == 1946 and getgate.itemid == 0 then
doCreateItem(10825,1,gatepos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
return 1
end
end

Czy mógł bym prosić was wszystkich o pomoc ponieważ iż de facto niemoge tego ogarnąć, bardzo was prosze o przerobienie tego szajsu [']
 
Last edited:
Mam zapewne zbędne pytanie, ale czy ground to nie item?
Pomijając to:
- Sprawdz czy masz tam tylko "gate", czy nie ma nic pod tym

Najlepiej sprawdzic tak, że wchodzi sie na server, tam gdzie jest "gate" dajesz /r, i tak do końca i robisz "gate"

I sprawdzasz ;p Bo skrypt jest w dobry ;D
 
Skrypt jest dobry w 50% ponieważ pojawiają się schody po pociągnięciu dźwigni, ale po odciągnięciu się nie kasują tylko pojawiają nowe.
Pod "gate"(schodach) jest normalna trawka :)
 
Ten skrypt działa w 100%
Sam testowałem:
Zmieniłem pozycje i item który usuwa.
Tu masz:
PHP:
function onUse(cid, item, frompos, item2, topos)
	gatepos = {x=974, y=988, z=6, stackpos=1}
	getgate = getThingfromPos(gatepos)
	if isPaladin(cid) == True or getPlayerVocation(cid) == 7 then
		if item.uid == 1557 and item.itemid == 1945 and getgate.itemid == 10825 then
			doRemoveItem(getgate.uid,1)
			doTransformItem(item.uid,item.itemid+1)
		elseif item.uid == 1557 and item.itemid == 1946 and getgate.itemid == 0 then
			doCreateItem(10825,1,gatepos)
			doTransformItem(item.uid,item.itemid-1)
		else
		doPlayerSendCancel(cid,"Sorry not possible.")
		end
	return 1
	end
end

Edit:
Poprawiłem pozycje na taką jaka masz i item który usuwa
 
Back
Top