- function onUse(cid, item, fromPosition, itemEx, toPosition)
- local Randomize = math.random(1, 20)
- local id = 0
- local count = 0
- local text = ""
- if (Randomize == 1) then
- id = 8891
- count = 1
- text = "You have found paladin armor."
- end
- if (Randomize == 2) then
- id = 2474
- count = 1
- text = "You have found Winged Helmet!"
- end
- if (Randomize == 3) then
- id = 2520
- count = 1
- text = "You have found pro demon shield!"
- end
- if (Randomize == 4) then
- id = 7367
- count = 1
- text = "You have found nub spear!"
- end
- if (Randomize == 5) then
- id = 9778
- count = 1
- text = "You have found yalahari mask!"
- end
- if (Randomize == 6) then
- id = 2495
- count = 1
- text = "You have found demon legs!"
- end
- if (Randomize == 7) then
- id = 2195
- count = 1
- text = "You have found boots of haste!"
- end
- if (Randomize == 8) then
- id = 2164
- count = 1
- text = "You have found pro ring!"
- end
- if (Randomize == 9) then
- id = 9776
- count = 1
- text = "You have found yalahari armor!"
- end
- if (Randomize == 10) then
- id = 8930
- count = 1
- text = "You have found nub sword!"
- end
- if (Randomize == 11) then
- id = 7591
- count = 1
- text = "You have found great health potion!"
- end
- if (Randomize == 12) then
- id = 7590
- count = 1
- text = "You have found great mana potion!"
- end
- if (Randomize == 13) then
- id = 9777
- count = 1
- text = "You have found yalahari legs!"
- end
- if (Randomize == 14) then
- id = 8472
- count = 1
- text = "You have found great spirit potion!"
- end
- if (Randomize == 15) then
- id = 2640
- count = 1
- text = "You have found soft boots!"
- end
- if (Randomize == 16) then
- id = 5785
- count = 1
- text = "You have found vip medal!"
- end
- if (Randomize == 17) then
- id = 8927
- count = 1
- text = "You have found nub club!"
- end
- if (Randomize == 18) then
- id = 8922
- count = 1
- text = "You have found nub wand!"
- end
- if (Randomize == 19) then
- id = 8925
- count = 1
- text = "You have found nub axe!"
- end
- if (Randomize == 20) then
- id = 8871
- count = 1
- text = "You have found focus cape!"
- end
- doPlayerAddItem(cid, id, count)
- doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, text)
- doRemoveItem(item.uid, 1)
- return TRUE
- end