Hokage1994
User
- Joined
- Aug 24, 2008
- Messages
- 17
- Reaction score
- 0
A Helmet of the anciets, magic sword, fire sword, staff, warlord sword, and 5 cc..
ZRUB PLIK LUA I WKLEJ TO TAM...
ZRUB PLIK LUA I WKLEJ TO TAM...
Code:
--[[Script by Hokge]]--
local STORAGE = 1000
function onUse(cid, item, frompos, item2, topos)
local Items = {2342, 2400, 2392, 2401, 2408, 2160}
local Count = {'a', 'a', 'a', 'a', 'a', 5}
local ItemCount = 0
if (item.uid == 1000) then
if (getPlayerStorageValue(cid, STORAGE) < 1) then
local i = 0
local Plural = ""
local ItemName = ""
for i in Items do
if (type(Count[i]) == 'string') then
ItemCount = 1
else
ItemCount = Count[i]
end
local ItemName = getItemName(items[i])
if ((ItemCount > 1) and (string.sub(ItemName, string.len(ItemName)) ~= "s")) then
Plural = "s"
else
Plural = ""
end
doPlayerAddItem(cid, Items[i], ItemCount)
doPlayerSendTextMessage(cid,MessageClasses, "You have found "..Count.." "..ItemName..Plural..".")
end
else
doPlayerSendTextMessage(cid, 22, "It's empty.")
end
end
end