• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua [SOLVED]Attribute problem

Lares

Member
Joined
Feb 8, 2010
Messages
315
Reaction score
7
Hello i have small problem with function doItemSetAttribute

i use:

Lua:
function onSay(cid, words, param, channel)
local item_wyjsciowy = 2471
local bonus = 30
nagroda = doCreateItemEx(cid, item_wyjsciowy)
doItemSetAttribute(nagroda, "armor", 30)
return true
end

And when i create item i have all time armor 10 how i can change armor 10->30
 
Last edited:
Lua:
function onSay(cid, words, param, channel)
   return doItemSetAttribute(doCreateItemEx(cid, 2471), "armor", 30)
   end
 
Back
Top