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

TFS 0.3.5 - Questy.

Status
Not open for further replies.

Sherlok

Active Member
Joined
Aug 29, 2008
Messages
2,116
Reaction score
44
Location
Poland, Wrocław.
Elo,
Mógłby mi ktoś wytłumaczyć jak działają (jak się robi) questy w TFS 0.3.5pl1?

Z góry dzięki,
Sherlok
 
Ehh, mógłby mi ktoś napisać zwykły, najnormalniejszy system?
Chodzi mi o taki, że ustawiam w map editorze 'uniqueid' = id itemu i klikając na skrzynkę w grze go dostaję?
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	return doPlayerAddItem(cid, item.uid, 1) and TRUE or FALSE
end
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	return doPlayerAddItem(cid, item.uid, 1) and TRUE or FALSE
end

Ale Chojraczku bez przesady ; >
Piękny skrypcik, ale zrób jeszcze aby można było wykonać quest tylko raz i nie można było przenosić skrzynki :)

@a nie to tylko GM'em mogłem ją przesuwać ;s
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (getPlayerStorageValue(cid, item.uid) == -1) then
		doPlayerAddItem(cid, item.uid, 1)
		setPlayerStorageValue(cid, item.uid, 1)
	end

	return true
end
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (getPlayerStorageValue(cid, item.uid) == -1) then
		doPlayerAddItem(cid, item.uid, 1)
		setPlayerStorageValue(cid, item.uid, 1)
	end

	return true
end

Okej, dodaj mi jeszcze do skryptu 'You have a found..' i jeśli quest jest wykonany to 'It is empty.'
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (getPlayerStorageValue(cid, item.uid) == -1) then
		doPlayerAddItem(cid, item.uid, 1)
		setPlayerStorageValue(cid, item.uid, 1)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found ".. getItemAttribute(item.uid, "name") ..".")
	end

	return true
end
 
Okej, dodaj mi jeszcze do skryptu 'You have a found..' i jeśli quest jest wykonany to 'It is empty.'

LOL. Następny bez mózg który nie potrafi dodać tekstu do skryptu, gl w OT.
 
Status
Not open for further replies.
Back
Top