diff --git a/Perl-General-Functions.md b/Perl-General-Functions.md index 426262e..0b80284 100644 --- a/Perl-General-Functions.md +++ b/Perl-General-Functions.md @@ -1,34 +1,34 @@ Perl general functions are wrapped within the quest type. ```perl -quest::activespeakactivity() # int +quest::activespeakactivity(uint task_id) # int quest::activespeaktask() # int -quest::activetasksinset() # int +quest::activetasksinset(int task_set) # int quest::addldonloss(long losses, int theme_id) # void quest::addldonpoints(long points, int theme_id) # void quest::addldonwin(long wins, int theme_id) # void quest::addloot(int item_id, int charges) # void quest::AddNode(float x, float y, float z, float best_z, int requested_id) # void quest::addskill(int skill_id, int int_value) # void -quest::AssignGroupToInstance() # void -quest::AssignRaidToInstance() # void +quest::AssignGroupToInstance(int instance_id) # void +quest::AssignRaidToInstance(int instance_id) # void quest::assigntask(uint task_id, bool enforce_level_requirement) # void -quest::AssignToInstance() # void -quest::attack() # void -quest::attacknpc() # void -quest::attacknpctype() # void -quest::buryplayercorpse() # uint +quest::AssignToInstance(int instance_id) # void +quest::attack(string client_name) # void +quest::attacknpc(int npc_entity_id) # void +quest::attacknpctype(int npc_type_id) # void +quest::buryplayercorpse(int char_id) # uint quest::castspell(int spell_id, int target_id) # void -quest::changedeity() # void -quest::checktitle() # bool -quest::ChooseRandom() # void -quest::clear_npctype_cache() # void +quest::changedeity(int diety_id) # void +quest::checktitle(titleset) # bool +quest::ChooseRandom(... list ...) # void +quest::clear_npctype_cache(int npc_type_id) # void quest::clear_proximity() # void -quest::clear_zone_flag() # void +quest::clear_zone_flag(int zone_id) # void quest::clearspawntimers() # void quest::Client::new() # void quest::collectitems(int item_id, bool remove_item) # void -quest::completedtasksinset() # int +quest::completedtasksinset(int task_set) # int quest::ConnectNodeToNode(int node1, int node2, int teleport, uint doorid) # void quest::createBot(string firstname, string lastname, int level, int race_id, int class_id, int gender_id) # uint quest::createdoor(string modelname, float x, float y, float z, float heading, int object_type, int size) # void @@ -46,161 +46,161 @@ quest::crosszonesignalclientbychar_id(string name, int int_value) # void quest::crosszonesignalclientbychar_id(string name, int int_value) # void quest::crosszonesignalnpcbynpctypeid(int npc_type_id, int int_value) # void quest::debug(string message, int debug_level) # void -quest::delglobal() # void -quest::depop() # void -quest::depop_withtimer() # void -quest::depopall() # void -quest::depopzone() # void -quest::DestroyInstance() # void +quest::delglobal(string key) # void +quest::depop(int npc_type_id) # void +quest::depop_withtimer(int npc_type_id) # void +quest::depopall(int npc_type_id) # void +quest::depopzone(bool StartSpawnStatus) # void +quest::DestroyInstance(uint id) # void quest::ding() # void quest::disable_proximity_say() # void -quest::disable_spawn2() # void -quest::disablerecipe() # void +quest::disable_spawn2(int spawn2_id) # void +quest::disablerecipe(recipe_id) # void quest::disabletask(int task_id1, int task_id2, ..., int task_id10) # void -quest::doanim() # void +quest::doanim(int anim_id) # void quest::echo(int color_id, string message) # void -quest::emote() # void +quest::emote(string message) # void quest::enable_proximity_say() # void -quest::enable_spawn2() # void -quest::enabledtaskcount() # int -quest::enablerecipe() # void +quest::enable_spawn2(int spawn2_id) # void +quest::enabledtaskcount(int task_set) # int +quest::enablerecipe(recipe_id) # void quest::enabletask(int task_id1, int task_id2, ..., int task_id10) # void -quest::enabletitle() # void +quest::enabletitle(int titleset) # void quest::EntityList::new() # void -quest::exp() # void +quest::exp(int amt) # void quest::faction(int faction_id, int int_value, int temp) # void quest::factionvalue() # void -quest::failtask() # void -quest::firsttaskinset() # int +quest::failtask(uint task_id) # void +quest::firsttaskinset(int task_set) # int quest::FlagInstanceByGroupLeader(uint zone, int version) # void quest::FlagInstanceByRaidLeader(uint zone, int version) # void -quest::FlyMode() # void +quest::FlyMode(uint 0/1/2) # void quest::follow(int entity_id, int distance) # void quest::forcedoorclose(int door_id, bool alt_mode) # void quest::forcedooropen(int door_id, bool alt_mode) # void quest::get_spawn_condition(string zone_short, int instance_id, int condition_id) # uint -quest::GetCharactersInInstance() # string -quest::getguildnamebyid() # string +quest::GetCharactersInInstance(int instance_id) # string +quest::getguildnamebyid(guild_id) # string quest::GetInstanceID(string zone_name, int version) # void quest::GetInstanceTimer() # void -quest::GetInstanceTimerByID() # void -quest::getlevel() # uint -quest::getplayerburiedcorpsecount() # uint -quest::GetSpellResistType() # void -quest::GetSpellTargetType() # void +quest::GetInstanceTimerByID(int instance_id) # void +quest::getlevel(type) # uint +quest::getplayerburiedcorpsecount(int char_id) # uint +quest::GetSpellResistType(int spell_id) # void +quest::GetSpellTargetType(int spell_id) # void quest::gettaskactivitydonecount(uint task_id, uint activity_id) # void quest::GetTimeSeconds() # void -quest::GetZoneID() # void -quest::GetZoneLongName() # string +quest::GetZoneID(string zone) # void +quest::GetZoneLongName(zone) # string quest::givecash(int copper, int silver, int gold, int platinum) # void quest::gmmove(float x, float y, float z) # void quest::gmsay(string message, int color_id, bool send_to_world) # void -quest::has_zone_flag() # uint +quest::has_zone_flag(int zone_id) # uint quest::incstat(int stat_id, int int_value) # void -quest::IsBeneficialSpell() # uint -quest::isdisctome() # bool -quest::isdooropen() # uint +quest::IsBeneficialSpell(int spell_id) # uint +quest::isdisctome(int item_id) # bool +quest::isdooropen(int door_id) # uint quest::IsEffectInSpell(int spell_id, int effect_id) # uint quest::IsRunning() # uint -quest::istaskaappropriate() # uint -quest::istaskactive() # uint +quest::istaskaappropriate(int task) # uint +quest::istaskactive(uint task_id) # uint quest::istaskactivityactive(uint task_id, uint activity_id) # uint -quest::istaskcompleted() # int -quest::istaskenabled() # uint -quest::itemlink() # void -quest::lasttaskinset() # int -quest::LearnRecipe() # void -quest::level() # void +quest::istaskcompleted(uint task_id) # int +quest::istaskenabled(uint task_id) # uint +quest::itemlink(int item_id) # void +quest::lasttaskinset(int task_set) # int +quest::LearnRecipe(uint recipe_id) # void +quest::level(int newlevel) # void quest::MerchantCountItem(int npc_id, int item_id) # void -quest::MerchantSetItem(int npc_id, int item_id, int quantity) # void +quest::MerchantSetItem(int npc_id, item_id , int quantity) # void quest::MobList::new() # void quest::ModifyNPCStat(int stat_id, string str_value) # void quest::movegrp(int zone_id, float x, float y, float z) # void -quest::movepc(int zone_id, float x, float y, float z, float heading) # void -quest::MovePCInstance(int zone_id, int instance_id, float x, float y, float z, float heading) # void +quest::movepc(int zone_id, float x, float y, z , float heading) # void +quest::MovePCInstance(int zone_id, int instance_id, float x, float y, z , float heading) # void quest::moveto(float x, float y, float z, float heading, bool saveguard) # void quest::nexttaskinset(int task_set, uint task_id) # int quest::NPC::new() # void quest::npcfeature(string str_value, int int_value) # uint -quest::npcgender() # void -quest::npcrace() # void -quest::npcsize() # void -quest::npctexture() # void -quest::pause() # void -quest::permaclass() # void -quest::permagender() # void -quest::permarace() # void +quest::npcgender(int gender_id) # void +quest::npcrace(int race_id) # void +quest::npcsize(int size) # void +quest::npctexture(int texture_id) # void +quest::pause(int duration) # void +quest::permaclass(int class_id) # void +quest::permagender(int gender_id) # void +quest::permarace(int race_id) # void quest::playerfeature(string str_value, int int_value) # void -quest::playergender() # void -quest::playerrace() # void -quest::playersize() # void -quest::playertexture() # void +quest::playergender(int gender_id) # void +quest::playerrace(int race_id) # void +quest::playersize(int newsize) # void +quest::playertexture(int texture_id) # void quest::popup(string window_title, string message, int popup_id, int buttons, int duration) # void -quest::pvp() # void +quest::pvp(string mode) # void quest::qs_player_event(int char_id, string message) # void -quest::qs_send_query() # void +quest::qs_send_query(query) # void quest::QuestItem::new() # void -quest::rain() # void +quest::rain(int weather) # void quest::rebind(int zone_id, float x, float y, float z) # void -quest::RemoveAllFromInstance() # void -quest::RemoveFromInstance() # void -quest::removetitle() # void +quest::RemoveAllFromInstance(int instance_id) # void +quest::RemoveFromInstance(int instance_id) # void +quest::removetitle(int titleset) # void quest::repopzone() # void quest::resettaskactivity(uint task_id, uint activity_id) # void quest::respawn(int npc_type_id, int grid_id) # void quest::resume() # void quest::safemove() # void quest::save() # void -quest::say(string message, int language_id) # void +quest::say(message , int language_id) # void quest::saylink(string message, bool silent, string link_name) # string quest::scribespells(int max_level, int min_level) # uint -quest::selfcast() # void +quest::selfcast(int spell_id) # void quest::SendMail(string to, string from, string subject, string message) # void -quest::set_proximity(float min_x, float max_x, float min_y, float max_y, float min_z, float max_z) # void -quest::set_zone_flag() # void -quest::setallskill() # void +quest::set_proximity(float min_x, float max_x, float min_y, max_y , float min_z, float max_z) # void +quest::set_zone_flag(int zone_id) # void +quest::setallskill(int int_value) # void quest::setanim(int npc_type_id, int anim_num) # void quest::setglobal(string key, string str_value, int options, int duration) # void quest::setguild(unsigned long new_guild_id, int guild_rank_id) # void -quest::sethp() # void +quest::sethp(int percentage) # void quest::setlanguage(int skill_id, int int_value) # void -quest::setnexthpevent() # void -quest::setnextinchpevent() # void -quest::SetRunning() # void +quest::setnexthpevent(int at) # void +quest::setnextinchpevent(int at) # void +quest::SetRunning(bool val) # void quest::setskill(int skill_id, int int_value) # void -quest::setsky() # void +quest::setsky(new_sky) # void quest::setstat(int stat_id, int int_value) # void quest::settarget(string target_enum, int target_id) # void quest::settime(int new_hour, int new_min, int update_world) # void quest::settimer(string timer_name, int seconds) # void quest::settimerMS(string timer_name, int milliseconds) # void quest::sfollow() # void -quest::shout() # void -quest::shout2() # void -quest::showgrid() # void +quest::shout(string message) # void +quest::shout2(string message) # void +quest::showgrid(int grid_id) # void quest::signal(int npc_id, int wait_ms) # void quest::signalwith(int npc_id, int signal_id, int wait_ms) # void -quest::snow() # void +quest::snow(int weather) # void quest::spawn(int npc_type_id, int grid_id, int int_unused, float x, float y, float z) # uint quest::spawn2(int npc_type_id, int grid_id, int int_unused, float x, float y, float z, float heading) # uint quest::spawn_condition(string zone_short, int instance_id, int condition_id, int int_value) # void -quest::spawn_from_spawn2() # uint -quest::start() # void +quest::spawn_from_spawn2(spawn2_id) # uint +quest::start(int wp) # void quest::stop() # void quest::stopalltimers() # void -quest::stoptimer() # void +quest::stoptimer(string timer_name) # void quest::summonallplayercorpses(int char_id, float dest_x, float dest_y, float dest_z, float dest_heading) # bool quest::summonburiedplayercorpse(int char_id, float dest_x, float dest_y, float dest_z, float dest_heading) # bool quest::summonitem(int item_id, int charges) # void -quest::surname() # void +quest::surname(string name) # void quest::targlobal(string key, string str_value, int duration, int npc_id, int char_id, int zone_id) # void -quest::task_setselector() # void -quest::taskexplorearea() # void +quest::task_setselector(task_setid) # void +quest::taskexplorearea(uint explore_id) # void quest::taskselector(int task_id1, int task_id2, ..., int task_id%i) # void -quest::tasktimeleft() # int +quest::tasktimeleft(uint task_id) # int quest::toggle_spawn_event(uint event_id, bool is_enabled, bool is_strict, bool reset_base) # void -quest::toggledoorstate() # void -quest::traindisc() # void +quest::toggledoorstate(int door_id) # void +quest::traindisc(int discipline_tome_item_id) # void quest::traindiscs(int max_level, int min_level) # uint quest::unique_spawn(int npc_type_id, int grid_id, int int_unused, float x, float y, float z, float heading) # uint quest::unscribespells() # void @@ -208,13 +208,14 @@ quest::untraindiscs() # void quest::UpdateInstanceTimer(int instance_id, int duration) # void quest::UpdateSpawnTimer(uint spawn2_id, uint updated_time_till_repop) # void quest::updatetaskactivity(uint task_id, uint activity_id, int count, bool ignore_quest_update) # void -quest::varlink() # string +quest::varlink(int item_id) # string quest::voicetell(string client_name, int macro_id, int race_id, int gender_id) # void quest::we(int channel_id, string message) # void quest::wearchange(uint slot, int texture_id, int hero_forge_model_id, int elite_material_id) # void quest::worldwidemarquee(int color_id, int priority, int fade_in, int fade_out, int duration, string message) # void quest::write(string file, string message) # void quest::ze(int channel_id, string message) # void -quest::zone() # void +quest::zone(string zone_name) # void + ``` \ No newline at end of file