OTcreator
Active Member
- Joined
- Feb 14, 2022
- Messages
- 425
- Solutions
- 1
- Reaction score
- 44
Hello!
Who can change this script for me to TFS 1.X (1.4.2)? I have problem with itemDescription.
Who can change this script for me to TFS 1.X (1.4.2)? I have problem with itemDescription.
Lua:
local t = {
[8925] = {8925, 1},
[8931] = {8931, 1},
[8927] = {8927, 1},
[2523] = {2523, 1},
[12679] = {12681, 1},
[12318] = {12318, 1}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local v, storage, outfitId = t[item.uid], 89255, 1
if v then
if (getPlayerStorageValue(cid, storage) == -1) then
doPlayerAddItem(cid, v[1], v[2])
doPlayerSendTextMessage(cid, 22, "You have found " .. getItemDescriptionsById(v[1]).name .. ".")
setPlayerStorageValue(cid, storage, 1)
else
doPlayerSendTextMessage(cid, 22, "You have already taken your reward.")
end
end
return true
end