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

0.3.5 >> 0.3.6

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
When i updated the 0.3.5 to 0.3.5 i lsot my quest system u know if the item ID are 4020 u add it to actionid and unid now thats dont work so does anyone have the old quest system .. ?
 
Last edited:
Fixed it..
Action.Xml
Code:
	<action itemid="1740" script="quests/quests.lua"/>
	<action fromid="1747" toid="1749" script="quests/quests.lua"/>
Quest.Lua
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
  if item.uid > 1000 and item.uid < 10000 then
    local itemweight = getItemWeightById(item.uid, 1)
    local playerCap = getPlayerFreeCap(cid)
    if getPlayerStorageValue(cid, item.uid) == -1 then
      if playerCap >= itemweight then
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemNameById(item.uid) .. '.')
        doPlayerAddItem(cid, item.uid ,1)
        setPlayerStorageValue(cid, item.uid, 1)
      else
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a ' .. getItemNameById(item.uid) .. ' weighing ' .. itemweight .. ' oz it\'s too heavy.')
      end
    else
      doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
    end
  else
    return FALSE
  end
  return TRUE
end
 
Back
Top