
Sprite = GetClassSprite(GetUserClass(#PARAM1))
Guild = GetUserGuild(#PARAM1)
If Guild > 0
	GuildSprite = GetGuildSprite(Guild) 
	If GuildSprite > 0
		Sprite = GuildSprite
	EndIf 
EndIf

CreateEffect(5,250,0,#DIR_UP,GetUserMap(#PARAM1),GetUserX(#PARAM1),GetUserY(#PARAM1),0,0,0)

CreateEffect(52,500,0,#DIR_UP,GetUserMap(#PARAM1),GetUserX(#PARAM1),GetUserY(#PARAM1),0,0,0)

SetUserSprite(#PARAM1,Sprite)
SetUserDisplayName(#PARAM1,GetUserName(#PARAM1))

Continue = 1