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

Show how many addons?

andii95

New Member
Joined
Aug 21, 2009
Messages
413
Reaction score
2
Location
Sweden
I want a script that does this:
When looking at a character it say like You see Lol, blablabalbal and then i says He/she got 12 addons.
Is that possible*?
 
Yes, you have to edit source to show how addons got players, when someone is looking on him. But you can count addons in LUA.

Code:
local citizenFirst = canPlayerWearOutfit(cid, 128, 1)
local citizenSecond = canPlayerWearOutfit(cid, 128, 2)
local count = 0
if(citizenFirst == true) then
count = count+1
end
if(citizenSecond == true) then
count = count+1
end

@Down:
Lol, I hear first time about this function...
 
Last edited:
@Down:
Lol, I hear first time about this function...

Yeah, it's a table in the characters database, and it's useful for rebirth system scripts. XD

Ok, im not so good at scripts and neither i know what sauce is. which one should i use. CyberM, can u give me some more info about what u just posted?

He just posted the basic lua function. Disregard it if you're not making the script yourself.

EDIT: And by sauce, he means source. :p
 
Last edited:
Back
Top