RedBeard submitted a new resource:

Pk Gang by x-ray - NPC Player Killer group

Original link:

http://www.runuo.com/community/threads/pk-gang.36388/




Put "HKGangSpawn" on a spawner and it will spawn a gang of pkers that

what they do:

- target a player from 200 tiles away (adjustable).

- Hunt you down if you try to hide

- loot player corpse

- stay near corpse for set amount of time for chance of a rez kill

- eventually attempt to return back home (or find new target)

- Players gain Justice points for killing them




spawns a leader (warrior type)...

Read more about this resource...
 
+ CUSTOM ADDs/added 11 27/hkgang/HKArcher.cs:
CS0103: Line 45: The name 'PackWeapon' does not exist in the current context
+ CUSTOM ADDs/added 11 27/hkgang/HKLeader.cs:
CS0103: Line 49: The name 'PackWeapon' does not exist in the current context
+ CUSTOM ADDs/added 11 27/hkgang/HKMage.cs:
CS0103: Line 45: The name 'PackScroll' does not exist in the current context
CS0103: Line 46: The name 'PackScroll' does not exist in the current context
CS0103: Line 47: The name 'PackScroll' does not exist in the current context
+ CUSTOM ADDs/added 11 27/hkgang/HKWarrior.cs:
CS0103: Line 47: The name 'PackWeapon' does not exist in the current context
 
I do not use scrolls, but that script was made before the loot system was changed. Here is an example

Code:
        public override void GenerateLoot()
        {
            this.AddLoot(LootPack.Rich);
            this.AddLoot(LootPack.Gems, 1);
        }

refer to your loot scripts and other npc scripts for the proper code.
[doublepost=1480301092][/doublepost]I dug this up from an old script, (since my shard doesn't give scrolls as loot i had to search for it lol)

Code:
AddLoot(LootPack.MedScrolls, 2);

As an example
 
Errors:
+ hkgang/HKArcher.cs:
CS0115: Line 53: 'HKArcher.CanHeal': no suitable method found to override
+ hkgang/HKLeader.cs:
CS0115: Line 57: 'HKLeader.CanHeal': no suitable method found to override
+ hkgang/HKWarrior.cs:
CS0115: Line 55: 'HKWarrior.CanHeal': no suitable method found to override
Scripts: One or more scripts failed to compile or no script files were found.
 
Errors:
+ hkgang/HKArcher.cs:
CS0115: Line 53: 'HKArcher.CanHeal': no suitable method found to override
+ hkgang/HKLeader.cs:
CS0115: Line 57: 'HKLeader.CanHeal': no suitable method found to override
+ hkgang/HKWarrior.cs:
CS0115: Line 55: 'HKWarrior.CanHeal': no suitable method found to override
Scripts: One or more scripts failed to compile or no script files were found.

Try this method
public class CuSidhe : BaseMount
{
public override double HealChance => 1.0;
 
Back