What's new

Pomoc !

Status
Not open for further replies.

Visk

User
Joined
Apr 2, 2009
Messages
29
Reaction score
1
Witam , potrzebuj? pomocy mianowicie w bramce lvl'lowej chodzi mi dok?adnie o to ?e... bramke mo?e przekroczy? osoba poni?ej 30 poziomu , a wi?kszy lvl ni? 30 nie mo?e ju? przej??
Prosz? o jaka? pomoc !
Dzi?ki
 

Azakelis

User
Joined
Oct 9, 2010
Messages
27
Reaction score
2
Odp: Pomoc !

O lol wgraj ten skrypt zamiast starego:
Code:
-- level doors based on actionId
-- to make door for level x create door on map and set its actionid to x+1000

function onUse(cid, item, frompos, item2, topos)
	reqlevel = item.actionid - 1000	-- actionids below 100 are reserved

	if reqlevel > 0 then
		if getPlayerLevel(cid) >= reqlevel then
			pos = getPlayerPosition(cid)

			if pos.x == topos.x then
				if pos.y < topos.y then
					pos.y = topos.y + 1
				else
					pos.y = topos.y - 1
				end
			elseif pos.y == topos.y then
				if pos.x < topos.x then
					pos.x = topos.x + 1
				else
					pos.x = topos.x - 1
				end
			else
				doPlayerSendTextMessage(cid,22,'Stand in front of the door.')
				return 1
			end

			doTeleportThing(cid,pos)
			doSendMagicEffect(topos,12)
		else
			doPlayerSendTextMessage(cid,22,'You need level ' .. reqlevel .. ' to pass this door.')
		end
		return 1
	else
		return 0
	end
end
 

Master Xenoks

Active User
Joined
Sep 28, 2010
Messages
51
Reaction score
0
Odp: Pomoc !

No c?? ja nigdy tego nie robi?em ale Azakelis mo?e by? si? pofatygowa? troch? i powiedzia? koledze troch? dok?adniej w jaki folder ma wej?? jak nazwa? nowy plik do bramki Lvl'owej co wklei? i jak zrobi? t? bramk??
 
Status
Not open for further replies.
Top