Gmod NPC Reward Manager - Script
No need to modify the Lua files of the Npcs you just installed on your server. No need to pay devs for a rewarding modification job every time you install new Npcs. Buy the script once and do the modifications in real time whenever you want and without any programming skills in Glua or Lua. This Npcs reward management addon is made for this kind of need.
NPC Reward Manager allows to create and apply variables linked to the metatable player with values defined by NPC class, to the player who eliminated him. It is possible to provide a minimum and maximum value to create a random number generation.
For example if you add the variable addMoney, with a minimum value of 5 and a maximum value of 10, when the npc is killed by the player, the player wins between 5 and 10 $. This will work with all variables.
❮
❯
Description of Gmod NPC Reward Manager
Contents :- π Short presentation of Gmod NPC Reward Manager
- β What kind of need can Gmod NPC Reward Manager meet
- π Description
- π¦ Contenues
- π Customization options
- πΉοΈ Console commands
- πΎ Backup and persistence
- βοΈ Compatibility
- β The original functions that can be useful to you on Gmod associated with the Class player for applications:
π Small presentation of Gmod NPC Reward Manager
Looking for a Gmod addon so that when a user eliminates an NPC earns a reward through the functions related to your gamemode and addons? Such as XP, or $ for DarkRP money? Or something else? [Gmod NPC REWARD Manager[/b] does this job, add NPC classes, insert variables/functions to apply such as AddMoney (for player:AddMoney() ) or AddXP (for player:AddXP() if you have a levelup system installed) and when they are eliminated your users will earn this value, or a random number between the minimum and maximum value that you set up yourself, without coding a single line.
β What kind of need can Gmod NPC Reward Manager answer?
If you have any questions, Gmod NPC Reward Manager could be useful for you:
1. I want my players to earn money or experience points when they kill a type of NPC
2. I would like to customize the amount of exp or money a npc gives to the player
3. I would like the currency and xp to be shared between all attackers of a npc
4. I would like to add rewards manually via meta variables linked to other addons e.g. add Mana with player:SetMana(50) when the player kills a specific type of npc.
5. I would like to generate the reward gain per npc type from a list and interface.
π Description
Gmod NPC REWARD Manager is a Variable insertion system linked to the Player class, table provided by the meta table FindMetaTable('player' ) or debug. getregistry()['"player"], the advantage is that you can install Npcs from the gmod workshop and directly apply the functions to launch when they are eliminated, without reboot, without fiddling with the different addons, and when you have many NPC save time in the configuration, the menu allows to gather everything in a list so you don't disperse in the different Npcs addons.
Two variables (addMoney and addXP) are inserted by default when you add an npc in the list, they will serve as a basic example but are already working, estimating that they will be the most used variables.
π¦ Contents
1. A Class Management System of Npcs
2. A System of insertion of class of npc
3. A System of addition of variable
4. A minimum and maximum value addition system
5. Delete in real time a variable or a class of npc from the list.
6. Everything is applied in real time.
π Customization options
Customize the interface color if you want to change it
πΉοΈ The console commands
The command to open the management menu: npc_reward_manager
πΎ Backup and persistence
There's nothing to do, install and reboot, backups are made with every change
βοΈ Compatibility
Compatible with every Gamemode imaginable, DarkRP, StarwarsRP, HogwartsRP, Clockwork, Sandbox...
Compatible with my addons made to work with Vrondakis Level system for what concerns the function player:AddXP() add the variable AddXP and there you go.
Compatible with the functions provided by darkrpgmaster (DarkRPG).
Compatible with Nextbot and VJ Base since version 1.2
β The original functions that can be useful on Gmod associated with the Class player for applications:
We are only interested in the Glua functions on the server side:
player:addXP( xp ) //Adds XP to the player who kills the npc (You must have a leveling system)
player:addLevels( lvl ) //Adds a level to the player who kills the npc
player:addMoney( lvl ) //Adds money to the player who kills the npc (You must have a money system OR DarkRP)
player:AddFrags( number ) //Adds frags to the player who kills the npc
player:SetArmor( number ) //Adds armor to the player who kills the npc
player:SetJumpPower( number ) //To add jumping power ect.
The command: npc_var_player_metatable allows to display in the server console all possible variables
Path: garrysmod/addons/nordahl_npc_reward_manager
- The AddWorkshop function is automatically added to the script server file and can be deactivated from the configuration file. : resource.AddWorkshop( 2690171927 )
- To add gmod workshop resources to your collection : Gmod NPC Reward Manager [Content Only] | Gmod Workshop
From the chat : !npc_reward
It will then display a list of npcs near you, select the one you want, and it will appear in the list.
If you have a leveling system installed, the variable to add is: addXP
This means that when the player kills an NPC then the following function will be used: player:addXP( *number )
*number is the number you chose for the class. A minimum value and a maximum value will give a random number between these two values.
Be careful the command is case sensitive.
If you have a currency system installed or DarkRP that includes this by default the variable to insert is: addMoney
This means that when the player kills an NPC then the following function will be used: player:addXP( *number )
*number is the number you chose for the class. A minimum value and a maximum value will give a random number between these two values.
Be careful the command is case sensitive.
By typing the command : print_player_metatable this command has been created for Gmod NPC VAR Manager
0 = The last one to make the decisive move to kill the NPC wins the payoff. (Default)
1 = The winnings are shared when the NPC dies between the different users who contributed to it according to the damage they inflicted.
Tip to avoid the leak of Gmod NPC Reward Manager installed on your Garry's Mod server: How avoid the Leak of your Gmod scripts
How Install an addon on Gmod? : How install an addon on Gmod
How Publish an addon on the Gmod workshop? : Documentation how create a content pack to publish on the workshop?
Creator: Norda Scripts
Sales | 42 |
Published | 2 years |
Last update | |
Version | version 1.4 |
DRM | Yes |
Categories | Gmod addons |
Requierements | Garry's Mod Server |
Languages | π¬π§ π«π· π©πͺ πͺπΈ |
Admin DarkRP Entities Gameplay Management Allgamemode |