Receive $ for killing NPC in LugorMod? -1 reply

Please wait...

Guest

I didn't make it!

0 XP

 
#1 12 years ago

I'm not new to code writing but I don't know any advanced code for JKA. I'm getting good at model placing and spawners, but I haven't really figured out any advanced code that will trigger events in the game. I usually use something like - /spawner desann 1 npc - to place an npc that will continue to spawn after it is killed. Is there any way to add a /pay or a /dropcr to this code so you can earn money for killing the npc?




Mikouen VIP Member

What?

145,608 XP

4th September 2005

4 Uploads

11,730 Posts

2 Threads

#2 12 years ago

Ask the Lugormod developers if they'd be willing to code it in. After all, they're the ones with the mod's source code.


I don't know how, and I don't know why, but this is totally Sheep's fault.



han bacca

The Internet ends at GF

50 XP

5th November 2006

0 Uploads

158 Posts

0 Threads

#3 12 years ago

I've got a command for you MrQuick. Take a look here this is all you need. /place misc_model_breakable 0 parm1,4,parm2,1000,wait,0,model,map_objects/factory/f_con1,spawnflags,253,usescript,common/switch_on,targetname,bobaswitch,target,bobaspwn,angle,0 Now that was your first command the console.The next two commands are, one an add on "that locks the switch" and two the NPC spawner. /place target_deactivate 0 targetname,bobaspwn,target,bobaswitch /place NPC_spawner 20 NPC_type,boba_fett,targetname,bobaspwn,count,-1,showhealth,1,health,1950,NPC_Target,bobadead,angle,270 Alright aim at the console you made for the 2nd command and aim at the ground where you want the NPC for the NPC command. Now your going to make the 2nd console, this is the console that you press when you kill the npc for your prize. /place misc_model_breakable 0 parm1,4,parm2,1000,wait,0,model,map_objects/factory/f_con1,spawnflags,253,usescript,common/switch_on,targetname,bobacrswitch,target,bobagetcr,angle,0 Now your cr console is placed,the next two commands lock the console so you cant touch it till the NPC dies and the ammount of money you recieve. Note: Aim at your cr console when you place insert these commands. /place target_activate 0 targetname,bobadead,target,bobacrswitch /place target_credits 0 targetname,bobagetcr,count,75 Ok the 75 at the end of the command, "just above" is the ammount of money, set to whatever you like. Now we have just a few more commands. These commands ensure your quest runs properly. These commands are required so observe them. Aim this command at your CR console. /place target_deactivate 0 targetname,bobagetcr,target,bobacrswitch Aim this command at your spawner console. /place target_activate 0 targetname,bobadead,target,bobaswitch Now the last two commands you sholud aim at your cr console. /place target_deactivate 0 targetname,bobacrstart,bobacrswitch /place trigger_always 0 target,bobacrstart Now your all set goodluck! :cya:




han bacca

The Internet ends at GF

50 XP

5th November 2006

0 Uploads

158 Posts

0 Threads

#4 12 years ago

I've got a command for you MrQuick. Take a look here this is all you need. /place misc_model_breakable 0 parm1,4,parm2,1000,wait,0,model,map_objects/factory/f_con1,spawnflags,253,usescript,common/switch_on,targetname,bobaswitch,target,bobaspwn,angle,0 Now that was your first command the console.The next two commands are, one an add on "that locks the switch" and two the NPC spawner. /place target_deactivate 0 targetname,bobaspwn,target,bobaswitch /place NPC_spawner 20 NPC_type,boba_fett,targetname,bobaspwn,count,-1,showhealth,1,health,1950,NPC_Target,bobadead,angle,270 Alright aim at the console you made for the 2nd command and aim at the ground where you want the NPC for the NPC command. Now your going to make the 2nd console, this is the console that you press when you kill the npc for your prize. /place misc_model_breakable 0 parm1,4,parm2,1000,wait,0,model,map_objects/factory/f_con1,spawnflags,253,usescript,common/switch_on,targetname,bobacrswitch,target,bobagetcr,angle,0 Now your cr console is placed,the next two commands lock the console so you cant touch it till the NPC dies and the ammount of money you recieve. Note: Aim at your cr console when you place insert these commands. /place target_activate 0 targetname,bobadead,target,bobacrswitch /place target_credits 0 targetname,bobagetcr,count,75 Ok the 75 at the end of the command, "just above" is the ammount of money, set to whatever you like. Now we have just a few more commands. These commands ensure your quest runs properly. These commands are required so observe them. Aim this command at your CR console. /place target_deactivate 0 targetname,bobagetcr,target,bobacrswitch Aim this command at your spawner console. /place target_activate 0 targetname,bobadead,target,bobaswitch Now the last two commands you sholud aim at your cr console. /place target_deactivate 0 targetname,bobacrstart,bobacrswitch /place trigger_always 0 target,bobacrstart Now your all set goodluck! :cya:




Guest

I didn't make it!

0 XP

 
#5 12 years ago
han bacca;3371195I've got a command for you MrQuick. Take a look here this is all you need. /place misc_model_breakable 0 parm1,4,parm2,1000,wait,0,model,map_objects/factory/f_con1,spawnflags,253,usescript,common/switch_on,targetname,bobaswitch,target,bobaspwn,angle,0 Now that was your first command the console.The next two commands are, one an add on "that locks the switch" and two the NPC spawner. /place target_deactivate 0 targetname,bobaspwn,target,bobaswitch /place NPC_spawner 20 NPC_type,boba_fett,targetname,bobaspwn,count,-1,showhealth,1,health,1950,NPC_Target,bobadead,angle,270 Alright aim at the console you made for the 2nd command and aim at the ground where you want the NPC for the NPC command. Now your going to make the 2nd console, this is the console that you press when you kill the npc for your prize. /place misc_model_breakable 0 parm1,4,parm2,1000,wait,0,model,map_objects/factory/f_con1,spawnflags,253,usescript,common/switch_on,targetname,bobacrswitch,target,bobagetcr,angle,0 Now your cr console is placed,the next two commands lock the console so you cant touch it till the NPC dies and the ammount of money you recieve. Note: Aim at your cr console when you place insert these commands. /place target_activate 0 targetname,bobadead,target,bobacrswitch /place target_credits 0 targetname,bobagetcr,count,75 Ok the 75 at the end of the command, "just above" is the ammount of money, set to whatever you like. Now we have just a few more commands. These commands ensure your quest runs properly. These commands are required so observe them. Aim this command at your CR console. /place target_deactivate 0 targetname,bobagetcr,target,bobacrswitch Aim this command at your spawner console. /place target_activate 0 targetname,bobadead,target,bobaswitch Now the last two commands you sholud aim at your cr console. /place target_deactivate 0 targetname,bobacrstart,bobacrswitch /place trigger_always 0 target,bobacrstart Now your all set goodluck! :cya:

Good start to the forums mate! :nodding:




Darth Parrot™

This post is copyrighted 2007©

50 XP

4th March 2006

0 Uploads

1,871 Posts

0 Threads

#6 11 years ago

Wow, you should seriously consider writing tutorials for the master sticky han bacca. :)




Guest

I didn't make it!

0 XP

 
#7 11 years ago

Thanks for the code, everyone! I love tinkering with new code!

I haven't tried the code with boba_fett, so I am unsure if the error is with the code as a whole or with the NPC(s) I'm using.

I tried the code provided, only I changed the spawner type to a shadowtrooper or Desann and was unable to get either to work properly. The NPC(s) would never successfully spawn. The only thing the consoles would do is generate credits once and never work again. Is this code only good for a boba_fett spawner or does it need to be altered? Also, I am unfamiliar with some of the objects in this code; like the "20" after NPC_spawner or the "parm1,4,parm2,1000" in the console code. If anyone knows where I can get a LugorMod or JKA code book that I could reference, I think I might wigg out. Thanks.




Omegasigma

Mapper and concept artist

50 XP

16th March 2006

0 Uploads

1,484 Posts

0 Threads

#8 11 years ago

sounds like a GTA idea