Skip to content

Instantly share code, notes, and snippets.

@nazwadi
Last active January 18, 2023 05:29
Show Gist options
  • Save nazwadi/6b7e7bd2acdb74c20d8c7af34d168445 to your computer and use it in GitHub Desktop.
Save nazwadi/6b7e7bd2acdb74c20d8c7af34d168445 to your computer and use it in GitHub Desktop.
Create soulbound keys (EQEMU scripts)
# place this script in quests/global/global_player.pl
sub EVENT_DEATH_COMPLETE {
@keyIds = (20883);
my $corpse = $entity_list->GetCorpseByOwner($client);
foreach(@keyIds) {
if ($corpse->HasItem($_)) {
$corpse->RemoveItemByID($_);
quest::summonitem($_);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment