LoveSong
New Member
- Joined
- Dec 16, 2007
- Messages
- 185
- Reaction score
- 0
Hello as my Thread header says:
I have problems with my Arena Chests...
I build scripts for greenhorn, scrapper and warlord... But it wont work.
Every time when a player klicks on the cheast he get plant or trash or what ever...
Look at my Scripts: What i do wrong? Greenhorn Script:
-- Greenhorn
function onUse(cid, item, frompos, item2, topos)
if item.uid == 5555 then
queststatus = getPlayerStorageValue(cid,5010)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Blacksteel Sword.")
doPlayerAddItem(cid,7406,1)
setPlayerStorageValue(cid,5555,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 5556 then
queststatus = getPlayerStorageValue(cid,5010)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have a Headchopper.")
doPlayerAddItem(cid,7380,1)
setPlayerStorageValue(cid,5556,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 5557 then
queststatus = getPlayerStorageValue(cid,5010)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Orcish Maul.")
doPlayerAddItem(cid,7392,1)
setPlayerStorageValue(cid,5557,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end
I have problems with my Arena Chests...
I build scripts for greenhorn, scrapper and warlord... But it wont work.
Every time when a player klicks on the cheast he get plant or trash or what ever...
Look at my Scripts: What i do wrong? Greenhorn Script:
-- Greenhorn
function onUse(cid, item, frompos, item2, topos)
if item.uid == 5555 then
queststatus = getPlayerStorageValue(cid,5010)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Blacksteel Sword.")
doPlayerAddItem(cid,7406,1)
setPlayerStorageValue(cid,5555,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 5556 then
queststatus = getPlayerStorageValue(cid,5010)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have a Headchopper.")
doPlayerAddItem(cid,7380,1)
setPlayerStorageValue(cid,5556,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 5557 then
queststatus = getPlayerStorageValue(cid,5010)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a Orcish Maul.")
doPlayerAddItem(cid,7392,1)
setPlayerStorageValue(cid,5557,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end