• 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 Check if item is boots & gained experience color randomize

Gomgom

Member
Joined
Oct 1, 2009
Messages
135
Reaction score
18
Location
Egypt
* Check if item is boots:
Function to check if item is boots.

* Gained experience color randomize:
Example given:
Code:
if getPlayerVipDays(cid) > 0 then
gained experience color randomize
else
gained experience color white
end
Is there any way to do that?
 
Last edited:
Nobody knows how to do that?

Anyway, i have done that by myself.

Code:
       function isBoots(uid)
		name = getItemName(uid)
		uid = name:match('Boots') or name:match('boots') or name:match('Shoes') or name:match('shoes') or name:match('Sandals') or name:match('sandals') or name:match('Bunnyslippers') or name:match('bunnyslippers') or name:match('Bunny slippers') or name:match('bunny slippers')
	return uid
	end

How to use!

Code:
   function onUse(cid, item, fromPosition, itemEx, toPosition)
      if isCreature(itemEx.uid) then
          return FALSE
      end

      if isBoots(itemEx.uid) then
            number = choose('10','20','30','40')
            doItemSetAttribute(itemEx.uid,'description',"Speed +"..number.."")
      end
   return TRUE
   end

One thing left!

Gained experience color randomize.....
I think it's impossible to do that. :(
 
Last edited:
Back
Top