Teddy
SweStream.se
All my quest i have from 0.3.6 are look like this
But they dont work anymore in last rev drom 0.4 ? .. how can i do so its work for 0.4... its very much quests so i cant edit ;/
LUA:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 51001 then
if getPlayerStorageValue(cid,51001) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Chain Armor.")
doPlayerAddItem(cid,2464,1)
setPlayerStorageValue(cid,51001,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51002 then
if getPlayerStorageValue(cid,51002) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found 2 Crystal Coin.")
doPlayerAddItem(cid,2160,2)
setPlayerStorageValue(cid,51002,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51003 then
if getPlayerStorageValue(cid,51003) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Rope.")
doPlayerAddItem(cid,2120,1)
setPlayerStorageValue(cid,51003,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51004 then
if getPlayerStorageValue(cid,51004) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Shovel.")
doPlayerAddItem(cid, MESSAGE_INFO_DESCR54,1)
setPlayerStorageValue(cid,51004,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51005 then
if getPlayerStorageValue(cid,51005) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Backpack.")
doPlayerAddItem(cid,1988,1)
setPlayerStorageValue(cid,51005,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51006 then
if getPlayerStorageValue(cid,51006) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Mage Hat.")
doPlayerAddItem(cid,8820,1)
setPlayerStorageValue(cid,51006,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51007 then
if getPlayerStorageValue(cid,51007) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Mage Armor.")
doPlayerAddItem(cid,8819,1)
setPlayerStorageValue(cid,51007,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51008 then
if getPlayerStorageValue(cid,51008) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Boots.")
doPlayerAddItem(cid,2643,1)
setPlayerStorageValue(cid,51008,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51009 then
if getPlayerStorageValue(cid,51009) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Spellbook.")
doPlayerAddItem(cid,2175,1)
setPlayerStorageValue(cid,51009,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51010 then
if getPlayerStorageValue(cid,51010) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Spike Sword.")
doPlayerAddItem(cid,2383,1)
setPlayerStorageValue(cid,51010,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51011 then
if getPlayerStorageValue(cid,51011) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Dwarven Shield.")
doPlayerAddItem(cid, MESSAGE_INFO_DESCR MESSAGE_INFO_DESCR,1)
setPlayerStorageValue(cid,51011,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51012 then
if getPlayerStorageValue(cid,51012) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Rod.")
doPlayerAddItem(cid,2182,1)
setPlayerStorageValue(cid,51012,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51013 then
if getPlayerStorageValue(cid,51013) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Wand.")
doPlayerAddItem(cid,2190,1)
setPlayerStorageValue(cid,51013,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51014 then
if getPlayerStorageValue(cid,51014) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Spear.")
doPlayerAddItem(cid,2389,1)
setPlayerStorageValue(cid,51014,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51015 then
if getPlayerStorageValue(cid,51015) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Aol.")
doPlayerAddItem(cid,2173,1)
setPlayerStorageValue(cid,51015,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51016 then
if getPlayerStorageValue(cid,51016) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Chain Legs.")
doPlayerAddItem(cid,2468,1)
setPlayerStorageValue(cid,51016,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51017 then
if getPlayerStorageValue(cid,51017) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Health Potion.")
doPlayerAddItem(cid,7618,1)
setPlayerStorageValue(cid,51017,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51018 then
if getPlayerStorageValue(cid,51018) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Leather Helmet.")
doPlayerAddItem(cid,2461,1)
setPlayerStorageValue(cid,51018,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"The is empty.")
end
elseif item.uid == 51019 then
if getPlayerStorageValue(cid,51019) == -1 then
doPlayerSendTextMessage(cid,19,"You have found a First Mount.")
doPlayerAddItem(cid,11246,1)
setPlayerStorageValue(cid,51019,1)
else
doPlayerSendTextMessage(cid,TALKTYPE_ORANGE_1,"The is empty.")
end
end
return TRUE
end
Last edited: