silveralol
Advanced OT User
- Joined
- Mar 16, 2010
- Messages
- 1,480
- Solutions
- 9
- Reaction score
- 212
Hi! guys I'm trying make a script that give to player some mount using the description of an item ... look
I know that is wrong it ... but how make it works perfectly? get the description of an item and give the mount ...
it's an exemple of mine script, just to you try understand what I want...
thanks all!
<3 love you
TFS 1.2 !!!! Always!
Code:
local mounts {
[1] = {name = 'test1', id = 1},
[2] = {name = 'test2', id = 3},
[3] = {name = 'test3', id = 3}
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
for i = 1, #mounts do
if item:getDescription() == 'mounts.name' then
local mount = mounts.name, mounts.id
break
end
end
player:addMount(mount)
return true
end
it's an exemple of mine script, just to you try understand what I want...
thanks all!
<3 love you
TFS 1.2 !!!! Always!