- Initiateur de la discussion
Deadman69330
Psychopathe
- Messages
- 2 289
- Score réaction
- 309
- Points
- 290
Bonsoir,
Quand je créer un Skill Tree avec les sabres wiltOS (la version complète)
Et que je veux le restrict à certains jobs et bien malheuresement ça ne fonctionne pas :/
Pourtant d'après le wiki: Creating A Skill Tree - Knowledgebase - wiltOS Technologies
Donc tout devrais fonctionner mais non, peut importe notre Job on voit le Skill Tree :/
La seule chose qui marche c'est quand j'utilise la restriction par Groupes ULX
Si quelqu'un sait pourquoi et éventuellement comment patch ça je suis prenneur
Merci
Quand je créer un Skill Tree avec les sabres wiltOS (la version complète)
Et que je veux le restrict à certains jobs et bien malheuresement ça ne fonctionne pas :/
Pourtant d'après le wiki: Creating A Skill Tree - Knowledgebase - wiltOS Technologies
Et voila le code de mon skill tree"TREE.JobRestricted" says which darkrp jobs are allowed to access this skill tree, if set to "false" then all people, regardless of their job, will be able to see it.
Code:
local TREE = {}
--Name of the skill tree
TREE.Name = "Bases du Côté Obscur"
--Description of the skill tree
TREE.Description = "Rejoigniez le Côté Obscur."
--Icon for the skill tree ( Appears in category menu and above the skills )
TREE.TreeIcon = "wos/skilltrees/forms/forms_skill.png"
--What is the background color in the menu for this
TREE.BackgroundColor = Color( 255, 0, 0, 25 )
--How many tiers of skills are there?
TREE.MaxTiers = 4
--Add user groups that are allowed to use this tree. If anyone is allowed, set this to FALSE ( TREE.UserGroups = false )
TREE.UserGroups = false
--Add user groups that are allowed to use this tree. If anyone is allowed, set this to FALSE ( TREE.JobRestricted = false )
TREE.JobRestricted = { --"TEAM_ESCLAVE", "TEAM_INITIE", "TEAM_ACOLYTESITH", "TEAM_GUERRIERSITH", "TEAM_INQUISITEURSITH", "TEAM_ASSASSINSITH", "TEAM_SORCIERSITH", "TEAM_RAVAGEURSITH", "TEAM_MARAUDEURSITH", "TEAM_GRDASSASSINSITH", "TEAM_GRDSORCIERSITH", "TEAM_GRDRAVAGEURSITH", "TEAM_GRDMARAUDEURSITH", "TEAM_MTRASSASSINSITH", "TEAM_MTRSORCIERSITH", "TEAM_MTRRAVAGEURSITH", "TEAM_MTRMARAUDEURSITH", "TEAM_SEIGNEURSITH", "TEAM_GRANDSEIGNEURSITH", "TEAM_GERANT", "TEAM_VOIXEMPEREUR", "TEAM_FURYEMPEREUR", "TEAM_FONDATEURSITH", }
TREE.Tier = {}
--Tier format is as follows:
--To create the TIER Table, do the following
--TREE.Tier[ TIER NUMBER ] = {}
--To populate it with data, the format follows this
--TREE.Tier[ TIER NUMBER ][ SKILL NUMBER ] = DATA
--Name, description, and icon are exactly the same as before
--PointsRequired is for how many skill points are needed to unlock this particular skill
--Requirements prevent you from unlocking this skill unless you have the pre-requisite skills from the last tiers. If you are on tier 1, this should be {}
--OnPlayerSpawn is a function called when the player just spawns
--OnPlayerDeath is a function called when the player has just died
--OnSaberDeploy is a function called when the player has just pulled out their lightsaber ( assuming you have SWEP.UsePlayerSkills = true )
TREE.Tier[1] = {}
TREE.Tier[1][1] = { Name = "Rage", Description = "Canalisez votre Rage", Icon = "wos/forceicons/channel_hatred.png", PointsRequired = 2, Requirements = {}, OnPlayerSpawn = function( ply ) end, OnPlayerDeath = function( ply ) end, OnSaberDeploy = function( wep ) wep:AddForcePower( "Channel Hatred" ) end,
}
TREE.Tier[2] = {}
TREE.Tier[2][1] = { Name = "Résistance", Description = "Grâce au Côté Obscur, vous sentez moins la douleur (+50 PV par rapport à la base)", Icon = "wos/skilltrees/characterstats/armor.png", PointsRequired = 2, Requirements = { [1] = { 1 }, }, OnPlayerSpawn = function( ply ) ply:SetHealth( ply:Health() + 50 ) ply:SetMaxHealth( ply:GetMaxHealth() + 50 ) end, OnPlayerDeath = function( ply ) end, OnSaberDeploy = function( wep ) end,
}
TREE.Tier[2][2] = { Name = "Blocage", Description = "Apprennez à bloquer avec votre sabre (+25% efficacité de blocage)", Icon = "wos/skilltrees/ravager/scars.png", PointsRequired = 3, Requirements = { [1] = { 1 }, }, OnPlayerSpawn = function( ply ) end, OnPlayerDeath = function( ply ) end, OnSaberDeploy = function( wep ) wep.BlockDrainRate = wep.BlockDrainRate*0.75 end,
}
TREE.Tier[2][3] = { Name = "Vitesse", Description = "Vous courez plus vite grâce au Côté Obscur", Icon = "wos/skilltrees/characterstats/speed.png", PointsRequired = 2, Requirements = { [1] = { 1 }, }, OnPlayerSpawn = function( ply ) ply:SetRunSpeed( ply:GetRunSpeed() + 15 ) end, OnPlayerDeath = function( ply ) end, OnSaberDeploy = function( wep ) end,
}
TREE.Tier[3] = {}
TREE.Tier[3][1] = { Name = "Combattant", Description = "Le Côté Obscur vous permet de frapper plus efficacement (+15 dégats avec votre sabre)", Icon = "wos/skilltrees/ravager/combatant.png", PointsRequired = 3, Requirements = { [2] = { 1, 2, 3 }, }, OnPlayerSpawn = function( ply ) end, OnPlayerDeath = function( ply ) end, OnSaberDeploy = function( wep ) wep.SaberDamage = wep.SaberDamage + 15 end,
}
TREE.Tier[4] = {}
TREE.Tier[4][1] = { Name = "Repousse", Description = "Le Côté Obscur vous permet de repousser tout vos adversaires", Icon = "wos/forceicons/repulse.png", PointsRequired = 3, Requirements = { [3] = { 1 }, }, OnPlayerSpawn = function( ply ) end, OnPlayerDeath = function( ply ) end, OnSaberDeploy = function( wep ) wep:AddForcePower( "Force Repulse" ) end,
}
wOS:RegisterSkillTree( TREE )
La seule chose qui marche c'est quand j'utilise la restriction par Groupes ULX
Si quelqu'un sait pourquoi et éventuellement comment patch ça je suis prenneur
Merci