VKs Official Server
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Latest topics
» [Accepted] Unban Appeal
by VK.Angel.OfDeath Sun Mar 31, 2024 8:29 am

» [Solved] Password Reset
by VK.Angel.OfDeath Sat Mar 23, 2024 9:32 pm

» Ramadan Mubarak in Advance
by Shafin Sat Mar 23, 2024 1:52 pm

» Fatal Force - F2
by [F2]M60^ Sat Feb 24, 2024 4:07 pm

» Illegal Immigration | Old Memories | 2017
by BlackOps_Killer Fri Feb 09, 2024 5:25 pm

» VKs and VCMP Previews
by SJHere Sat Jan 20, 2024 1:51 pm

» The Resurgence 4th Year of Anniversary!
by Ninja Tue Jan 16, 2024 10:30 am

» [Solved]Stats Transfer application - Shado[W]^
by SJHere Mon Nov 27, 2023 5:06 pm

» Hi to all my good friends
by VK.Angel.OfDeath Sat Nov 18, 2023 9:04 am

» [Closed] Admin Application - F2.Ninja
by VK.Angel.OfDeath Sat Nov 18, 2023 8:49 am

» [Closed] Suggestion - We can change weather in props
by VK.Angel.OfDeath Sat Nov 18, 2023 8:45 am

» [Denied] Suggestion - Garbageman Job
by VK.Angel.OfDeath Sat Nov 04, 2023 8:27 pm

» Server Files (24/10/2023)
by VK.Angel.OfDeath Sun Oct 29, 2023 1:22 pm

» [Accepted] playaaa, ULK.Hulk. [M4]Halilibow - speed hacking in parkours
by VK.Angel.OfDeath Sun Oct 29, 2023 1:15 pm

» [Solved] Password Reset- TrapHole
by VK.Angel.OfDeath Sun Oct 29, 2023 1:13 pm

» [Solved] Request for Password Reset (2)
by VK.Angel.OfDeath Sat Oct 21, 2023 1:14 pm

» [Solved] Password Rest
by [RPG]G_man Thu Oct 05, 2023 9:07 pm

» [Noted] FPV Suggestion
by SJHere Sat Sep 02, 2023 8:31 pm

» [Solved] Pass Reset Application Foster^
by VK.Angel.OfDeath Fri Jul 28, 2023 12:00 pm

» Wanna start over again?
by palestrino Wed Jul 26, 2023 2:06 am

» hey guys <3
by D@Ch0uChI. Thu Jul 13, 2023 1:51 am

» [Solved] Stats Transfer
by SJHere Sat Jun 17, 2023 6:03 pm

» [Solved] Password Reset
by D4rKR420R Wed May 24, 2023 1:36 am

» Let's all gather after May in VKs
by Mike Sat May 20, 2023 4:55 pm

» [Denied] Player report - [ON]HunTinG
by D4rKR420R Tue May 02, 2023 5:25 am

» Hi halo here
by Alone Sun Apr 30, 2023 11:28 am

» An old Player Of Vks
by Alone Sat Apr 22, 2023 12:01 am

» [Bug Report] Bug in /domination - invisible bridge
by VK.Angel.OfDeath Wed Apr 19, 2023 3:38 pm

» [Noted] Bug Report - Zone
by LOGiC ™ Wed Mar 08, 2023 4:52 pm

» [Noted] Just Suggestion
by LOGiC ™ Wed Mar 08, 2023 4:11 pm

Top posters
ЧК. (8555)
[Guide] How to count NPC kills I_vote_lcap[Guide] How to count NPC kills I_voting_bar[Guide] How to count NPC kills I_vote_rcap 
VK.Angel.OfDeath (6454)
[Guide] How to count NPC kills I_vote_lcap[Guide] How to count NPC kills I_voting_bar[Guide] How to count NPC kills I_vote_rcap 
=SdS=KrlozZ... (6433)
[Guide] How to count NPC kills I_vote_lcap[Guide] How to count NPC kills I_voting_bar[Guide] How to count NPC kills I_vote_rcap 
D4rKR420R (5469)
[Guide] How to count NPC kills I_vote_lcap[Guide] How to count NPC kills I_voting_bar[Guide] How to count NPC kills I_vote_rcap 
=KF=Thunder^ (5405)
[Guide] How to count NPC kills I_vote_lcap[Guide] How to count NPC kills I_voting_bar[Guide] How to count NPC kills I_vote_rcap 
Pavonis (5197)
[Guide] How to count NPC kills I_vote_lcap[Guide] How to count NPC kills I_voting_bar[Guide] How to count NPC kills I_vote_rcap 
SJHere (4421)
[Guide] How to count NPC kills I_vote_lcap[Guide] How to count NPC kills I_voting_bar[Guide] How to count NPC kills I_vote_rcap 
Emma (4261)
[Guide] How to count NPC kills I_vote_lcap[Guide] How to count NPC kills I_voting_bar[Guide] How to count NPC kills I_vote_rcap 
Vipe[R] (3756)
[Guide] How to count NPC kills I_vote_lcap[Guide] How to count NPC kills I_voting_bar[Guide] How to count NPC kills I_vote_rcap 
47. (3704)
[Guide] How to count NPC kills I_vote_lcap[Guide] How to count NPC kills I_voting_bar[Guide] How to count NPC kills I_vote_rcap 

Statistics
We have 1947 registered users
The newest registered user is Toretto.

Our users have posted a total of 217818 messages in 16809 subjects
Top posting users this month
No user

Top posting users this week
No user


[Guide] How to count NPC kills

4 posters

Go down

[Guide] How to count NPC kills Empty [Guide] How to count NPC kills

Post by VK.Angel.OfDeath Fri Aug 21, 2020 7:21 am

Guide
This guide will tell you how to count NPC kills and give you an upgrade after 10 kills. If you want something to happen after 20 kills, 30 kills. Just do the same steps but replace 10 with something else.

1. /setnpccash that will increase a players property cash by 1000 for the NPCs he kills. Make sure the NPCs don't respawn.
Then simply have an /addupgradepickup with /changepickupcash 10000 (for 10 NPCs). That will solve the issue for you.

2. Variables:

- /addchangevariablepickup var_npckills 1 => Pickup Index 0. This will create a variable that increases by 1 for each kills
- /addupgradepickup 1 => Pickup Index 1. This will create the upgrade pickup that will be given after 10 kills
- /changepickupcondition 1 var_npckills == 10. This will allow people to use the upgrade when the var_npckills variable is 10.
- /addtriggerpickup2 0 1 => Pickup Index 2. Creates the trigger pickup used when killing an NPC
- /setnpcpickup <NPC Index> 6 2. Do this command for all NPC indexes to bind the pickup when killing an NPC.
VK.Angel.OfDeath
VK.Angel.OfDeath
Server Owner & Forum Admin
Server Owner & Forum Admin

Posts : 6454
Points : 9307
Reputation : 127
Join date : 2012-10-28
Age : 29
Location : Sweden

Back to top Go down

[Guide] How to count NPC kills Empty Re: [Guide] How to count NPC kills

Post by Frozen Fri Aug 21, 2020 7:40 am

Making variables is like solving Maths Razz. Thanks for that great info, I needed that.
Frozen
Frozen
Ultra Legendary

Posts : 2215
Points : 3236
Reputation : 60
Join date : 2017-06-09
Age : 19
Location : Earth

Back to top Go down

[Guide] How to count NPC kills Empty Re: [Guide] How to count NPC kills

Post by VK.Angel.OfDeath Fri Aug 21, 2020 7:57 am

FroZeN wrote:Making variables is like solving Maths Razz. Thanks for that great info, I needed that.

Not exactly. You will get the hang of it. We are just storing a value and then checking it. /changepickupcondition uses programming conditions like ==, != and other stuff you can learn about in the guide and also by typing /conditionlist once you memorize that it's really easy. Variables are harder though because they can do so much more compared to other settings.
VK.Angel.OfDeath
VK.Angel.OfDeath
Server Owner & Forum Admin
Server Owner & Forum Admin

Posts : 6454
Points : 9307
Reputation : 127
Join date : 2012-10-28
Age : 29
Location : Sweden

Back to top Go down

[Guide] How to count NPC kills Empty Re: [Guide] How to count NPC kills

Post by MeLoDy^ Fri Aug 21, 2020 4:08 pm

Great doing! Smile
MeLoDy^
MeLoDy^
Legendary Member
Legendary Member

Gender : Male
Posts : 1150
Points : 1647
Reputation : 5
Join date : 2018-12-10
Age : 20
Location : East Side.

Back to top Go down

[Guide] How to count NPC kills Empty Re: [Guide] How to count NPC kills

Post by Shafin Sat Aug 22, 2020 5:19 am

Nice!
Shafin
Shafin
Epic Member
Epic Member

Gender : Male
Posts : 569
Points : 911
Reputation : 2
Join date : 2019-01-06
Age : 19
Location : Bangladesh

Back to top Go down

[Guide] How to count NPC kills Empty Re: [Guide] How to count NPC kills

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum