hello this is a simple black knight quest script
add in data/actions/actions.xml
add in data/actions/scripts/black knight
createfile named bkreward1.lua
add in data/actions/scripts/black knight
createfile named bkreward2.lua
Rep++ If its helped you !
add in data/actions/actions.xml
Code:
<!-- Black Knight Quest-->
<action uniqueid="7518" script="black knight/bkreward1.lua" />
<action uniqueid="7519" script="black knight/bkreward2.lua" />
add in data/actions/scripts/black knight
createfile named bkreward1.lua
Lua:
function onUse(cid, item, frompos, item2, topos)
if item.uid ==7518 then
queststatus = getPlayerStorageValue(cid,7618)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Crown Shield.")
doPlayerAddItem(cid,2519,1)
setPlayerStorageValue(cid,7618,1)
else
doPlayerSendTextMessage(cid,22,"You already done this quest.")
end
else
return 0
end
return 1
end
add in data/actions/scripts/black knight
createfile named bkreward2.lua
Lua:
function onUse(cid, item, frompos, item2, topos)
if item.uid ==7519 then
queststatus = getPlayerStorageValue(cid,7619)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Crown Armor.")
doPlayerAddItem(cid,2487,1)
setPlayerStorageValue(cid,7619,1)
else
doPlayerSendTextMessage(cid,22,"You already done this quest.")
end
else
return 0
end
return 1
end
HTML:
make sure the chests got id
7519-crown armor 7518-crown shield
Rep++ If its helped you !
Last edited: