RealSoft2
Banned User
- Joined
- Oct 7, 2008
- Messages
- 222
- Reaction score
- 0
Hi there, how the d--n I fix this thing..
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)
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: