Its like many ways u can do it i gona show you 2 diffrent ways!.
This is a really fast and simpel one!
and here we got the other one open actions.xml and add this
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!
and now open actions/scripts and make a file named "test quests.lua"
And add this
This is a really fast and simpel one!
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!
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