From 7075caaabc9cf27e8bfcc56324f560c27dfec043 Mon Sep 17 00:00:00 2001 From: TurmoilToad Date: Mon, 7 Jan 2019 15:58:51 -0500 Subject: [PATCH] pause, permaclass, permagender, permarace, playerfeature, playergender, playerrace --- Perl-API.md | 126 +++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 119 insertions(+), 7 deletions(-) diff --git a/Perl-API.md b/Perl-API.md index a4d95f8..0ed36a8 100644 --- a/Perl-API.md +++ b/Perl-API.md @@ -2714,16 +2714,128 @@ quest::npcsize(17); quest::npctexture(2); ``` +## pause + +      **Parameter(s):** + +      duration-ms _(int)_ + +      **Usage:** + +      Forces the NPC to pause for the specified duration in ms. + +      **Example:** + +```perl +#:: Pause for 1 second +quest::pause(1000); +``` + +## permaclass + +      **Parameter(s):** + +      class_id _(int)_ + +      **Usage:** + +      Permanently changes the class of the client character that triggered the event to the specified class, and disconnects them. + +      **Example:** + +```perl +#:: Change class to Warrior +quest::permaclass(1); +``` + +## permagender + +      **Parameter(s):** + +      gender_id _(int)_ + +      **Usage:** + +      Permanently changes the gender of the client character that triggered the event to the specified gender, and disconnects them. + +      **Example:** + +```perl +#:: Change gender 0 = Male, 1 = Female, 2 = Neuter. +quest::permagender(0); +``` + +## permarace + +      **Parameter(s):** + +      race_id _(int)_ + +      **Usage:** + +      Permanently changes the [Race Type](https://github.com/EQEmu/Server/wiki/Race-Types) of the client character that triggered the event to the specified race, and disconnects them. + +      **Example:** + +```perl +#:: Change race to Human +quest::permarace(1); +``` + +## playerfeature + +      **Parameter(s):** + +      feature _(string)_, setting _(int)_ + +      **Usage:** + +      Temporarily changes the player feature to the specified setting. Acceptable strings are: race, gender, texture, helm, haircolor, beardcolor, eyecolor1, eyecolor2, hair, face, beard, heritage, tattoo, details, or size. + +      **Example:** + +```perl +#:: Change race to Human +quest::playerfeature("race", 1); +``` + +## playergender + +      **Parameter(s):** + +      gender_id _(int)_ + +      **Usage:** + +      Temporarily changes the gender of the client character that triggered the event to the specified gender. + +      **Example:** + +```perl +#:: Change gender 0 = Male, 1 = Female, 2 = Neuter. +quest::playergender(0); +``` + +## playerrace + +      **Parameter(s):** + +      race_id _(int)_ + +      **Usage:** + +      Temporarily changes the [Race Type](https://github.com/EQEmu/Server/wiki/Race-Types) of the client character that triggered the event to the specified race. + +      **Example:** + +```perl +#:: Change race to Human +quest::playerrace(1); +``` + (Work in Progress) ```perl -quest::pause(int duration-ms) -quest::permaclass(int class_id) -quest::permagender(int gender_id) -quest::permarace(int race_id) -quest::playerfeature(string feature [race|gender|texture|helm|haircolor|beardcolor|eyecolor1|eyecolor2|hair|face|beard|heritage|tatoo|details|size], int setting) -quest::playergender(int gender_id) -quest::playerrace(int race_id) quest::playersize(int newsize) quest::playertexture(int texture_id) quest::popup(string window_title, string message, int popup_id, int buttons, int duration)