EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Feature Requests (https://www.eqemulator.org/forums/forumdisplay.php?f=612)
-   -   A few PERL requests (https://www.eqemulator.org/forums/showthread.php?t=26060)

Deimos 08-30-2008 07:09 PM

A few PERL requests
 
quest::spawnobject(modelpath, facing x, facing y, x, y, z,) (objects as in placeable objects like barrels, firepits, etc).

quest::despawnobject(id)

quest::damage(type,id) (type for player or npc)

quest::getcx(type,id) (for x, y, and z) (would return the x or w/e coordinate for players or npcs or objects)

quest::getid(type,type2,x,y,z,range) (would return an array with all npc or player ids or object ids within range of the NPC or Player or Coordinates. Coordinate values don't matter if it's set to NPC or Player.) Returning an array would just set a local variable array. You can also get the maximum index for that variable with a PERL function.

quest::target(type, npc/player id or null for no target) (sets player's target)


sub EVENT_TARGET (whenever a player targets (left clicks) an NPC)
sub EVENT_CONSIDER (whenever a player considers (right clicks) an NPC)
sub EVENT_CAST (this is whenever a player casts a spell in a zone)
sub EVENT_TEXT (this is whenever a player talks in a zone)

Cast and text could be modified to within a range, but either way it'd work

joligario 08-30-2008 10:20 PM

Ouch
 
Some of those would be resource intense.. especially the target.

Deimos 08-30-2008 10:26 PM

You could limit it to a specific NPC that processes the information and limit it to a specific zone.

As long as it's possible to have these scripts run off of these events then it should increase the capabilities you can do in EQEMu servers. For example, some guy might want to make an alternate combat system and so they might have an invisible 3D grid through out the zone that allows players to click and attack in that direction. Or they might want to make something like a client menu... or there are just lots of other uses for quite a bit of this...

And yes, I have a typo in the quest::getcx : P, and I bet you can guess what it is. ; D.

I'm just hoping if a dev can add this stuff in so I can start to work on the server I really want to work on : P. I just posted the bare min of what I needed to get everything working properly : D. I also talked to some people from other servers and they were excited about being able to use some of this stuff, especially quest::spawnobject. ^_^


All times are GMT -4. The time now is 04:46 PM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.