• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[TFS] Staff Outfits

justin234

New Member
Joined
Jan 22, 2008
Messages
999
Reaction score
4
Gamemaster - 75
Community Manager - 302
Administrator - 266

Problem: The Forgotten Server 0.2
When I make a GM then the outfit looktype is 75.
When I make a CM then the outfit is still looktype 75.

Questions:
1. Why wont it change to 302?
or
2. How do I set certain looktypes to account types?

Kind Regards.
 
Last edited:
login.lua 8D

Code:
	if getPlayerGroupId(cid) == 4 then
		doCreatureChangeOutfit(cid, { lookType = 302, lookBody = 0, lookHead = 0, lookLegs = 0, lookFeet = 0 })
	end

not sure about getPlayerGroupId, search in luascript.cpp for proper name if it wont work.
 
Code:
function onLogin(cid)
    registerCreatureEvent(cid, "PlayerDeath")
	if getPlayerGroupId(cid) == 4 then
		doCreatureChangeOutfit(cid, { lookType = 302, lookBody = 0, lookHead = 0, lookLegs = 0, lookFeet = 0 })
	end
    return TRUE
end

???????
 
when i want to change my staff outfits i change the looktype in groups table on database but this is for tfs 0.3 b2 not sure same for 0.2
 
Example:
PHP:
local lookTypes = {75, 302, 266}
 
function onLogin(cid)
	local group = getPlayerGroupId(cid)
	if group >= 2 and group <= 4 then
		local outfit = { lookType = lookTypes[group - 1], lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
		doSetCreatureOutfit(cid, outfit, -1)
	end
 
	registerCreatureEvent(cid, "PlayerKill")
	return TRUE
end

It's not PHP code, but
LUA:
seems not to work for me.
 
Last edited:
Back
Top