mirror of
https://github.com/EQEmu/Server.git
synced 2026-07-02 00:47:16 +00:00
Update perl-api
+400
-386
@@ -36,83 +36,83 @@ sub EVENT_SAY {
|
|||||||
|
|
||||||
```perl
|
```perl
|
||||||
sub EVENT_AGGRO # Triggered when a mob aggros a client.
|
sub EVENT_AGGRO # Triggered when a mob aggros a client.
|
||||||
sub EVENT\_AGGRO\_SAY # Triggered when a mob is targeted, the player types something, and NPC is in combat.
|
sub EVENT_AGGRO_SAY # Triggered when a mob is targeted, the player types something, and NPC is in combat.
|
||||||
sub EVENT_ATTACK # Triggered when the NPC is attacked.
|
sub EVENT_ATTACK # Triggered when the NPC is attacked.
|
||||||
sub EVENT\_AUGMENT\_ITEM # Triggered when a client augments an item.
|
sub EVENT_AUGMENT_ITEM # Triggered when a client augments an item.
|
||||||
sub EVENT\_AUGMENT\_INSERT # Triggered when a client inserts an augment into an item.
|
sub EVENT_AUGMENT_INSERT # Triggered when a client inserts an augment into an item.
|
||||||
sub EVENT\_AUGMENT\_REMOVE # Triggered when a client removes an augment from an item.
|
sub EVENT_AUGMENT_REMOVE # Triggered when a client removes an augment from an item.
|
||||||
sub EVENT_CAST # Triggered when a client casts a spell.
|
sub EVENT_CAST # Triggered when a client casts a spell.
|
||||||
sub EVENT\_CAST\_BEGIN # Triggered when a client begins to cast a spell.
|
sub EVENT_CAST_BEGIN # Triggered when a client begins to cast a spell.
|
||||||
sub EVENT\_CAST\_ON # Triggered when a player casts a spell on a player or NPC.
|
sub EVENT_CAST_ON # Triggered when a player casts a spell on a player or NPC.
|
||||||
sub EVENT_CLICKDOOR # Triggered when the client clicks on a door object.
|
sub EVENT_CLICKDOOR # Triggered when the client clicks on a door object.
|
||||||
sub EVENT\_CLICK\_OBJECT # Triggered when the client clicks on an object.
|
sub EVENT_CLICK_OBJECT # Triggered when the client clicks on an object.
|
||||||
sub EVENT_COMBAT # Triggered when an NPC enters or leaves combat.
|
sub EVENT_COMBAT # Triggered when an NPC enters or leaves combat.
|
||||||
sub EVENT\_COMBINE\_FAILURE # Triggered when a combine is unsuccessful.
|
sub EVENT_COMBINE_FAILURE # Triggered when a combine is unsuccessful.
|
||||||
sub EVENT\_COMBINE\_SUCCESS # Triggered when a combine is successful.
|
sub EVENT_COMBINE_SUCCESS # Triggered when a combine is successful.
|
||||||
sub EVENT_COMMAND # Triggered when a player says anything like a command.
|
sub EVENT_COMMAND # Triggered when a player says anything like a command.
|
||||||
sub EVENT_CONNECT # Triggered when a player connects to the world.
|
sub EVENT_CONNECT # Triggered when a player connects to the world.
|
||||||
sub EVENT_DEATH # Triggered when the NPC dies. Fires before death finishes.
|
sub EVENT_DEATH # Triggered when the NPC dies. Fires before death finishes.
|
||||||
sub EVENT\_DEATH\_COMPLETE # Triggered when the NPC dies.
|
sub EVENT_DEATH_COMPLETE # Triggered when the NPC dies.
|
||||||
sub EVENT\_DESTROY\_ITEM # Triggered when a client destroys an item.
|
sub EVENT_DESTROY_ITEM # Triggered when a client destroys an item.
|
||||||
sub EVENT_DISCONNECT # Triggered when a player disconnects from the world.
|
sub EVENT_DISCONNECT # Triggered when a player disconnects from the world.
|
||||||
sub EVENT\_DISCOVER\_ITEM # Triggered when an item is discovered.
|
sub EVENT_DISCOVER_ITEM # Triggered when an item is discovered.
|
||||||
sub EVENT\_DROP\_ITEM # Triggered when a client drops an item.
|
sub EVENT_DROP_ITEM # Triggered when a client drops an item.
|
||||||
sub EVENT\_DUEL\_LOSE # Triggered when a client loses a duel.
|
sub EVENT_DUEL_LOSE # Triggered when a client loses a duel.
|
||||||
sub EVENT\_DUEL\_WIN # Triggered when a client wins a duel.
|
sub EVENT_DUEL_WIN # Triggered when a client wins a duel.
|
||||||
sub EVENT\_ENCOUNTER\_LOAD # Triggered when an encounter loads.
|
sub EVENT_ENCOUNTER_LOAD # Triggered when an encounter loads.
|
||||||
sub EVENT\_ENCOUNTER\_UNLOAD # Triggered when an encounter unloads.
|
sub EVENT_ENCOUNTER_UNLOAD # Triggered when an encounter unloads.
|
||||||
sub EVENT_ENTER # Triggered by any client who enters a mob's proximity.
|
sub EVENT_ENTER # Triggered by any client who enters a mob's proximity.
|
||||||
sub EVENT\_ENTER\_AREA # Triggered when a client enters the area of a mob.
|
sub EVENT_ENTER_AREA # Triggered when a client enters the area of a mob.
|
||||||
sub EVENT_ENTERZONE # Triggered when a player enters the zone.
|
sub EVENT_ENTERZONE # Triggered when a player enters the zone.
|
||||||
sub EVENT\_EQUIP\_ITEM # Triggered when a player equips an item.
|
sub EVENT_EQUIP_ITEM # Triggered when a player equips an item.
|
||||||
sub EVENT_EXIT # Triggered by any client who leaves a mob's proximity.
|
sub EVENT_EXIT # Triggered by any client who leaves a mob's proximity.
|
||||||
sub EVENT\_FEIGN\_DEATH # Triggered when a client feign death.
|
sub EVENT_FEIGN_DEATH # Triggered when a client feign death.
|
||||||
sub EVENT\_FISH\_FAILURE # Triggered when a client fails at fishing.
|
sub EVENT_FISH_FAILURE # Triggered when a client fails at fishing.
|
||||||
sub EVENT\_FISH\_START # Triggered when a client starts fishing.
|
sub EVENT_FISH_START # Triggered when a client starts fishing.
|
||||||
sub EVENT\_FISH\_SUCCESS # Triggered when a client succeeds at fishing.
|
sub EVENT_FISH_SUCCESS # Triggered when a client succeeds at fishing.
|
||||||
sub EVENT\_FORAGE\_FAILURE # Triggered when a client fails at foraging.
|
sub EVENT_FORAGE_FAILURE # Triggered when a client fails at foraging.
|
||||||
sub EVENT\_FORAGE\_SUCCESS # Triggered when a client succeeds at foraging.
|
sub EVENT_FORAGE_SUCCESS # Triggered when a client succeeds at foraging.
|
||||||
sub EVENT\_GROUP\_CHANGE # Triggered when a group change occurs.
|
sub EVENT_GROUP_CHANGE # Triggered when a group change occurs.
|
||||||
sub EVENT\_HATE\_LIST # Triggered when a mob's hate list is changed.
|
sub EVENT_HATE_LIST # Triggered when a mob's hate list is changed.
|
||||||
sub EVENT_HP # Triggered by a mob's HP dropping below a threshold.
|
sub EVENT_HP # Triggered by a mob's HP dropping below a threshold.
|
||||||
sub EVENT_ITEM # Triggered when an item or money is turned into the mob.
|
sub EVENT_ITEM # Triggered when an item or money is turned into the mob.
|
||||||
sub EVENT\_ITEM\_CLICK # Triggered when an item is clicked.
|
sub EVENT_ITEM_CLICK # Triggered when an item is clicked.
|
||||||
sub EVENT\_ITEM\_CLICK_CAST # Triggered when a client casts the click effect on an item.
|
sub EVENT_ITEM_CLICK_CAST # Triggered when a client casts the click effect on an item.
|
||||||
sub EVENT\_ITEM\_ENTER\_ZONE # Called when an item that would trigger EVENT\_SCALE_CALC is in the inventory when a player zones in.
|
sub EVENT_ITEM_ENTER_ZONE # Called when an item that would trigger EVENT_SCALE_CALC is in the inventory when a player zones in.
|
||||||
sub EVENT\_ITEM\_TICK # Triggered when the click effect of an item ticks.
|
sub EVENT_ITEM_TICK # Triggered when the click effect of an item ticks.
|
||||||
sub EVENT\_KILLED\_MERIT # Triggered on NPC death when a client is in a group credited with doing the most damage to said loot table NPC.
|
sub EVENT_KILLED_MERIT # Triggered on NPC death when a client is in a group credited with doing the most damage to said loot table NPC.
|
||||||
sub EVENT\_LEAVE\_AREA # Triggered when a client leaves a mob's area.
|
sub EVENT_LEAVE_AREA # Triggered when a client leaves a mob's area.
|
||||||
sub EVENT\_LEVEL\_UP # Triggered when the player gains a level.
|
sub EVENT_LEVEL_UP # Triggered when the player gains a level.
|
||||||
sub EVENT_LOOT # Triggered when player successfully loots an item from a corpse.
|
sub EVENT_LOOT # Triggered when player successfully loots an item from a corpse.
|
||||||
sub EVENT\_NPC\_SLAY # Triggered when an NPC slays another NPC.
|
sub EVENT_NPC_SLAY # Triggered when an NPC slays another NPC.
|
||||||
sub EVENT\_PLAYER\_PICKUP # Triggered when a player picks up an object from the ground.
|
sub EVENT_PLAYER_PICKUP # Triggered when a player picks up an object from the ground.
|
||||||
sub EVENT_POPUPRESPONSE # Used with quest::popup.
|
sub EVENT_POPUPRESPONSE # Used with quest::popup.
|
||||||
sub EVENT\_PROXIMITY\_SAY # Triggered if the client enters a mob's proximity and uses the appropriate text trigger supplied beneath this event. (set quest::enable\_proximity\_say() and param 7 in q:set_prox)
|
sub EVENT_PROXIMITY_SAY # Triggered if the client enters a mob's proximity and uses the appropriate text trigger supplied beneath this event. (set quest::enable_proximity_say() and param 7 in q:set_prox)
|
||||||
sub EVENT_RESPAWN # Triggered when a mob respawns.
|
sub EVENT_RESPAWN # Triggered when a mob respawns.
|
||||||
sub EVENT_SAY # Triggered when a mob is targeted and the player types something.
|
sub EVENT_SAY # Triggered when a mob is targeted and the player types something.
|
||||||
sub EVENT\_SCALE\_CALC # Triggered when an item is equipped to scale the item.
|
sub EVENT_SCALE_CALC # Triggered when an item is equipped to scale the item.
|
||||||
sub EVENT_SIGNAL # Triggered by a call to quest::signal() or quest::signalwith().
|
sub EVENT_SIGNAL # Triggered by a call to quest::signal() or quest::signalwith().
|
||||||
sub EVENT_SLAY # Triggered whenever an NPC kills someone.
|
sub EVENT_SLAY # Triggered whenever an NPC kills someone.
|
||||||
sub EVENT_SPAWN # Triggered when the NPC spawns.
|
sub EVENT_SPAWN # Triggered when the NPC spawns.
|
||||||
sub EVENT\_SPELL\_EFFECT_CLIENT # Triggered when the spell lands on a client.
|
sub EVENT_SPELL_EFFECT_CLIENT # Triggered when the spell lands on a client.
|
||||||
sub EVENT\_SPELL\_EFFECT_NPC # Triggered when the spell lands on an NPC.
|
sub EVENT_SPELL_EFFECT_NPC # Triggered when the spell lands on an NPC.
|
||||||
sub EVENT\_SPELL\_BUFF\_TIC\_CLIENT # Triggered when the spell ticks on a client.
|
sub EVENT_SPELL_BUFF_TIC_CLIENT # Triggered when the spell ticks on a client.
|
||||||
sub EVENT\_SPELL\_BUFF\_TIC\_NPC # Triggered when the spell ticks on an NPC.
|
sub EVENT_SPELL_BUFF_TIC_NPC # Triggered when the spell ticks on an NPC.
|
||||||
sub EVENT\_SPELL\_EFFECT\_TRANSLOCATE\_COMPLETE # Triggered when translocation is complete.
|
sub EVENT_SPELL_EFFECT_TRANSLOCATE_COMPLETE # Triggered when translocation is complete.
|
||||||
sub EVENT\_SPELL\_FADE # Triggered when a spell fades.
|
sub EVENT_SPELL_FADE # Triggered when a spell fades.
|
||||||
sub EVENT\_TARGET\_CHANGE # Triggered when a mob changes their current target or clears it.
|
sub EVENT_TARGET_CHANGE # Triggered when a mob changes their current target or clears it.
|
||||||
sub EVENT_TASKACCEPTED # Triggered when a player accepts a task from the task selector window.
|
sub EVENT_TASKACCEPTED # Triggered when a player accepts a task from the task selector window.
|
||||||
sub EVENT\_TASK\_COMPLETE # Triggered when a player completes a task.
|
sub EVENT_TASK_COMPLETE # Triggered when a player completes a task.
|
||||||
sub EVENT\_TASK\_FAIL # Triggered when a player fails a task.
|
sub EVENT_TASK_FAIL # Triggered when a player fails a task.
|
||||||
sub EVENT\_TASK\_STAGE_COMPLETE # Triggered when a task stage is completed.
|
sub EVENT_TASK_STAGE_COMPLETE # Triggered when a task stage is completed.
|
||||||
sub EVENT\_TASK\_UPDATE # Triggered when a player's task is updated.
|
sub EVENT_TASK_UPDATE # Triggered when a player's task is updated.
|
||||||
sub EVENT_TIMER # Triggered by a quest::settimer().
|
sub EVENT_TIMER # Triggered by a quest::settimer().
|
||||||
sub EVENT_TRADE # Triggered by beginning a trade.
|
sub EVENT_TRADE # Triggered by beginning a trade.
|
||||||
sub EVENT\_UNAUGMENT\_ITEM # Triggered when a client removes an augment from an item.
|
sub EVENT_UNAUGMENT_ITEM # Triggered when a client removes an augment from an item.
|
||||||
sub EVENT\_UNEQUIP\_ITEM # Triggered when a client unequips an item.
|
sub EVENT_UNEQUIP_ITEM # Triggered when a client unequips an item.
|
||||||
sub EVENT\_WAYPOINT\_ARRIVE # Triggered when a mob arrives at a waypoint.
|
sub EVENT_WAYPOINT_ARRIVE # Triggered when a mob arrives at a waypoint.
|
||||||
sub EVENT\_WAYPOINT\_DEPART # Triggered when a mob leaves a waypoint.
|
sub EVENT_WAYPOINT_DEPART # Triggered when a mob leaves a waypoint.
|
||||||
sub EVENT\_WEAPON\_PROC # Triggered when a weapon procs.
|
sub EVENT_WEAPON_PROC # Triggered when a weapon procs.
|
||||||
sub EVENT_ZONE # Triggered when a player zones.
|
sub EVENT_ZONE # Triggered when a player zones.
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -126,7 +126,7 @@ if ($text=~/Hello/) # Would match "Hello", but not "hello".
|
|||||||
if ($text=~/hello/) # Would match "hello", but not "Hello".
|
if ($text=~/hello/) # Would match "hello", but not "Hello".
|
||||||
if ($text=~/hello/i) # Would match "Hello" and "hello".
|
if ($text=~/hello/i) # Would match "Hello" and "hello".
|
||||||
if ($text=~/me/) # Would match the "me" in "name", but not the "me" in "NAME".
|
if ($text=~/me/) # Would match the "me" in "name", but not the "me" in "NAME".
|
||||||
if ($text=~/\\bme\\b/) # Would not match the "me" in "name" or the "me" in "NAME". The "\\b" means there must not be text next to the match so "me" must be by itself.
|
if ($text=~/\bme\b/) # Would not match the "me" in "name" or the "me" in "NAME". The "\b" means there must not be text next to the match so "me" must be by itself.
|
||||||
if ($text=~/^me$/i) # Would only match if "me" is the only text said. The "^" tells what must be the first thing said and the "$" tells what must be the last thing.
|
if ($text=~/^me$/i) # Would only match if "me" is the only text said. The "^" tells what must be the first thing said and the "$" tells what must be the last thing.
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -150,19 +150,19 @@ if ($text!~/Hail|Hi|Hello/i) # Will check if the text does not contain "Hail", "
|
|||||||
* \[\[Faction Values\]\]
|
* \[\[Faction Values\]\]
|
||||||
|
|
||||||
```perl
|
```perl
|
||||||
$activity\_id # Returns the ID of the task stage completed (in EVENT\_TASK\_STAGE\_COMPLETE); Returns the ID of the task updated or complete (in EVENT\_TASK\_COMPLETE, EVENT\_TASK\_UPDATE)
|
$activity_id # Returns the ID of the task stage completed (in EVENT_TASK_STAGE_COMPLETE); Returns the ID of the task updated or complete (in EVENT_TASK_COMPLETE, EVENT_TASK_UPDATE)
|
||||||
$charid # Returns the character ID of the client that triggered the Event or a negative value if no client was involved.
|
$charid # Returns the character ID of the client that triggered the Event or a negative value if no client was involved.
|
||||||
$class # Returns the class of the user that triggered the event.
|
$class # Returns the class of the user that triggered the event.
|
||||||
$caster\_id # Returns the ID of the caster (in EVENT\_SPELL\_EFFECT\_CLIENT, EVENT\_SPELL\_EFFECT\_NPC, EVENT\_SPELL\_BUFF\_TIC\_CLIENT, EVENT\_SPELL\_BUFF\_TIC_NPC)
|
$caster_id # Returns the ID of the caster (in EVENT_SPELL_EFFECT_CLIENT, EVENT_SPELL_EFFECT_NPC, EVENT_SPELL_BUFF_TIC_CLIENT, EVENT_SPELL_BUFF_TIC_NPC)
|
||||||
$combat\_state # Returns 1 for starting combat, returns 0 for leaving combat (in EVENT\_COMBAT)
|
$combat_state # Returns 1 for starting combat, returns 0 for leaving combat (in EVENT_COMBAT)
|
||||||
$corpse # Returns the ID of the corpse in which an item was looted (in EVENT_LOOT)
|
$corpse # Returns the ID of the corpse in which an item was looted (in EVENT_LOOT)
|
||||||
$donecount # Return the number of hand-ins completed \[i.e. 5 of 10 Crushbone Belts, the 5 would be returned\] (in EVENT\_TASK\_COMPLETE, EVENT\_TASK\_UPDATE)
|
$donecount # Return the number of hand-ins completed [i.e. 5 of 10 Crushbone Belts, the 5 would be returned] (in EVENT_TASK_COMPLETE, EVENT_TASK_UPDATE)
|
||||||
$doorid # Returns ID of the door clicked (in EVENT\_CLICK\_DOOR)
|
$doorid # Returns ID of the door clicked (in EVENT_CLICK_DOOR)
|
||||||
$faction # Returns the faction level number of the user with the NPC
|
$faction # Returns the faction level number of the user with the NPC
|
||||||
$fished\_items # Returns the item ID of fished item (in EVENT\_FISH_SUCCESS)
|
$fished_items # Returns the item ID of fished item (in EVENT_FISH_SUCCESS)
|
||||||
$foraged\_item # Returns the item ID of foraged item (in EVENT\_FORAGE_SUCCESS)
|
$foraged_item # Returns the item ID of foraged item (in EVENT_FORAGE_SUCCESS)
|
||||||
$grouped # Returns 0 or 1 depending on group status (in EVENT\_GROUP\_CHANGED)
|
$grouped # Returns 0 or 1 depending on group status (in EVENT_GROUP_CHANGED)
|
||||||
$hate\_state # Return the state of hate (in EVENT\_HATE_LIST)
|
$hate_state # Return the state of hate (in EVENT_HATE_LIST)
|
||||||
$hpevent # Returns the value set by quest::setnexthpevent();
|
$hpevent # Returns the value set by quest::setnexthpevent();
|
||||||
$item1 # The item ID in the first slot.
|
$item1 # The item ID in the first slot.
|
||||||
$item2 # The item ID in the second slot.
|
$item2 # The item ID in the second slot.
|
||||||
@@ -177,49 +177,49 @@ $item2_attuned # The attuned setting in the second slot (1 if attuned, 0 if not
|
|||||||
$item3_attuned # The attuned setting in the third slot (1 if attuned, 0 if not attuned).
|
$item3_attuned # The attuned setting in the third slot (1 if attuned, 0 if not attuned).
|
||||||
$item4_attuned # The attuned setting in the fourth slot (1 if attuned, 0 if not attuned).
|
$item4_attuned # The attuned setting in the fourth slot (1 if attuned, 0 if not attuned).
|
||||||
$itemcount{itemid} # $itemcount{1001} would return 2 if the user turned in 2 1001 items.
|
$itemcount{itemid} # $itemcount{1001} would return 2 if the user turned in 2 1001 items.
|
||||||
$itemid # Return the item ID of items used (in EVENT\_ITEM\_CLICK\_CAST, EVENT\_ITEM_CLICK)
|
$itemid # Return the item ID of items used (in EVENT_ITEM_CLICK_CAST, EVENT_ITEM_CLICK)
|
||||||
$itemname # Returns the item name of items used (in EVENT\_ITEM\_CLICK\_CAST, EVENT\_ITEM_CLICK)
|
$itemname # Returns the item name of items used (in EVENT_ITEM_CLICK_CAST, EVENT_ITEM_CLICK)
|
||||||
$killed # Returns the NPC id of the npc slain (in EVENT\_NPC\_SLAY)
|
$killed # Returns the NPC id of the npc slain (in EVENT_NPC_SLAY)
|
||||||
$killer\_damage # Returns the damage of the mob's killer's killing blow (in EVENT\_DEATH, EVENT\_DEATH\_COMPLETE)
|
$killer_damage # Returns the damage of the mob's killer's killing blow (in EVENT_DEATH, EVENT_DEATH_COMPLETE)
|
||||||
$killer\_id # Returns the entity ID of a mob's killer (in EVENT\_DEATH, EVENT\_DEATH\_COMPLETE)
|
$killer_id # Returns the entity ID of a mob's killer (in EVENT_DEATH, EVENT_DEATH_COMPLETE)
|
||||||
$killer\_skill # Returns the skill ID of the mob's killer's killing blow (in EVENT\_DEATH, EVENT\_DEATH\_COMPLETE)
|
$killer_skill # Returns the skill ID of the mob's killer's killing blow (in EVENT_DEATH, EVENT_DEATH_COMPLETE)
|
||||||
$killer\_spell # Returns the spell ID of the mob's killer's spell (in EVENT\_DEATH, EVENT\_DEATH\_COMPLETE)
|
$killer_spell # Returns the spell ID of the mob's killer's spell (in EVENT_DEATH, EVENT_DEATH_COMPLETE)
|
||||||
$hasitem{itemid} # Checks the character's inventory master slots for an item
|
$hasitem{itemid} # Checks the character's inventory master slots for an item
|
||||||
$hpevent # Used to identify the HP Event set via quest::setnexthpevent() (in EVENT_HP)
|
$hpevent # Used to identify the HP Event set via quest::setnexthpevent() (in EVENT_HP)
|
||||||
$hpratio # Returns HP Ratio
|
$hpratio # Returns HP Ratio
|
||||||
$inchpevent # Used potentially for the incoming hp event or next hp event (in EVENT_HP)
|
$inchpevent # Used potentially for the incoming hp event or next hp event (in EVENT_HP)
|
||||||
$instanceid # Returns the instance ID of the current zone
|
$instanceid # Returns the instance ID of the current zone
|
||||||
$instanceversion # Returns the instance version
|
$instanceversion # Returns the instance version
|
||||||
$langid # Returns the language id the player/npc is currently using. (in EVENT\_SAY, EVENT\_AGGRO\_SAY, EVENT\_PROXIMITY_SAY)
|
$langid # Returns the language id the player/npc is currently using. (in EVENT_SAY, EVENT_AGGRO_SAY, EVENT_PROXIMITY_SAY)
|
||||||
$looted\_charges # Returns the charges of the looted item (in EVENT\_LOOT)
|
$looted_charges # Returns the charges of the looted item (in EVENT_LOOT)
|
||||||
$looted\_id # Returns the ID of the looted item (in EVENT\_LOOT)
|
$looted_id # Returns the ID of the looted item (in EVENT_LOOT)
|
||||||
$oncursor{itemid} # Checks the character's front item on the cursor for an item
|
$oncursor{itemid} # Checks the character's front item on the cursor for an item
|
||||||
$objectid # Returns the object id of the clicked item (in EVENT\_CLICK\_OBJECT)
|
$objectid # Returns the object id of the clicked item (in EVENT_CLICK_OBJECT)
|
||||||
$mlevel # Returns the level of the mob that the user triggered the Event on.
|
$mlevel # Returns the level of the mob that the user triggered the Event on.
|
||||||
$mname # Returns the mob's name (returns non-clean, for a clean name use $npc->GetCleanName();).
|
$mname # Returns the mob's name (returns non-clean, for a clean name use $npc->GetCleanName();).
|
||||||
$mobid # Returns the npc_types ID of the mob that the user triggered the Event on.
|
$mobid # Returns the npc_types ID of the mob that the user triggered the Event on.
|
||||||
$name # Returns the name of the user that triggered the Event.
|
$name # Returns the name of the user that triggered the Event.
|
||||||
$picked\_up\_id # Returns the item id picked up (in EVENT\_PLAYER\_PICKUP)
|
$picked_up_id # Returns the item id picked up (in EVENT_PLAYER_PICKUP)
|
||||||
$popupid # Returns the ID of the popup window (in EVENT_POPUPRESPONSE)
|
$popupid # Returns the ID of the popup window (in EVENT_POPUPRESPONSE)
|
||||||
$race # Returns the race of the user that triggered the Event.
|
$race # Returns the race of the user that triggered the Event.
|
||||||
$raided # Returns 0 or 1 depending on group status (in EVENT\_GROUP\_CHANGED)
|
$raided # Returns 0 or 1 depending on group status (in EVENT_GROUP_CHANGED)
|
||||||
$recipe # Returns the ID of the recipe (in EVENT\_COMBINE\_SUCCESS, EVENT\_COMBINE\_FAILURE)
|
$recipe # Returns the ID of the recipe (in EVENT_COMBINE_SUCCESS, EVENT_COMBINE_FAILURE)
|
||||||
$signal # Returns the value of a signal sent using quest::signalwith() (in EVENT_SIGNAL)
|
$signal # Returns the value of a signal sent using quest::signalwith() (in EVENT_SIGNAL)
|
||||||
$slotid # Returns the slot ID of the item used (in EVENT\_ITEM\_CLICK\_CAST, EVENT\_ITEM_CLICK)
|
$slotid # Returns the slot ID of the item used (in EVENT_ITEM_CLICK_CAST, EVENT_ITEM_CLICK)
|
||||||
$spell\_id # Returns the ID of the spell cast (in EVENT\_CAST, EVENT\_CAST\_ON, EVENT\_CAST\_BEGIN)
|
$spell_id # Returns the ID of the spell cast (in EVENT_CAST, EVENT_CAST_ON, EVENT_CAST_BEGIN)
|
||||||
$status # Returns the account status of the user that triggered the Event.
|
$status # Returns the account status of the user that triggered the Event.
|
||||||
$target\_zone\_id # Returns the ID of the zone to enter, such as in casting ports (in EVENT_ZONE)
|
$target_zone_id # Returns the ID of the zone to enter, such as in casting ports (in EVENT_ZONE)
|
||||||
$targetid # Returns the entity id of the NPC's current (or last) target.
|
$targetid # Returns the entity id of the NPC's current (or last) target.
|
||||||
$targetname # Returns the name of the NPC's current (or last) target.
|
$targetname # Returns the name of the NPC's current (or last) target.
|
||||||
$task\_id # Returns the task ID of the task accepted (in EVENT\_TASKACCEPTED), stage completed (in EVENT\_TASK\_STAGE\_COMPLETE), task failed (in EVENT\_TASK\_FAIL), task updated or completed (in EVENT\_TASK\_COMPLETE, EVENT\_TASK_UPDATE)
|
$task_id # Returns the task ID of the task accepted (in EVENT_TASKACCEPTED), stage completed (in EVENT_TASK_STAGE_COMPLETE), task failed (in EVENT_TASK_FAIL), task updated or completed (in EVENT_TASK_COMPLETE, EVENT_TASK_UPDATE)
|
||||||
$text # The text sent by players to an NPC (in EVENT\_SAY), from an NPC (in EVENT\_AGGRO\_SAY), spoken by player when nearby the NPC (in EVENT\_PROXIMITY_SAY)
|
$text # The text sent by players to an NPC (in EVENT_SAY), from an NPC (in EVENT_AGGRO_SAY), spoken by player when nearby the NPC (in EVENT_PROXIMITY_SAY)
|
||||||
$timer # Returns the value used when creating a timer with quest::settimer() (in EVENT_TIMER)
|
$timer # Returns the value used when creating a timer with quest::settimer() (in EVENT_TIMER)
|
||||||
$uguild_id # Returns the ID of the guild of the user that triggered the Event.
|
$uguild_id # Returns the ID of the guild of the user that triggered the Event.
|
||||||
$uguildrank # Returns the guild rank of the user that triggered the Event.
|
$uguildrank # Returns the guild rank of the user that triggered the Event.
|
||||||
$ulevel # Returns the level of the user that triggered the Event.
|
$ulevel # Returns the level of the user that triggered the Event.
|
||||||
$userid # Returns the ID of the user that triggered the Event.
|
$userid # Returns the ID of the user that triggered the Event.
|
||||||
$version # Returns the version of the door clicked (in EVENT_CLICKDOOR)
|
$version # Returns the version of the door clicked (in EVENT_CLICKDOOR)
|
||||||
$wp # Returns current waypoint (in EVENT\_WAYPOINT\_ARRIVE and EVENT\_WAYPOINT\_DEPART)
|
$wp # Returns current waypoint (in EVENT_WAYPOINT_ARRIVE and EVENT_WAYPOINT_DEPART)
|
||||||
$zonehour # Returns the current in-game hour.
|
$zonehour # Returns the current in-game hour.
|
||||||
$zoneid # Returns the zone id that the Event occured in.
|
$zoneid # Returns the zone id that the Event occured in.
|
||||||
$zoneln # Returns the zone long name that the Event occured in.
|
$zoneln # Returns the zone long name that the Event occured in.
|
||||||
@@ -227,12 +227,12 @@ $zonemin # Returns the current in-game minute.
|
|||||||
$zonesn # Returns the zone short name that the Event occured in.
|
$zonesn # Returns the zone short name that the Event occured in.
|
||||||
$zonetime # Returns the current in-game time in HHMM format.
|
$zonetime # Returns the current in-game time in HHMM format.
|
||||||
$zoneweather # Returns current weather of zone. 0 for none, 1 for rain, 2 for snow.
|
$zoneweather # Returns current weather of zone. 0 for none, 1 for rain, 2 for snow.
|
||||||
|
|
||||||
$copper # Returns the number of copper coins given to the mob.
|
$copper # Returns the number of copper coins given to the mob.
|
||||||
$silver # Returns the number of silver coins given to the mob.
|
$silver # Returns the number of silver coins given to the mob.
|
||||||
$gold # Returns the number of gold coins given to the mob.
|
$gold # Returns the number of gold coins given to the mob.
|
||||||
$platinum # Returns the number of platinum coins given to the mob.
|
$platinum # Returns the number of platinum coins given to the mob.
|
||||||
|
|
||||||
$x # The X coordinate of the NPC.
|
$x # The X coordinate of the NPC.
|
||||||
$y # The Y coordinate of the NPC.
|
$y # The Y coordinate of the NPC.
|
||||||
$z # The Z coordinate of the NPC.
|
$z # The Z coordinate of the NPC.
|
||||||
@@ -244,83 +244,84 @@ $h # The heading of the NPC.
|
|||||||
* A full list can always be found in the EQEmu source [https://github.com/EQEmu/Server/blob/master/zone/questmgr.cpp](https://github.com/EQEmu/Server/blob/master/zone/questmgr.cpp)
|
* A full list can always be found in the EQEmu source [https://github.com/EQEmu/Server/blob/master/zone/questmgr.cpp](https://github.com/EQEmu/Server/blob/master/zone/questmgr.cpp)
|
||||||
|
|
||||||
```perl
|
```perl
|
||||||
quest::addloot(item\_id, charges, equipitem) # Adds 'charges' charges of item 'item\_id' to the NPC's loot. If 'equipitem' is false or 0, the item will not be used or shown on the NPC.
|
quest::addloot(item_id, charges, equipitem) # Adds 'charges' charges of item 'item_id' to the NPC's loot. If 'equipitem' is false or 0, the item will not be used or shown on the NPC.
|
||||||
quest::addldonpoints(points, theme) # Adds 'points' LDoN points for 'theme' LDoN theme.
|
quest::addldonpoints(points, theme) # Adds 'points' LDoN points for 'theme' LDoN theme.
|
||||||
quest::addskill(skill, value) # Increases 'skill' by 'value' for user.
|
quest::addskill(skill, value) # Increases 'skill' by 'value' for user.
|
||||||
quest::AssignToInstance(instance_id) # Assigns a single player to an instance.
|
quest::AssignToInstance(instance_id) # Assigns a single player to an instance.
|
||||||
quest::AssignGroupToInstance(instance_id) # Assigns a group to an instance.
|
quest::AssignGroupToInstance(instance_id) # Assigns a group to an instance.
|
||||||
quest::AssignRaidToInstance(instance_id) # Assigns a raid to an instance.
|
quest::AssignRaidToInstance(instance_id) # Assigns a raid to an instance.
|
||||||
quest::attack(name) # Attacks player 'name'.
|
quest::attack(name) # Attacks player 'name'.
|
||||||
quest::attacknpc(entity\_id) # Attacks NPC with ID 'entity\_id', NOT NPC type ID!
|
quest::attacknpc(entity_id) # Attacks NPC with ID 'entity_id', NOT NPC type ID!
|
||||||
quest::attacknpctype(npc\_type\_id) # Attacks the first NPC in the zone with npc type 'npc\_type\_id'.
|
quest::attacknpctype(npc_type_id) # Attacks the first NPC in the zone with npc type 'npc_type_id'.
|
||||||
quest::buryplayercorpse(char\_id) # Buries and depops a single corpse of the specified 'char\_id'.
|
quest::buryplayercorpse(char_id) # Buries and depops a single corpse of the specified 'char_id'.
|
||||||
quest::castspell(spell\_id, target\_id) # Casts spell on entity with the entity ID 'target\_id' (This is buggy, if it does not work try $npc->CastSpell(spell\_id, target_id);).
|
quest::castspell(spell_id, target_id) # Casts spell on entity with the entity ID 'target_id' (This is buggy, if it does not work try $npc->CastSpell(spell_id, target_id);).
|
||||||
quest::changedeity(deity\_id) # Permanently changes the user's deity to 'deity\_id', then kicks to character select.
|
quest::changedeity(deity_id) # Permanently changes the user's deity to 'deity_id', then kicks to character select.
|
||||||
quest::checktitle(titleset) # Bool value to determine if a player has the specified titleset enabled or not.
|
quest::checktitle(titleset) # Bool value to determine if a player has the specified titleset enabled or not.
|
||||||
quest::ChooseRandom(123, 245, 789...) # Returns one of the items listed in its arguments randomly.
|
quest::ChooseRandom(123, 245, 789...) # Returns one of the items listed in its arguments randomly.
|
||||||
quest::clear_proximity() # Removes a mob's proximity.
|
quest::clear_proximity() # Removes a mob's proximity.
|
||||||
quest::clear\_zone\_flag(zone_id) # Clears a character flag for the zone specified.
|
quest::clear_zone_flag(zone_id) # Clears a character flag for the zone specified.
|
||||||
quest::collectitems(item\_id, remove) # Returns number of item\_id that exist in inventory. If remove is true, items are removed as they are counted.
|
quest::collectitems(item_id, remove) # Returns number of item_id that exist in inventory. If remove is true, items are removed as they are counted.
|
||||||
quest::createdoor(modelname, x, y, z, heading, type, size) # Creates a new door.
|
quest::createdoor(modelname, x, y, z, heading, type, size) # Creates a new door.
|
||||||
quest::creategroundobject(itemid, x, y, z, heading, decaytime) # Creates a ground spawn object/item. Leaving decaytime blank will disable decaying.
|
quest::creategroundobject(itemid, x, y, z, heading, decaytime) # Creates a ground spawn object/item. Leaving decaytime blank will disable decaying.
|
||||||
quest::creategroundobjectfrommodel(model_name, x, y, z, heading, type, decaytime) # Creates a ground spawn object by model. Leaving decaytime blank will disable decaying.
|
quest::creategroundobjectfrommodel(model_name, x, y, z, heading, type, decaytime) # Creates a ground spawn object by model. Leaving decaytime blank will disable decaying.
|
||||||
quest::createguild(guild\_name, leader\_name) # Creates a new guild.
|
quest::createguild(guild_name, leader_name) # Creates a new guild.
|
||||||
quest::CreateInstance(zone\_name, version, expiration\_time) # Creates an instance in the given zone using specified version and expiration time. Note: This command will export the Instance ID that it creates!
|
quest::CreateInstance(zone_name, version, expiration_time) # Creates an instance in the given zone using specified version and expiration time. Note: This command will export the Instance ID that it creates!
|
||||||
quest::crosszonesetentityvariablebynpctypeid(npctype\_id, id, m\_var) # Sets entity variables world wide with specified npctype_id
|
quest::crosszonesetentityvariablebynpctypeid(npctype_id, id, m_var) # Sets entity variables world wide with specified npctype_id
|
||||||
quest::crosszonesignalclientbycharid(char\_id, data) # Signals character id 'char\_id' with 'data'.
|
quest::crosszonesignalclientbycharid(char_id, data) # Signals character id 'char_id' with 'data'.
|
||||||
quest::crosszonesignalclientbyname(name, data) # Signals player 'name' with 'data'.
|
quest::crosszonesignalclientbyname(name, data) # Signals player 'name' with 'data'.
|
||||||
quest::crosszonesignalnpcbynpctypeid(npctype\_id, data) # Signals all NPC entities world wide with specified npctype\_id
|
quest::crosszonesignalnpcbynpctypeid(npctype_id, data) # Signals all NPC entities world wide with specified npctype_id
|
||||||
quest::crosszonemessageplayerbyname(type, name, message) # Messages player 'name' with color 'type' the message 'message'.
|
quest::crosszonemessageplayerbyname(type, name, message) # Messages player 'name' with color 'type' the message 'message'.
|
||||||
quest::delglobal(varname) # Deletes a quest global.
|
quest::delglobal(varname) # Deletes a quest global.
|
||||||
quest::depop(npc\_type\_id) # A single mob will de-spawn and not start the spawn timer.
|
quest::depop(npc_type_id) # A single mob will de-spawn and not start the spawn timer.
|
||||||
quest::depopall(npc\_type\_id) # Depops every instance of the npc in the zone (quest::depop(npc\_type\_id)) will only do one NPC at a time.)
|
quest::depopall(npc_type_id) # Depops every instance of the npc in the zone (quest::depop(npc_type_id)) will only do one NPC at a time.)
|
||||||
quest::depop\_withtimer(npc\_type_id) # A single mob will de-spawn and start the spawn timer.
|
quest::depop_withtimer(npc_type_id) # A single mob will de-spawn and start the spawn timer.
|
||||||
quest::depopzone(type) # Depops every NPC in the zone based on 'type', 0 disables the NPCs' spawn timers so they will not repop on their own, 1 allows them to spawn as normal once their timers are up.
|
quest::depopzone(type) # Depops every NPC in the zone based on 'type', 0 disables the NPCs' spawn timers so they will not repop on their own, 1 allows them to spawn as normal once their timers are up.
|
||||||
quest::DestroyInstance(instance_id) # Destroys the given instance.
|
quest::DestroyInstance(instance_id) # Destroys the given instance.
|
||||||
quest::ding() # Sends the ding sound to the client.
|
quest::ding() # Sends the ding sound to the client.
|
||||||
quest::disable\_spawn2(spawn2\_id) # Disables this spawn group from spawning another NPC until it is enabled again. Also Depops any current NPCs using this spawn point.
|
quest::disable_spawn2(spawn2_id) # Disables this spawn group from spawning another NPC until it is enabled again. Also Depops any current NPCs using this spawn point.
|
||||||
quest::disable\_proximity\_say() #Disables sub EVENT\_PROXIMITY\_SAY from triggering.
|
quest::disable_proximity_say() #Disables sub EVENT_PROXIMITY_SAY from triggering.
|
||||||
quest::doanim(anim\_num) # Mob will do animation for 'anim\_num'.
|
quest::doanim(anim_num) # Mob will do animation for 'anim_num'.
|
||||||
quest::echo(color, text) # Echoes specified 'text' to console.
|
quest::echo(color, text) # Echoes specified 'text' to console.
|
||||||
quest::emote(text) # Mob will emote 'text'.
|
quest::emote(text) # Mob will emote 'text'.
|
||||||
quest::enable\_spawn2(spawn2\_id) # Enables this spawn group to start spawning again once the respawn timer is up for it.
|
quest::enable_spawn2(spawn2_id) # Enables this spawn group to start spawning again once the respawn timer is up for it.
|
||||||
quest::enabletitle(titleset) # Allows player to use titles from the given titleset, assuming they meet all other qualifications (race, class, AAs, item, etc).
|
quest::enabletitle(titleset) # Allows player to use titles from the given titleset, assuming they meet all other qualifications (race, class, AAs, item, etc).
|
||||||
quest::enable\_proximity\_say() #Required for sub EVENT\_PROXIMITY\_SAY to work quest::exp(amount) # Adds 'amount' of exp to user's exp amount. NOTE: This is effected by all experience multipliers. So, a global multiplier of 2.0 will double the amount of experience you specified.
|
<span bitstream="" mono="" sans="" style="color: rgb(0, 130, 0); font-family: Consolas, " vera="">quest::enable_proximity_say() #Required for sub EVENT_PROXIMITY_SAY to work
|
||||||
quest::faction(faction\_id, value, temp) # Give player faction 'value' with 'faction\_id'. 'temp' is optional and its values are 0 = Permanent faction with a message, 1 = Temporary faction without a message, 2 = Temporary faction with a message, and 3 = Permanent faction with no message
|
</span>quest::exp(amount) # Adds 'amount' of exp to user's exp amount. NOTE: This is effected by all experience multipliers. So, a global multiplier of 2.0 will double the amount of experience you specified.
|
||||||
|
quest::faction(faction_id, value, temp) # Give player faction 'value' with 'faction_id'. 'temp' is optional and its values are 0 = Permanent faction with a message, 1 = Temporary faction without a message, 2 = Temporary faction with a message, and 3 = Permanent faction with no message
|
||||||
quest::factionvalue() # Checks factions returning more logical values than $faction (which cannot be changed due to backwards compatiblity, and the values are hardcoded into client.)
|
quest::factionvalue() # Checks factions returning more logical values than $faction (which cannot be changed due to backwards compatiblity, and the values are hardcoded into client.)
|
||||||
quest::FlagInstanceByGroupLeader() # Assigns the group leader's instance to a player
|
quest::FlagInstanceByGroupLeader() # Assigns the group leader's instance to a player
|
||||||
quest::FlagInstanceByRaidLeader() # Assigns the raid leader's instance to a player
|
quest::FlagInstanceByRaidLeader() # Assigns the raid leader's instance to a player
|
||||||
quest::FlyMode(0|1|2) # Sets flymode for player where 0 = Off, 1 = On, 2 = Levitate.
|
quest::FlyMode(0|1|2) # Sets flymode for player where 0 = Off, 1 = On, 2 = Levitate.
|
||||||
quest::follow(entity\_id, distance) # Mob starts to follow 'entity\_id'. The second field, 'distance', is optional and can be used to set the distance the Mob will follow its target at.
|
quest::follow(entity_id, distance) # Mob starts to follow 'entity_id'. The second field, 'distance', is optional and can be used to set the distance the Mob will follow its target at.
|
||||||
quest::forcedooropen(door\_id) # Forces a door with id 'door\_id' to open.
|
quest::forcedooropen(door_id) # Forces a door with id 'door_id' to open.
|
||||||
quest::forcedoorclose(door\_id) # Forces a door with id 'door\_id' to close.
|
quest::forcedoorclose(door_id) # Forces a door with id 'door_id' to close.
|
||||||
quest::getguildnamebyid(guild\_id) # Gets a guild name from the 'guild\_id' provided.
|
quest::getguildnamebyid(guild_id) # Gets a guild name from the 'guild_id' provided.
|
||||||
quest::GetInstanceID(zonename, version) Returns the instanceid of the given zone/verison.
|
quest::GetInstanceID(zonename, version) Returns the instanceid of the given zone/verison.
|
||||||
quest::getlevel(type) # Returns average level. 0 = Self, 1 = Group, 2 = Raid, 3 = Raid (if not in Raid then Group, if not in either Self), 4 = Self 2 (max level ever reached).
|
quest::getlevel(type) # Returns average level. 0 = Self, 1 = Group, 2 = Raid, 3 = Raid (if not in Raid then Group, if not in either Self), 4 = Self 2 (max level ever reached).
|
||||||
quest::getplayerburriedcorpsecount(char\_id) # Returns how many of the char\_id's corpses are marked as being buried.
|
quest::getplayerburriedcorpsecount(char_id) # Returns how many of the char_id's corpses are marked as being buried.
|
||||||
quest::get\_spawn\_condition(zone\_short, condition\_id) # Get the value of a spawn condition
|
quest::get_spawn_condition(zone_short, condition_id) # Get the value of a spawn condition
|
||||||
quest::GetSpellResistType(spell\_id) # Returns the resist type of 'spell\_id'.
|
quest::GetSpellResistType(spell_id) # Returns the resist type of 'spell_id'.
|
||||||
quest::GetSpellTargetType(spell\_id) # Returns the target type of 'spell\_id'.
|
quest::GetSpellTargetType(spell_id) # Returns the target type of 'spell_id'.
|
||||||
quest::givecash(copper, silver, gold, platinum) # Gives client coin.
|
quest::givecash(copper, silver, gold, platinum) # Gives client coin.
|
||||||
quest::gmmove(x, y, z) # Moves the user that triggered the Event to the provided location.
|
quest::gmmove(x, y, z) # Moves the user that triggered the Event to the provided location.
|
||||||
quest::gmsay(text, color, all\_zones?, guild\_id, minstatus)
|
quest::gmsay(text, color, all_zones?, guild_id, minstatus)
|
||||||
quest::has\_zone\_flag(zone\_id) # Checks for a 'zone\_id' zone flag.
|
quest::has_zone_flag(zone_id) # Checks for a 'zone_id' zone flag.
|
||||||
quest::incstat(statid, 0-126) # Increases a stat by value x2 (Str=0, Sta=1, Agi=2, Dex=3, Int=4, Wis=5, Cha=6)
|
quest::incstat(statid, 0-126) # Increases a stat by value x2 (Str=0, Sta=1, Agi=2, Dex=3, Int=4, Wis=5, Cha=6)
|
||||||
quest::InsertQuestGlobal(charid, npcid, zoneid, varname, value, duration) # Creates a Quest Global.
|
quest::InsertQuestGlobal(charid, npcid, zoneid, varname, value, duration) # Creates a Quest Global.
|
||||||
quest::IsBeneficialSpell(spell\_id) # Returns true if 'spell\_id' is beneficial.
|
quest::IsBeneficialSpell(spell_id) # Returns true if 'spell_id' is beneficial.
|
||||||
quest::IsEffectInSpell(spell\_id, effect\_id) # Returns true if spell effect 'effect\_id' is in 'spell\_id'.
|
quest::IsEffectInSpell(spell_id, effect_id) # Returns true if spell effect 'effect_id' is in 'spell_id'.
|
||||||
quest::isdooropen(door\_id) # Checks if 'door\_id' is currently open.
|
quest::isdooropen(door_id) # Checks if 'door_id' is currently open.
|
||||||
quest::isdisctome(item\_id) # Checks if 'item\_id' is a discipline tome.
|
quest::isdisctome(item_id) # Checks if 'item_id' is a discipline tome.
|
||||||
quest::IsRunning() # Checks if an NPC is walking (returns 0) or running (returns 1)
|
quest::IsRunning() # Checks if an NPC is walking (returns 0) or running (returns 1)
|
||||||
quest::itemlink(item_id) # Mob sends a tell to you with a link to an item. (not to be confused with quest::varlink which can be used in a message this must have its own line)
|
quest::itemlink(item_id) # Mob sends a tell to you with a link to an item. (not to be confused with quest::varlink which can be used in a message this must have its own line)
|
||||||
quest::level(newlevel) # Sets the user's level to 'newlevel'.
|
quest::level(newlevel) # Sets the user's level to 'newlevel'.
|
||||||
quest::me(text) # Does a name-less emote.
|
quest::me(text) # Does a name-less emote.
|
||||||
quest::MerchantCountItem(merchant\_npc\_id, item_id) # returns the number of that item in stock.
|
quest::MerchantCountItem(merchant_npc_id, item_id) # returns the number of that item in stock.
|
||||||
quest::MerchantSetItem(merchant\_npc\_id, item_id, quantity) # Changes the number of the item that the merchant has available to sell.
|
quest::MerchantSetItem(merchant_npc_id, item_id, quantity) # Changes the number of the item that the merchant has available to sell.
|
||||||
quest::modifynpcstat(identifier, value) # Changes NPC stats on the fly. Changes are not saved to DB.
|
quest::modifynpcstat(identifier, value) # Changes NPC stats on the fly. Changes are not saved to DB.
|
||||||
quest::movegrp(zone_id, x, y, z) # Moves the user's Group that triggered the Event to the provided zone and location.
|
quest::movegrp(zone_id, x, y, z) # Moves the user's Group that triggered the Event to the provided zone and location.
|
||||||
quest::movepc(zone_id, x, y, z, heading) # Moves the user that triggered the Event to the provided zone and location. Heading is optional.
|
quest::movepc(zone_id, x, y, z, heading) # Moves the user that triggered the Event to the provided zone and location. Heading is optional.
|
||||||
quest::MovePCInstance(zone\_id, instance\_id, x, y, z) # Moves a player to instance 'instance\_id' of the zone 'zone\_id' at 'x', 'y', and 'z'.
|
quest::MovePCInstance(zone_id, instance_id, x, y, z) # Moves a player to instance 'instance_id' of the zone 'zone_id' at 'x', 'y', and 'z'.
|
||||||
quest::moveto(x, y, z, heading, saveguardspot) # NPC moves to the set coordinates with 'heading' and 'saveguardspot' being optional. NPC will path back unless 'saveguardspot' is set to 1.
|
quest::moveto(x, y, z, heading, saveguardspot) # NPC moves to the set coordinates with 'heading' and 'saveguardspot' being optional. NPC will path back unless 'saveguardspot' is set to 1.
|
||||||
quest::npcfeature(feature, setting) # Temporarily changes the NPC's appearance.
|
quest::npcfeature(feature, setting) # Temporarily changes the NPC's appearance.
|
||||||
quest::npcgender(gender) # Temporarily changes the NPC's gender.
|
quest::npcgender(gender) # Temporarily changes the NPC's gender.
|
||||||
@@ -329,15 +330,15 @@ quest::npcsize(size) # Temporarily changes the NPC's size.
|
|||||||
quest::npctexture(texture) # Temporarily changes the NPC's texture.
|
quest::npctexture(texture) # Temporarily changes the NPC's texture.
|
||||||
quest::pathto(x, y, z) # Causes the npc to use path finding to walk to 'x', 'y', and 'z'.
|
quest::pathto(x, y, z) # Causes the npc to use path finding to walk to 'x', 'y', and 'z'.
|
||||||
quest::pause(time) # Forces the NPC to take a break for a certain time.
|
quest::pause(time) # Forces the NPC to take a break for a certain time.
|
||||||
quest::permaclass(class\_id) # Permanently changes the user's class to 'class\_id'.
|
quest::permaclass(class_id) # Permanently changes the user's class to 'class_id'.
|
||||||
quest::permagender(gender\_id) # Permanently changes the user's gender to 'gender\_id'. 0 = Male, 1 = Female, 2 = Neuter.
|
quest::permagender(gender_id) # Permanently changes the user's gender to 'gender_id'. 0 = Male, 1 = Female, 2 = Neuter.
|
||||||
quest::permarace(race\_id) # Permanently changes the user's race to 'race\_id', then kicks to character select.
|
quest::permarace(race_id) # Permanently changes the user's race to 'race_id', then kicks to character select.
|
||||||
quest::playerfeature(feature, setting) # Temporarily changes the player's appearance.
|
quest::playerfeature(feature, setting) # Temporarily changes the player's appearance.
|
||||||
quest::playergender(gender) # Temporarily changes the player's gender.
|
quest::playergender(gender) # Temporarily changes the player's gender.
|
||||||
quest::playerrace(raceid) # Temporarily changes the player's race.
|
quest::playerrace(raceid) # Temporarily changes the player's race.
|
||||||
quest::playersize(size) # Temporaririly changes the player's size.
|
quest::playersize(size) # Temporaririly changes the player's size.
|
||||||
quest::playertexture(texture) # Temporarily changes the player's texture.
|
quest::playertexture(texture) # Temporarily changes the player's texture.
|
||||||
quest::popup(title, text, popup\_id, buttons, duration) # Creates a popup window with the given text. 'popup\_id', 'buttons', and 'duration' are optional. The popup will vanish after 'duration' seconds (never if 'duration' is 0). For 'buttons' 0 = Just an OK button, 1 = Yes and No Buttons. This is used in conjunction with sub EVENT_POPUPRESPONSE.
|
quest::popup(title, text, popup_id, buttons, duration) # Creates a popup window with the given text. 'popup_id', 'buttons', and 'duration' are optional. The popup will vanish after 'duration' seconds (never if 'duration' is 0). For 'buttons' 0 = Just an OK button, 1 = Yes and No Buttons. This is used in conjunction with sub EVENT_POPUPRESPONSE.
|
||||||
quest::pvp(on|off) # Sets PVP on|off for user.
|
quest::pvp(on|off) # Sets PVP on|off for user.
|
||||||
quest::rain(1|0) or quest::snow(1|0) # Makes it rain or snow in zone.
|
quest::rain(1|0) or quest::snow(1|0) # Makes it rain or snow in zone.
|
||||||
quest::rebind(zone_id, x, y, z) # Binds the user that triggered the Event to the provided zone and location.
|
quest::rebind(zone_id, x, y, z) # Binds the user that triggered the Event to the provided zone and location.
|
||||||
@@ -347,53 +348,53 @@ quest::respawn(npc_type, grid) # Respawn specified NPC type on grid.
|
|||||||
quest::resume() # Resumes a stopped pathing grid.
|
quest::resume() # Resumes a stopped pathing grid.
|
||||||
quest::safemove() # Moves user to zone's safe x, y, and z coordinates.
|
quest::safemove() # Moves user to zone's safe x, y, and z coordinates.
|
||||||
quest::save() # Saves player data.
|
quest::save() # Saves player data.
|
||||||
quest::say(text, language\_id) # Mob will say 'text'. 'language\_id' is optional, and determines what language the NPC will speak in.
|
quest::say(text, language_id) # Mob will say 'text'. 'language_id' is optional, and determines what language the NPC will speak in.
|
||||||
quest::saylink(phrase, silent?, linkname) # This is for creating a say link.
|
quest::saylink(phrase, silent?, linkname) # This is for creating a say link.
|
||||||
quest::scribespells(maxlevel, minlevel) # Scribes all spells up to the specified level.
|
quest::scribespells(maxlevel, minlevel) # Scribes all spells up to the specified level.
|
||||||
quest::selfcast(spell\_id) # Forces the client to cast 'spell\_id' spell on themselves.
|
quest::selfcast(spell_id) # Forces the client to cast 'spell_id' spell on themselves.
|
||||||
quest::setallskill(value) # Sets all skills to 'value'.
|
quest::setallskill(value) # Sets all skills to 'value'.
|
||||||
quest::setanim(npc\_type\_id, animnum) # Adds appearance changes to 'npc\_type\_id' for animation 'animnum'.
|
quest::setanim(npc_type_id, animnum) # Adds appearance changes to 'npc_type_id' for animation 'animnum'.
|
||||||
quest::sethp(hp\_percent) # Sets the HP of an NPC to 'hp\_percent'.
|
quest::sethp(hp_percent) # Sets the HP of an NPC to 'hp_percent'.
|
||||||
quest::setglobal(varname, value, options, duration) # Sets a quest global named 'varname' to value 'value' for 'options' for 'duration'.
|
quest::setglobal(varname, value, options, duration) # Sets a quest global named 'varname' to value 'value' for 'options' for 'duration'.
|
||||||
quest::setguild(guild\_id, rank) # Adds player to 'guild\_id' with a 'rank'.
|
quest::setguild(guild_id, rank) # Adds player to 'guild_id' with a 'rank'.
|
||||||
quest::setlanguage(skill_id, 0-100) # Sets a language to value.
|
quest::setlanguage(skill_id, 0-100) # Sets a language to value.
|
||||||
quest::setnexthpevent(hp\_percent) # Set a HP threshold for EVENT\_HP. If the mob's HP falls below this threshold hp_percent, an event will be generated with the percent in $hpevent.
|
quest::setnexthpevent(hp_percent) # Set a HP threshold for EVENT_HP. If the mob's HP falls below this threshold hp_percent, an event will be generated with the percent in $hpevent.
|
||||||
quest::setnextinchpevent(hp\_percent) # Set a HP threshold for EVENT\_HP. If the mob's HP gets healed past this threshold hp_percent, an event will be generated with the percent in $inchpevent.
|
quest::setnextinchpevent(hp_percent) # Set a HP threshold for EVENT_HP. If the mob's HP gets healed past this threshold hp_percent, an event will be generated with the percent in $inchpevent.
|
||||||
quest::SetRunning(value) # Set to 0 for walk, 1 for running.
|
quest::SetRunning(value) # Set to 0 for walk, 1 for running.
|
||||||
quest::setskill(skill_id, value) # Sets a single skill to a value.
|
quest::setskill(skill_id, value) # Sets a single skill to a value.
|
||||||
quest::setsky(0-255) # Changes the sky.
|
quest::setsky(0-255) # Changes the sky.
|
||||||
quest::setstat(stat_id, 0-252) # Sets a stat to value (Str=0, Sta=1, Agi=2, Dex=3, Int=4; Wis=5, Cha=6)
|
quest::setstat(stat_id, 0-252) # Sets a stat to value (Str=0, Sta=1, Agi=2, Dex=3, Int=4; Wis=5, Cha=6)
|
||||||
quest::settarget(type, id) # Quest mob targets 'id' by 'type' (npctype or entity).
|
quest::settarget(type, id) # Quest mob targets 'id' by 'type' (npctype or entity).
|
||||||
quest::settime(hour, minute, \[update world\]) # Sets zone time of day. Sky/lighting changes acordingly. Update world is invisible and defaults to true. Use of a "0" results in a disjointed zoned that functions on it's own time system for events.
|
quest::settime(hour, minute, [update world]) # Sets zone time of day. Sky/lighting changes acordingly. Update world is invisible and defaults to true. Use of a "0" results in a disjointed zoned that functions on it's own time system for events.
|
||||||
quest::settimer(timer\_name, seconds) # Starts timer 'timer\_name' for use with EVENT_TIMER. You can have multiple timers that trigger every 'seconds'.
|
quest::settimer(timer_name, seconds) # Starts timer 'timer_name' for use with EVENT_TIMER. You can have multiple timers that trigger every 'seconds'.
|
||||||
quest::settimerMS(timer_name, milliseconds) # Same as quest::settimer() except time is in milliseconds.
|
quest::settimerMS(timer_name, milliseconds) # Same as quest::settimer() except time is in milliseconds.
|
||||||
quest::shout(text) # Mob will shout 'text'.
|
quest::shout(text) # Mob will shout 'text'.
|
||||||
quest::shout2(text) # Mob will shout 'text' across all zones.
|
quest::shout2(text) # Mob will shout 'text' across all zones.
|
||||||
quest::spawn\_condition(zone\_short\_name, condition\_id, value) # Uses variables in the spawn_conditions table for spawning or despawning chosen NPCs in a given zone.
|
quest::spawn_condition(zone_short_name, condition_id, value) # Uses variables in the spawn_conditions table for spawning or despawning chosen NPCs in a given zone.
|
||||||
quest::spawn\_from\_spawn2(spawn2_id) # Allows multiple spawns to be spawned from a single spawn group even while the existing NPC for that spawn group is up.
|
quest::spawn_from_spawn2(spawn2_id) # Allows multiple spawns to be spawned from a single spawn group even while the existing NPC for that spawn group is up.
|
||||||
quest::set_proximity(minx, maxx, miny, maxy, minz, maxz, bsay) # Creates a proximity, if a client moves into or out of the bounds specified, proper events are generated. A mob may only have one proximity. 'minz' and 'maxz' are optional. Set bsay = 1 to enable proximity say checks.
|
quest::set_proximity(minx, maxx, miny, maxy, minz, maxz, bsay) # Creates a proximity, if a client moves into or out of the bounds specified, proper events are generated. A mob may only have one proximity. 'minz' and 'maxz' are optional. Set bsay = 1 to enable proximity say checks.
|
||||||
quest::set\_zone\_flag(zone\_id) # Flags a character for 'zone\_id' zone.
|
quest::set_zone_flag(zone_id) # Flags a character for 'zone_id' zone.
|
||||||
quest::sfollow() # Turns off follow.
|
quest::sfollow() # Turns off follow.
|
||||||
quest::showgrid(grid) # Displays an in-game path based on a waypoint 'grid'.
|
quest::showgrid(grid) # Displays an in-game path based on a waypoint 'grid'.
|
||||||
quest::showpath(x, y, z) # Displays an in-game path based on path finding using coordinates 'x', 'y', and 'z'.
|
quest::showpath(x, y, z) # Displays an in-game path based on path finding using coordinates 'x', 'y', and 'z'.
|
||||||
quest::signal(npc\_id, wait) # cause an EVENT\_SIGNAL on all mobs in the zone with this NPC type, with $signalid = 0. wait is an optional time to wait in ms before sending signal.
|
quest::signal(npc_id, wait) # cause an EVENT_SIGNAL on all mobs in the zone with this NPC type, with $signalid = 0. wait is an optional time to wait in ms before sending signal.
|
||||||
quest::signalwith(npc\_id, signal\_id, wait) # same as signal(), except it sets $signal to the supplied signal_id. wait is an optional time to wait in ms before sending signal.
|
quest::signalwith(npc_id, signal_id, wait) # same as signal(), except it sets $signal to the supplied signal_id. wait is an optional time to wait in ms before sending signal.
|
||||||
quest::spawn(npc\_type\_id, grid, guildwarset, x, y, z) # Spawn 'npc\_type\_id' on 'grid' with 'guildwarset' (use 0) at 'x', 'y', and 'z'.
|
quest::spawn(npc_type_id, grid, guildwarset, x, y, z) # Spawn 'npc_type_id' on 'grid' with 'guildwarset' (use 0) at 'x', 'y', and 'z'.
|
||||||
quest::spawn2(npc\_type\_id, grid, guildwarset, x, y, z, heading) # Spawn 'npc\_type\_id' on 'grid' with 'guildwarset' (use 0) at 'x', 'y', and 'z' facing 'heading'.
|
quest::spawn2(npc_type_id, grid, guildwarset, x, y, z, heading) # Spawn 'npc_type_id' on 'grid' with 'guildwarset' (use 0) at 'x', 'y', and 'z' facing 'heading'.
|
||||||
quest::start(grid\_id) # Assigns the grid to an NPC and starts the grid 'grid\_id' on the NPC.
|
quest::start(grid_id) # Assigns the grid to an NPC and starts the grid 'grid_id' on the NPC.
|
||||||
quest::stop() # Stops a moving NPC.
|
quest::stop() # Stops a moving NPC.
|
||||||
quest::stopalltimers() # Stops all current timers on the mob (NPC or client).
|
quest::stopalltimers() # Stops all current timers on the mob (NPC or client).
|
||||||
quest::stoptimer(timer\_name) # Stops the timer 'timer\_name'.
|
quest::stoptimer(timer_name) # Stops the timer 'timer_name'.
|
||||||
quest::summonburriedplayercorpse(char\_id, x, y, z, heading) # Summons a single buried corpse of the specified 'char\_id' to the specified location.
|
quest::summonburriedplayercorpse(char_id, x, y, z, heading) # Summons a single buried corpse of the specified 'char_id' to the specified location.
|
||||||
quest::summonallplayercorpses(char\_id, x, y, z, heading) # Summons all corpses belonging to the specified 'char\_id' to the specified location.
|
quest::summonallplayercorpses(char_id, x, y, z, heading) # Summons all corpses belonging to the specified 'char_id' to the specified location.
|
||||||
quest::summonitem(item\_id, charges) # Summons 'item\_id' to user that triggered Event. Charges is the number of charges, or number of items in the stack depending on the item type, it is also optional.
|
quest::summonitem(item_id, charges) # Summons 'item_id' to user that triggered Event. Charges is the number of charges, or number of items in the stack depending on the item type, it is also optional.
|
||||||
quest::surname(surname) # Changes user's surname to 'surname'.
|
quest::surname(surname) # Changes user's surname to 'surname'.
|
||||||
quest::targlobal(varname, value, duration, npc\_id, char\_id, zone_id) # Sets a quest global.
|
quest::targlobal(varname, value, duration, npc_id, char_id, zone_id) # Sets a quest global.
|
||||||
quest::toggle\_spawn\_event(event\_id, enable, reset\_base) # Toggle a spawn event.
|
quest::toggle_spawn_event(event_id, enable, reset_base) # Toggle a spawn event.
|
||||||
quest::traindisc(tome\_id) # Trains the discipline that corresponds to the item 'tome\_id'. See quest::isdisctome() to test if an item is a discipline tome.
|
quest::traindisc(tome_id) # Trains the discipline that corresponds to the item 'tome_id'. See quest::isdisctome() to test if an item is a discipline tome.
|
||||||
quest::traindiscs(maxlevel, minlevel) # Trains all disciplines up to the specified level. To train up to any level, use $ulevel as the variable.
|
quest::traindiscs(maxlevel, minlevel) # Trains all disciplines up to the specified level. To train up to any level, use $ulevel as the variable.
|
||||||
quest::updatespawntimer(spawn2id, milliseconds) # Sets the time left until the next respawn in the database.
|
quest::updatespawntimer(spawn2id, milliseconds) # Sets the time left until the next respawn in the database.
|
||||||
quest::unique\_spawn(npc\_type, grid, guildwarset, x, y, z, heading) # Just like quest::spawn() except it will not spawn it if one of that 'npc_type' is already in the zone.
|
quest::unique_spawn(npc_type, grid, guildwarset, x, y, z, heading) # Just like quest::spawn() except it will not spawn it if one of that 'npc_type' is already in the zone.
|
||||||
quest::unscribespells() # Unscribes all your spells.
|
quest::unscribespells() # Unscribes all your spells.
|
||||||
quest::untraindiscs() # Untrains all learned disciplines.
|
quest::untraindiscs() # Untrains all learned disciplines.
|
||||||
quest::varlink(item_id) # This is for creating an item link to be used in a variable.
|
quest::varlink(item_id) # This is for creating an item link to be used in a variable.
|
||||||
@@ -410,22 +411,22 @@ quest::Zone(zone) # Sends the user to the specified zone (short name).
|
|||||||
**Syntax**
|
**Syntax**
|
||||||
|
|
||||||
```perl
|
```perl
|
||||||
if($variable1 \[operator\] $variable2) {
|
if($variable1 [operator] $variable2) {
|
||||||
quest::commands;
|
quest::commands;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**Example:**
|
**Example:**
|
||||||
|
|
||||||
```perl
|
```perl
|
||||||
if($variable1 \[operator\] $variable2) {
|
if($variable1 [operator] $variable2) {
|
||||||
quest::commands;
|
quest::commands;
|
||||||
}
|
}
|
||||||
elsif($variable1 \[someotheroperator\] $variable2) {
|
elsif($variable1 [someotheroperator] $variable2) {
|
||||||
quest::commands;
|
quest::commands;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
quest::commands;
|
quest::commands;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -433,6 +434,7 @@ Note, special operators apply to string comparisons in Perl!
|
|||||||
|
|
||||||
**Operators:**
|
**Operators:**
|
||||||
|
|
||||||
|
```perl
|
||||||
$1 == $2 # If variable $1 is the same as variable $2, carry on.
|
$1 == $2 # If variable $1 is the same as variable $2, carry on.
|
||||||
$1 != $2 # If variable $1 is NOT the same as variable $2, carry on.
|
$1 != $2 # If variable $1 is NOT the same as variable $2, carry on.
|
||||||
$1 > $2 # If variable $1 is greater than variable $2, carry on.
|
$1 > $2 # If variable $1 is greater than variable $2, carry on.
|
||||||
@@ -442,249 +444,261 @@ $1 <= $2 # If variable $1 is less than or equal to variable $2, carry on.
|
|||||||
$1 eq $2 # If string variable $1 is the same as string variable $2, carry on.
|
$1 eq $2 # If string variable $1 is the same as string variable $2, carry on.
|
||||||
$1 ne $2 # If string variable $1 is NOT the same as string variable $2, carry on.
|
$1 ne $2 # If string variable $1 is NOT the same as string variable $2, carry on.
|
||||||
$1 =~ $2 # If string variable $1 contains/matches the string variable $2, carry on.
|
$1 =~ $2 # If string variable $1 contains/matches the string variable $2, carry on.
|
||||||
|
```
|
||||||
|
|
||||||
In this example, if the user is a smaller level than the mob the mob says "I'm a higher level than you!"
|
In this example, if the user is a smaller level than the mob the mob says "I'm a higher level than you!"
|
||||||
|
|
||||||
|
```perl
|
||||||
if($ulevel < $mlevel) {
|
if($ulevel < $mlevel) {
|
||||||
quest::say("I'm a higher level than you!");
|
quest::say("I'm a higher level than you!");
|
||||||
}
|
}
|
||||||
if($name ne "Joe") {
|
if($name ne "Joe") {
|
||||||
quest::say("I will only talk to joe!");
|
quest::say("I will only talk to joe!");
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
##### **Using $npc->GetHateList();**
|
##### **Using $npc->GetHateList();**
|
||||||
|
|
||||||
sub EVENT\_AGGRO\_SAY {
|
```perl
|
||||||
if($text=~/hate/i) {
|
sub EVENT_AGGRO_SAY {
|
||||||
my @hatelist = $npc->GetHateList();
|
if($text=~/hate/i) {
|
||||||
foreach $ent (@hatelist) {
|
my @hatelist = $npc->GetHateList();
|
||||||
my $h_ent = $ent->GetEnt(); # do not forget GetEnt() or the script halts!
|
foreach $ent (@hatelist) {
|
||||||
my $h_dmg = $ent->GetDamage();
|
my $h_ent = $ent->GetEnt(); # do not forget GetEnt() or the script halts!
|
||||||
my $h_hate = $ent->GetHate();
|
my $h_dmg = $ent->GetDamage();
|
||||||
if($h_ent) {
|
my $h_hate = $ent->GetHate();
|
||||||
my $h\_ent\_name = $h_ent->GetCleanName();
|
if($h_ent) {
|
||||||
quest::say("$h\_ent\_name is on my hate list with $h\_hate hate and $h\_dmg damage.");
|
my $h_ent_name = $h_ent->GetCleanName();
|
||||||
}
|
quest::say("$h_ent_name is on my hate list with $h_hate hate and $h_dmg damage.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
#### **Function Lists**
|
#### **Function Lists**
|
||||||
|
|
||||||
* Nearly every function for Perl can be found in the EQEmu source[https://github.com/EQEmu/Server/blob/master/zone/perl_mob.cpp](https://github.com/EQEmu/Server/blob/master/zone/perl_mob.cpp)
|
* Nearly every function for Perl can be found in the EQEmu source[https://github.com/EQEmu/Server/blob/master/zone/perl_mob.cpp](https://github.com/EQEmu/Server/blob/master/zone/perl_mob.cpp)
|
||||||
|
|
||||||
#### **Client - $client->Object();**
|
# Client
|
||||||
|
|
||||||
AccountID()
|
### Example
|
||||||
AccountName()
|
```perl
|
||||||
AddAAPoints(number)
|
$client->GetAccountID()
|
||||||
AddAlternateCurrencyValue(currency_id, value)
|
```
|
||||||
AddCrystals(NumberOfRadiant, NumberOfEbon)
|
|
||||||
AddEXP(add_exp, conlevel, resexp)
|
```perl
|
||||||
AddLevelBasedExp(exp\_percentage, max\_level)
|
AccountID()
|
||||||
AddMoneyToPP(copper, silver, gold, platinum, updateclient)
|
AccountName()
|
||||||
AddPVPPoints(Points)
|
AddAAPoints(number)
|
||||||
AddSkill(skillid, value)
|
AddAlternateCurrencyValue(currency_id, value)
|
||||||
Admin()
|
AddCrystals(NumberOfRadiant, NumberOfEbon)
|
||||||
AssignTask(taskid, npcid\[, enforce\_level\_requirement\]) # use 0 for npcid to assume current npc, 0/1 to enforce level requirement in DB
|
AddEXP(add_exp, conlevel, resexp)
|
||||||
AssignToInstance(instance_id)
|
AddLevelBasedExp(exp_percentage, max_level)
|
||||||
AutoSplitEnabled()
|
AddMoneyToPP(copper, silver, gold, platinum, updateclient)
|
||||||
BreakInvis()
|
AddPVPPoints(Points)
|
||||||
CalcPriceMod(other, reverse)
|
AddSkill(skillid, value)
|
||||||
CanHaveSkill(skill_id)
|
Admin()
|
||||||
ChangeLastName(in_lastname)
|
AssignTask(taskid, npcid[, enforce_level_requirement]) # use 0 for npcid to assume current npc, 0/1 to enforce level requirement in DB
|
||||||
CharacterID()
|
AssignToInstance(instance_id)
|
||||||
CheckIncreaseSkill(skillid, chancemodi)
|
AutoSplitEnabled()
|
||||||
CheckSpecializeIncrease(spell_id)
|
BreakInvis()
|
||||||
ClearCompassMark()
|
CalcPriceMod(other, reverse)
|
||||||
ClearZoneFlag(zone_id)
|
CanHaveSkill(skill_id)
|
||||||
Connected()
|
ChangeLastName(in_lastname)
|
||||||
DecreaseByID(type, amt)
|
CharacterID()
|
||||||
DeleteItemInInventory(slot\_id, quantity, client\_update)
|
CheckIncreaseSkill(skillid, chancemodi)
|
||||||
Disconnect()
|
CheckSpecializeIncrease(spell_id)
|
||||||
DropItem(slot_id)
|
ClearCompassMark()
|
||||||
Duck()
|
ClearZoneFlag(zone_id)
|
||||||
Escape()
|
Connected()
|
||||||
FailTask(taskid)
|
DecreaseByID(type, amt)
|
||||||
ForageItem()
|
DeleteItemInInventory(slot_id, quantity, client_update)
|
||||||
Freeze()
|
Disconnect()
|
||||||
GMKill()
|
DropItem(slot_id)
|
||||||
GetAAExp()
|
Duck()
|
||||||
GetAALevel(skill_id)
|
Escape()
|
||||||
GetAAPoints()
|
FailTask(taskid)
|
||||||
GetAccountFlag(flag)
|
ForageItem()
|
||||||
GetAggroCount()
|
Freeze()
|
||||||
GetAllMoney()
|
GMKill()
|
||||||
GetAnon()
|
GetAAExp()
|
||||||
GetAugmentAt(slot, aug_slot)
|
GetAALevel(skill_id)
|
||||||
GetAugmentIDAt(slot, aug_slot)
|
GetAAPoints()
|
||||||
GetBaseAGI()
|
GetAccountFlag(flag)
|
||||||
GetBaseCHA()
|
GetAggroCount()
|
||||||
GetBaseDEX()
|
GetAllMoney()
|
||||||
GetBaseFace()
|
GetAnon()
|
||||||
GetBaseINT()
|
GetAugmentAt(slot, aug_slot)
|
||||||
GetBaseSTA()
|
GetAugmentIDAt(slot, aug_slot)
|
||||||
GetBaseSTR()
|
GetBaseAGI()
|
||||||
GetBaseWIS()
|
GetBaseCHA()
|
||||||
GetBecomeNPCLevel()
|
GetBaseDEX()
|
||||||
GetCarriedMoney()
|
GetBaseFace()
|
||||||
GetCharacterFactionLevel(faction_id)
|
GetBaseINT()
|
||||||
GetClientVersion()
|
GetBaseSTA()
|
||||||
GetClientVersionBit()
|
GetBaseSTR()
|
||||||
GetCorpseCount()
|
GetBaseWIS()
|
||||||
GetCorpseID(corpse_number)
|
GetBecomeNPCLevel()
|
||||||
GetCorpseItemAt(corpse_number, slotid)
|
GetCarriedMoney()
|
||||||
GetCustomItemData()
|
GetCharacterFactionLevel(faction_id)
|
||||||
GetDuelTarget()
|
GetClientVersion()
|
||||||
GetEXP()
|
GetClientVersionBit()
|
||||||
GetEbonCrystals()
|
GetCorpseCount()
|
||||||
GetEndurance()
|
GetCorpseID(corpse_number)
|
||||||
GetEnduranceRatio()
|
GetCorpseItemAt(corpse_number, slotid)
|
||||||
GetFace()
|
GetCustomItemData()
|
||||||
GetFactionLevel(char\_id, npc\_id, p\_race, p\_class, p_deity, pFaction, tnpc)
|
GetDuelTarget()
|
||||||
GetFeigned()
|
GetEXP()
|
||||||
GetFreeSpellBookSlot(start_slot)
|
GetEbonCrystals()
|
||||||
GetGM()
|
GetEndurance()
|
||||||
GetGroup()
|
GetEnduranceRatio()
|
||||||
GetGroupPoints()
|
GetFace()
|
||||||
GetHorseId()
|
GetFactionLevel(char_id, npc_id, p_race, p_class, p_deity, pFaction, tnpc)
|
||||||
GetInstrumentMod(spell_id)
|
GetFeigned()
|
||||||
GetIP()
|
GetFreeSpellBookSlot(start_slot)
|
||||||
GetInstrumentMod()
|
GetGM()
|
||||||
GetItemAt(slot)
|
GetGroup()
|
||||||
GetItemIDAt(slot_id)
|
GetGroupPoints()
|
||||||
GetItemInInventory(slot_id)
|
GetHorseId()
|
||||||
GetLDoNLosses()
|
GetInstrumentMod(spell_id)
|
||||||
GetLDoNLossesTheme()
|
GetIP()
|
||||||
GetLDoNPointsTheme(theme)
|
GetInstrumentMod()
|
||||||
GetLDoNWins()
|
GetItemAt(slot)
|
||||||
GetLDoNWinsTheme()
|
GetItemIDAt(slot_id)
|
||||||
GetLanguageSkill(n)
|
GetItemInInventory(slot_id)
|
||||||
GetLastName()
|
GetLDoNLosses()
|
||||||
GetMaxEndurance()
|
GetLDoNLossesTheme()
|
||||||
GetModCharacterFactionLevel(faction_id) # Returns the character's faction level with race, class, and deity modifiers
|
GetLDoNPointsTheme(theme)
|
||||||
GetPVP()
|
GetLDoNWins()
|
||||||
GetPVPPoints()
|
GetLDoNWinsTheme()
|
||||||
GetRadiantCrystals()
|
GetLanguageSkill(n)
|
||||||
GetRaid()
|
GetLastName()
|
||||||
GetRaidPoints()
|
GetMaxEndurance()
|
||||||
GetRawItemAC()
|
GetModCharacterFactionLevel(faction_id) # Returns the character's faction level with race, class, and deity modifiers
|
||||||
GetRawSkill(skill_id)
|
GetPVP()
|
||||||
GetSkill(skill_id)
|
GetPVPPoints()
|
||||||
GetSkillPoints()
|
GetRadiantCrystals()
|
||||||
GetSpellBookSlotBySpellID(spell_id)
|
GetRaid()
|
||||||
GetSpentAA()
|
GetRaidPoints()
|
||||||
GetStartZone() # Returns the zone id number of the character's home city
|
GetRawItemAC()
|
||||||
GetTargetRingX()
|
GetRawSkill(skill_id)
|
||||||
GetTargetRingY()
|
GetSkill(skill_id)
|
||||||
GetTargetRingZ()
|
GetSkillPoints()
|
||||||
GetTaskActivityDoneCount(taskid, activityid)
|
GetSpellBookSlotBySpellID(spell_id)
|
||||||
GetTotalSecondsPlayed()
|
GetSpentAA()
|
||||||
GetWeight()
|
GetStartZone() # Returns the zone id number of the character's home city
|
||||||
GoFish()
|
GetTargetRingX()
|
||||||
GuildID()
|
GetTargetRingY()
|
||||||
GuildRank()
|
GetTargetRingZ()
|
||||||
HasSkill(skill_id)
|
GetTaskActivityDoneCount(taskid, activityid)
|
||||||
HasZoneFlag(zone_id)
|
GetTotalSecondsPlayed()
|
||||||
Hungry()
|
GetWeight()
|
||||||
InZone()
|
GoFish()
|
||||||
IncStats(type, increase_val)
|
GuildID()
|
||||||
IncreaseLanguageSkill(skill_id, value)
|
GuildRank()
|
||||||
IncreaseSkill(skill_id, value)
|
HasSkill(skill_id)
|
||||||
IncrementAA(skill_id)
|
HasZoneFlag(zone_id)
|
||||||
IsBecomeNPC()
|
Hungry()
|
||||||
IsDueling()
|
InZone()
|
||||||
IsGrouped()
|
IncStats(type, increase_val)
|
||||||
IsLD()
|
IncreaseLanguageSkill(skill_id, value)
|
||||||
IsMedding()
|
IncreaseSkill(skill_id, value)
|
||||||
IsRaidGrouped()
|
IncrementAA(skill_id)
|
||||||
IsSitting()
|
IsBecomeNPC()
|
||||||
IsTaskActive(taskid)
|
IsDueling()
|
||||||
IsTaskActivityActive(taskid, activityid)
|
IsGrouped()
|
||||||
IsTaskCompleted(taskid)
|
IsLD()
|
||||||
KeyRingAdd()
|
IsMedding()
|
||||||
KeyRingCheck()
|
IsRaidGrouped()
|
||||||
Kick()
|
IsSitting()
|
||||||
LearnRecipe()
|
IsTaskActive(taskid)
|
||||||
LeaveGroup()
|
IsTaskActivityActive(taskid, activityid)
|
||||||
LoadZoneFlags()
|
IsTaskCompleted(taskid)
|
||||||
LootToStack(itemid)
|
KeyRingAdd()
|
||||||
MarkCompassLoc(x, y, z)
|
KeyRingCheck()
|
||||||
MaxSkill(skillid)
|
Kick()
|
||||||
MemSpell(spell\_id, slot, update\_client)
|
LearnRecipe()
|
||||||
MovePC(zoneID, x, y, z, heading)
|
LeaveGroup()
|
||||||
MovePCInstance(zoneID, instanceID, x, y, z, heading)
|
LoadZoneFlags()
|
||||||
NPCSpawn(target_npc, option, respawntime) # Options are: "create", "add", "update", "remove", "delete"
|
LootToStack(itemid)
|
||||||
NukeItem(itemnum)
|
MarkCompassLoc(x, y, z)
|
||||||
OpenLFGuildWindow()
|
MaxSkill(skillid)
|
||||||
ReadBook(Book Text, Type)
|
MemSpell(spell_id, slot, update_client)
|
||||||
RefundAA()
|
MovePC(zoneID, x, y, z, heading)
|
||||||
RemoveNoRent()
|
MovePCInstance(zoneID, instanceID, x, y, z, heading)
|
||||||
ResetAA()
|
NPCSpawn(target_npc, option, respawntime) # Options are: "create", "add", "update", "remove", "delete"
|
||||||
ResetTaskActivity(taskid, activityid)
|
NukeItem(itemnum)
|
||||||
ResetTrade()
|
OpenLFGuildWindow()
|
||||||
Save(iCommitNow)
|
ReadBook(Book Text, Type)
|
||||||
SaveBackup()
|
RefundAA()
|
||||||
ScribeSpell(spell\_id, slot, update\_client)
|
RemoveNoRent()
|
||||||
SendColoredText(color, msg)
|
ResetAA()
|
||||||
SendMarqueeMessage(type, priority, fade\_in, fade\_out, duration, message) # type = color, priority = text opacity, fade\_in = 1, fade\_out = fade out in MS, duration = duration in MS
|
ResetTaskActivity(taskid, activityid)
|
||||||
SendOPTranslocateConfirm()
|
ResetTrade()
|
||||||
SendSound()
|
Save(iCommitNow)
|
||||||
SendSpellAnim(targetid, spellid)
|
SaveBackup()
|
||||||
SendZoneFlagInfo(to)
|
ScribeSpell(spell_id, slot, update_client)
|
||||||
SetAAPoints(points)
|
SendColoredText(color, msg)
|
||||||
SetAATitle(txt, save)
|
SendMarqueeMessage(type, priority, fade_in, fade_out, duration, message) # type = color, priority = text opacity, fade_in = 1, fade_out = fade out in MS, duration = duration in MS
|
||||||
SetAccountFlag(flag, value)
|
SendOPTranslocateConfirm()
|
||||||
SetBaseClass(i)
|
SendSound()
|
||||||
SetBaseGender(i)
|
SendSpellAnim(targetid, spellid)
|
||||||
SetBaseRace(i)
|
SendZoneFlagInfo(to)
|
||||||
SetBecomeNPC(flag)
|
SetAAPoints(points)
|
||||||
SetBecomeNPCLevel(level)
|
SetAATitle(txt, save)
|
||||||
SetBindPoint(to\_zone, new\_x, new\_y, new\_z)
|
SetAccountFlag(flag, value)
|
||||||
SetCustomItemData()
|
SetBaseClass(i)
|
||||||
SetDeity(i)
|
SetBaseGender(i)
|
||||||
SetDuelTarget(set_id)
|
SetBaseRace(i)
|
||||||
SetDueling(duel)
|
SetBecomeNPC(flag)
|
||||||
SetEXP(set\_exp, set\_aaxp, resexp)
|
SetBecomeNPCLevel(level)
|
||||||
SetEndurance(Endurance)
|
SetBindPoint(to_zone, new_x, new_y, new_z)
|
||||||
SetFactionLevel(char\_id, npc\_id, char\_class, char\_race, char_deity)
|
SetCustomItemData()
|
||||||
SetFactionLevel2(char\_id, faction\_id, char\_class, char\_race, char_deity, value)
|
SetDeity(i)
|
||||||
SetFeigned(in_feigned)
|
SetDuelTarget(set_id)
|
||||||
SetGM(toggle)
|
SetDueling(duel)
|
||||||
SetHorseId(horseid_in)
|
SetEXP(set_exp, set_aaxp, resexp)
|
||||||
SetLanguageSkill(langid, value)
|
SetEndurance(Endurance)
|
||||||
SetMaterial(slot\_id, item\_id)
|
SetFactionLevel(char_id, npc_id, char_class, char_race, char_deity)
|
||||||
SetPVP(toggle)
|
SetFactionLevel2(char_id, faction_id, char_class, char_race, char_deity, value)
|
||||||
SetSkill(skill_num, value)
|
SetFeigned(in_feigned)
|
||||||
SetSkillPoints(inp)
|
SetGM(toggle)
|
||||||
SetStartZone(zoneid, x, y, z) # Sets the home city bind point. The coordinates x, y, and z are optional.
|
SetHorseId(horseid_in)
|
||||||
SetStats(type, increase_val)
|
SetLanguageSkill(langid, value)
|
||||||
SetTint(slot_id, color)
|
SetMaterial(slot_id, item_id)
|
||||||
SetTitleSuffix(txt, save)
|
SetPVP(toggle)
|
||||||
SetZoneFlag(zone_id)
|
SetSkill(skill_num, value)
|
||||||
SignalClient(data)
|
SetSkillPoints(inp)
|
||||||
SlotConvert2(slot)
|
SetStartZone(zoneid, x, y, z) # Sets the home city bind point. The coordinates x, y, and z are optional.
|
||||||
Stand()
|
SetStats(type, increase_val)
|
||||||
SummonItem(item_id, charges, attune, aug1, aug2, aug3, aug4, aug5)
|
SetTint(slot_id, color)
|
||||||
TGB()
|
SetTitleSuffix(txt, save)
|
||||||
TakeMoneyFromPP(copper, update_client)
|
SetZoneFlag(zone_id)
|
||||||
TaskTimeLeft(taskid)
|
SignalClient(data)
|
||||||
Thirsty()
|
SlotConvert2(slot)
|
||||||
UnFreeze()
|
Stand()
|
||||||
Undye()
|
SummonItem(item_id, charges, attune, aug1, aug2, aug3, aug4, aug5)
|
||||||
UnmemSpell(slot, update_client)
|
TGB()
|
||||||
UnmemSpellAll(update_client)
|
TakeMoneyFromPP(copper, update_client)
|
||||||
UnscribeSpell(slot, update_client)
|
TaskTimeLeft(taskid)
|
||||||
UnscribeSpellAll(update_client)
|
Thirsty()
|
||||||
UntrainDisc(slot, update_client)
|
UnFreeze()
|
||||||
UntrainDiscAll(update_client)
|
Undye()
|
||||||
UpdateAdmin(iFromDB)
|
UnmemSpell(slot, update_client)
|
||||||
UpdateGroupAAs()
|
UnmemSpellAll(update_client)
|
||||||
UpdateLDoNPoints(points, theme)
|
UnscribeSpell(slot, update_client)
|
||||||
UpdateTaskActivity(taskID, activityID, count\[, hide update client?\]) # i.e. $client->UpdateTaskActivity(507, 0, 3) will increment task 507's activity 0 by 3.
|
UnscribeSpellAll(update_client)
|
||||||
UpdateWho(remove)
|
UntrainDisc(slot, update_client)
|
||||||
UseDiscipline(spell_id, target)
|
UntrainDiscAll(update_client)
|
||||||
WorldKick()
|
UpdateAdmin(iFromDB)
|
||||||
|
UpdateGroupAAs()
|
||||||
|
UpdateLDoNPoints(points, theme)
|
||||||
|
UpdateTaskActivity(taskID, activityID, count[, hide update client?]) # i.e. $client->UpdateTaskActivity(507, 0, 3) will increment task 507's activity 0 by 3.
|
||||||
|
UpdateWho(remove)
|
||||||
|
UseDiscipline(spell_id, target)
|
||||||
|
WorldKick()
|
||||||
|
```
|
||||||
|
|
||||||
#### **Corpse - $corpse->Object();**
|
#### **Corpse - $corpse->Object();**
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user