What's new

Pro?ba o Skrypt

Status
Not open for further replies.

rogalboss

User
Joined
Aug 6, 2010
Messages
12
Reaction score
1
Witam, szukam pewnego skryptu. Mianowicie chodzi mi ?eby klucz kt?ry przypisany jest do pewnych drzwi znik? po u?yciu (Aby po wykonaniu questa gracz nie mog? po?ycza? klucza drugiej osobie) Czy jest to mo?liwe?
 

Oskar

Forum friend
Joined
Jan 24, 2009
Messages
2,256
Reaction score
331
Odp: Pro?ba o Skrypt

Wejd? w folder data/actions/other/doors.lua i znajd? tak? linijk?:
PHP:
if(isInArray(keys, item.itemid)) then
		if(itemEx.actionid > 0) then
			if(item.actionid == itemEx.actionid and doors[itemEx.itemid] ~= nil) then
				doTransformItem(itemEx.uid, doors[itemEx.itemid])
				
				return true
			end

			doPlayerSendCancel(cid, "Ten klucz nie pasuje.")
			return true
		end

		return false
	end
I zamie? to na to:
PHP:
if(isInArray(keys, item.itemid)) then
		if(itemEx.actionid > 0) then
			if(item.actionid == itemEx.actionid and doors[itemEx.itemid] ~= nil) then
				doTransformItem(itemEx.uid, doors[itemEx.itemid])
				doRemoveItem(item.uid, 1)
				return true
			end

			doPlayerSendCancel(cid, "Ten klucz nie pasuje.")
			return true
		end

		return false
	end
 
Status
Not open for further replies.
Top