Next Release
If you guys can bare with me till next release, the next release i've fixed a ton of bugs, optimized code, added many new features.
* Added function support. Syntax: function function_name {
code; }. Call this with:
function_name("someparam,anotherparam").
There is no limit to the number of parameters you can pass to it,
they will be $param1 through $paramSOMENUMBER.
* Added %variables global support. If you put for code like
%variable.g = "Something"; That will be a global variable for any
npc to access but if you just use %variable without the ".g" it's
for that npc only.
* Added $npc_status(npctypeid) or $npc_status(npc_name).
Returns "up" or "down".
* Fixed alot of the $identifier functions such as $mid() etc. Added a
few more string functions.
* Fixed bug in if statement parsing having to do with "||".
* Fixed bug where if you used comas in commands() it would parse
it as a parameter instead of actual text.
* Added SetTarget("npctype/entity","id") sets the npc's target to
either an npctypeid given or an entity id given. Also added
FaceTarget().
* Added write("filename","text") - Later on more options will be
added to this function. Also added $read(filename,line#) more
options to be added on this one also.
* Added EVENT_SLAY for when an npc slays a pc.
* Added EVENT_WAYPOINT for when an npc reaches a waypoint
also added $wp to return the waypoint number that the npc
is heading to.
* Added Follow("id") and Sfollow() mostly using $userid npc will
follow pc around until Sfollow() is called.
That's all I can think of off top of my head. More to come.
|