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

quest in ground....trees

tim26

Member
Joined
Aug 12, 2008
Messages
618
Reaction score
11
Location
Poland
i want script to quest in ground/trees i have that scripts and it don't work tfs 0.2.3;/

Code:
function onUse(cid, item, frompos, item2, topos)

	if item.uid == 12656 and getPlayerStorageValue(cid, 9967706565) < 1 then
     doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found witches cap mushroom.")
	doPlayerAddItem(cid, 4840, 1)
	  setPlayerStorageValue(cid, 9967706565,1)
    else
     doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"It is empty.")
	 end
  return 1
end

Code:
<action uniqueid="12656" event="script" value="cup.lua" />
 
Try this:
Code:
function onUse(cid, item, frompos, item2, topos)
     if item.uid == 12656 then
        queststatus = getPlayerStorageValue(cid,9967706565)
          if queststatus == -1 then
           doPlayerSendTextMessage(cid,22,"You have found witches cap mushroom.") 
          doPlayerAddItem(cid,4840,1)
          setPlayerStorageValue(cid,9967706565,1)
          else
        doPlayerSendTextMessage(cid,22,"It is empty.")
     end
   end
   return 1
end

Another simple quest script that pretty much do the same thing, i think i have tried it for 0.3.2, and it worked, but im not sure :p
 
Back
Top