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

How To Make An Quest On TFS 0.3.4

freak15

Professional Hoster
Joined
Dec 31, 2008
Messages
356
Reaction score
2
Location
Sweden
Its like many ways u can do it i gona show you 2 diffrent ways!.

This is a really fast and simpel one!

simplequest.png




and here we got the other one open actions.xml and add this

Code:
<action uniqueid="1000" script="Test Quests.lua" />

And make sure the uniqueid is not in use in this case the id is "1000" so now open your map editor and make it like this!

addquest.png



and now open actions/scripts and make a file named "test quests.lua"

And add this

Code:
function onUse(cid, item, frompos, item2, topos)
  	-- Desert q 1
  	if item.uid == 1000 then
  		queststatus = getPlayerStorageValue(cid,1000)
  		if queststatus == -1 then
  			if getPlayerLevel(cid) >= 50 then
  				doPlayerSendTextMessage(cid,22,"You have found a Piece of a broken amulet.")
  				doPlayerAddItem(cid,8262,1)
  				setPlayerStorageValue(cid,1000,1)
  			else
  				doPlayerSendTextMessage(cid,22,"You need level 50 to get prize.")
  			end
  		else
  			doPlayerSendTextMessage(cid,22,"It is empty.")
  		end
  	end
end


:)
 
just for begginers...


First Way is not correct. Why cuz Beginner won't know that he doesn;t have to link uid with quests/(quest/system).lua

You Can also explain how "quest.lua" works;) -> 1st way.
 
nope.. false..


true is(

action id "2000"
unique id "storage id"
containers "set items that u want to get =)"

credits (paxton)
 
how can you make the item have more charges like a manarune in that script?
 
Back
Top