any1 have done that? i need this script :S
function onUse(cid, item, frompos, item2, topos)
if item.uid == 3567 then
queststatus = getPlayerStorageValue(cid,502000)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Boots Of Haste.")
doPlayerAddItem(cid,2195,1)
setPlayerStorageValue(cid,502000,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end
function onUse(cid, item, frompos, item2, topos)
if item.uid == 7895 then
queststatus = getPlayerStorageValue(cid,5020001)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Giant Sword.")
doPlayerAddItem(cid,2393,1)
setPlayerStorageValue(cid,5020001,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end
function onUse(cid, item, frompos, item2, topos)
if item.uid == 4168 then
queststatus = getPlayerStorageValue(cid,5020002)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Tower Shield.")
doPlayerAddItem(cid,2528,1)
setPlayerStorageValue(cid,5020002,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end
function onUse(cid, item, frompos, item2, topos)
if item.uid == 6145 then
queststatus = getPlayerStorageValue(cid,5020003)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Stone Skin Amulter.")
doPlayerAddItem(cid,2197,1)
setPlayerStorageValue(cid,5020003,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end
function onUse(cid, item, frompos, item2, topos)
if item.uid == 4673 then
queststatus = getPlayerStorageValue(cid,5020004)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Stealth Ring.")
doPlayerAddItem(cid,2165,1)
setPlayerStorageValue(cid,5020004,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end
function onUse(cid, item, frompos, item2, topos)
if item.uid == 4691 then
queststatus = getPlayerStorageValue(cid,5020005)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a 100 Platinum Coins.")
doPlayerAddItem(cid,2152,100)
setPlayerStorageValue(cid,5020005,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end
<!-- Banshee -->
<action uniqueid="3567" script="banshee\1.lua" />
<action uniqueid="7895" script="banshee\2.lua" />
<action uniqueid="4168" script="banshee\3.lua" />
<action uniqueid="6145" script="banshee\4.lua" />
<action uniqueid="4673" script="banshee\5.lua" />
<action uniqueid="4691" script="banshee\6.lua" />