BlackList
PassingWrath.us
- Joined
- Aug 30, 2007
- Messages
- 133
- Reaction score
- 26
Hello,
Well I am just looking for an item that when used on a weapon will upgrade a certain stat. I have a base script I've been trying to use, but I am returned with an error "Item not found!"
Here is the code.
If it matters, I'm using the latest 0.3.7.
Well I am just looking for an item that when used on a weapon will upgrade a certain stat. I have a base script I've been trying to use, but I am returned with an error "Item not found!"
Here is the code.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getItemWeaponType(uid) == 1 or 2 or 3 then
doItemSetAttribute(uid,"defense",1)
end
return false
end
If it matters, I'm using the latest 0.3.7.