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

[help please] Key quest, set Action id. [needed]

RealSoft2

Banned User
Joined
Oct 7, 2008
Messages
222
Reaction score
0
Hi there, how the d--n I fix this thing..

Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 15078 then
  queststatus = getPlayerStorageValue(cid,15078)
  if queststatus == -1 or queststatus == 0 then
   doPlayerSendTextMessage(cid,22,"You have found a bunch of weird stuffs.")
   item_uid = doPlayerAddItem(cid,2524,1)
   setPlayerStorageValue(cid,15078,1)

  else
   doPlayerSendTextMessage(cid,22,"it\'s empty.")
  end
else
  return 0
end
return 1
end

This is a typical quest script I use, but I want to know 2 things about this..

First: how do I add an action id to the loot item?

Second:
how do I set so this item is looted in a bag? (you loot a bag with this item in)
 
Last edited:
Back
Top