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

A new LUA function, getPlayerSummonCountByName(cid, name)

Lejjo

New Member
Joined
Sep 21, 2007
Messages
78
Reaction score
1
Hello there!

I'm making another try to get me a LUA function. I hope this time someone can help me.

What this function will to is return the amount of how many summons of that creature the master has.

Example:
Code:
if getPlayerSummonCountByName(cid, skeleton) < 3 then
	executeCommand(cid, "/summon", "skeleton")
else
	doSendMagicEffect(getPlayerPosition(cid), 2)
	doPlayerSendCancel(cid,"You cannot summon more skeletons.")
end

Thats just a random example.

Thanks in advance!

EDIT;
NVM, fixed....
 
Last edited:
Hi im also interested in something like that, could you share how you did it??

Or did you find a .lua command that could work with this

THANKS MAN!! ;)
 
Back
Top Bottom