andrew95434
Banned User
What this does is that you finish a cave or part of the quest(Inquisition), and it saves it, then if you die and you finished for ex: crystal caves, you can enter to the tp in here:
instead of doing it all over again
I have this .lua code, but i dont know how to use it or where to put the uid's:
and in actions.xml i have this:
Please help, do i need to insert the UID on a chest?, or in the floor, or the tp when you kill the boss? plz help
i would appreciate very much if you could help me solve this doubt thx!!!
instead of doing it all over again
I have this .lua code, but i dont know how to use it or where to put the uid's:
Lua:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 4073 then
queststatus = getPlayerStorageValue(cid,4072)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have saved the Crystal Caves.")
setPlayerStorageValue(cid,4072,1)
else
doPlayerSendTextMessage(cid,22,"This seal was saved.")
end
elseif item.uid == 4075 then
queststatus = getPlayerStorageValue(cid,4074)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have saved the Blood Hall.")
setPlayerStorageValue(cid,4074,1)
else
doPlayerSendTextMessage(cid,22,"This seal was saved.")
end
elseif item.uid == 4077 then
queststatus = getPlayerStorageValue(cid,4076)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have saved the Vats.")
setPlayerStorageValue(cid,4076,1)
else
doPlayerSendTextMessage(cid,22,"This seal was saved.")
end
elseif item.uid == 4079 then
queststatus = getPlayerStorageValue(cid,4078)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have saved the Arcanum.")
setPlayerStorageValue(cid,4078,1)
else
doPlayerSendTextMessage(cid,22,"This seal was saved.")
end
elseif item.uid == 4081 then
queststatus = getPlayerStorageValue(cid,4080)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have saved the Hive.")
setPlayerStorageValue(cid,4080,1)
else
doPlayerSendTextMessage(cid,22,"This seal was saved.")
end
else
return 0
end
return 1
end
and in actions.xml i have this:
Code:
<!-- Inquisiton Quest -->
<action uniqueid="4073" script="Inquisition/inquisition_seal.lua" />
<action uniqueid="4075" script="Inquisition/inquisition_seal.lua" />
<action uniqueid="4077" script="Inquisition/inquisition_seal.lua" />
<action uniqueid="4079" script="Inquisition/inquisition_seal.lua" />
<action uniqueid="4081" script="Inquisition/inquisition_seal.lua" />
Please help, do i need to insert the UID on a chest?, or in the floor, or the tp when you kill the boss? plz help
i would appreciate very much if you could help me solve this doubt thx!!!