-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: pvp, simplified singles & multi logic (#357)
- Loading branch information
1 parent
7e0775a
commit 807a06c
Showing
27 changed files
with
1,012 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[debugproc,skull] | ||
~pk_skull(3000); | ||
|
||
[debugproc,clearskull] | ||
~clear_pk_skull; | ||
|
||
[debugproc,singles] | ||
def_string $pk_preyname; | ||
def_string $pk_predatorname; | ||
if(.finduid(%pk_predator1) = true) { | ||
$pk_predatorname = .displayname; | ||
} | ||
if(.finduid(%pk_prey1) = true) { | ||
$pk_preyname = .displayname; | ||
} | ||
mes("Last person you attacked: <$pk_preyname>."); | ||
mes("Last person who attacked you: <$pk_predatorname>."); | ||
mes("Ticks ago you were in combat: <tostring(sub(map_clock, %lastcombat))>."); | ||
if(.finduid(%pk_prey1) = true) { | ||
mes("Ticks ago your opponent was in combat: <tostring(sub(map_clock, .%lastcombat))>."); | ||
} | ||
if (npc_finduid(%aggressive_npc) = true) { | ||
mes("Aggressive NPC: <npc_name>"); | ||
if (.finduid(%npc_aggressive_player) = true) { | ||
mes("Aggressive NPC's target: <.displayname>"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.