Aeronx
Intermediate OT User
- Joined
- Dec 17, 2015
- Messages
- 746
- Solutions
- 9
- Reaction score
- 125
Hello! Thanks for reading this and for your time any help would be awesome!
I want something like:
.......
instead of
Thanks for your help!
I want something like:
Code:
if itemEx.itemType(weapon) then
instead of
Code:
"if itemEx.itemid == 2190 or 2191 or 2192... (and maaaany other weapons that could take forever to write) ..then"
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local text = "[5% Critical]"
local text2 = "You added 5% critical strike."
if itemEx.itemid == 2190 then
doPlayerSendTextMessage(cid, 22, text2)
doSetItemActionId(itemEx.uid, 3526)
doSetItemSpecialDescription(itemEx.uid, text)
end
return true
end
Thanks for your help!