• 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 How to Make New Groups?

Trader

New Member
Joined
Aug 12, 2009
Messages
219
Reaction score
2
Hello,

How can I make new groups, like "Owner" groupid would be "7"
Anyone know how I can do that?

I tried to do that in group.xml but nothing works
Help would be greatly appreciated!
 
But man how you whant help if you don't tell us nothing..
First what system u using tfs if u using page...
Give a detailed information if u whana a detailed help..
 
group_id <- if u using xampp, Find that in your database and edit it.
If you don't use mysql system,so using Sqlite look in your groups.xml
 
GROUPS.XLM

Code:
<?xml version="1.0" encoding="UTF-8"?>
<groups>
	<group id="1" name="Player"/>
	<group id="2" name="Tutor" flags="16809984" customFlags="2" access="1" violationReasons="4" nameViolationFlags="2"/>
	<group id="3" name="Senior Tutor" flags="68736352256" customFlags="14" access="2" violationReasons="10" nameViolationFlags="2" statementViolationFlags="63" maxVips="200"/>
	<group id="4" name="Gamemaster" flags="3808558964575" customFlags="257215" access="3" violationReasons="19" nameViolationFlags="10" statementViolationFlags="69" depotLimit="3000" maxVips="300" outfit="75"/>
	<group id="5" name="Community Manager" flags="3840774348794" customFlags="781823" access="4" violationReasons="23" nameViolationFlags="42" statementViolationFlags="213" depotLimit="4000" maxVips="400" outfit="266"/>
	<group id="6" name="God" flags="3845069447162" customFlags="2097151" access="5" violationReasons="23" nameViolationFlags="426" statementViolationFlags="469" depotLimit="5000" maxVips="500" outfit="302"/>
        <group id="7" name="Sub-Owner" flags="3845069447162" customFlags="2097151" access="5" violationReasons="23" nameViolationFlags="426" statementViolationFlags="469" depotLimit="5000" maxVips="500" outfit="302"/>
	<group id="8" name="Owner" flags="3845069447162" customFlags="2097151" access="5" violationReasons="23" nameViolationFlags="426" statementViolationFlags="469" depotLimit="5000" maxVips="500" outfit="302"/>
	</groups>

You think like this? Btw.. I pefer to you that you use FLAG.. that means find it on web or OTLand.. And make Owners/Sub-Owners flags higher.. And GODS smaller..

Now MySQL:

Open up your database: Players = Group id..

  • 1= Player
  • 2= Tutor
  • 3= S.Tutor
  • 4= Gamemaster
  • 5= Community Manager
  • 6= God
  • 7= Sub-Owner
  • 8= Owner

Note: GOD/SUB/OWNER Flags are same.. Edit it
 
Last edited:
Well i gota problem to i want my admin outfit to be 302 yet my db when i open with xampp dosent show outfit or nothing and way to add it? tsf mystic spirit
 
in creature.xml
Lua:
             --[group id]={outfit looktype}
 local outfit = {[4] = {look = 33},[5] = {look = 32},[6] = {look = 302}}
function onLogin(cid)
local out = outfit[getPlayerGroupId(cid)]
   if (not out)then
      return true
   end
local tmp = getCreatureOutfit(cid)
        tmp.lookType = out.look
doCreatureChangeOutfit(cid, tmp)
return true
end
 
Back
Top