• 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!

quest error and request advance

Coca Cola

New Member
Joined
Apr 10, 2010
Messages
164
Reaction score
0
what is wrong?
Lua:
function onUse(cid, item, frompos, item2, topos)

    if item.uid == 25000 then
     queststatus = getPlayerStorageValue(cid,8905)
     if queststatus == -1 then
     doPlayerSendTextMessage(cid,22,"You have found an Rainbow Shield.")
     doPlayerAddItem(cid,8905,1)
    	doItemSetAttribute(uid, "description", "refinado(def+27)Este item foi obtido por " .. getCreatureName(cid) .. ".") 
	doItemSetAttribute(cid,"defense",57)
     setPlayerStorageValue(cid,8905,1)
     else
     doPlayerSendTextMessage(cid,22,"It is empty.")
     end
    else
    return 0
    end

    return 1
    end



someboy could pls make a script onadvance to me?
it works like this > when player ups +1 fist fighting he's attackspeed will be +0.3



ty,cya
 
Last edited:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerStorageValue(cid, 8905) == -1 then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a rainbow shield.')
		local uid = doPlayerAddItem(cid, 8905, 1)
		doItemSetAttribute(uid, 'description', 'refinado(def+27). Este item foi obtido por ' .. getCreatureName(cid) .. '.')
		doItemSetAttribute(uid, 'defense', 57)
		setPlayerStorageValue(cid, 8905, 1)
	else
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'The chest is empty.')
	end
	return true
end
 
Back
Top