Server Scripting Functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
Head over to [[Module functions]] for a list of non-native functions and modules that are available.
Head over to [[Module functions]] for a list of non-native functions and modules that are available.


==Event functions==
==Blip functions==
bool [[addEvent]] ( string name, string arguments )
blip [[createBlip]] ( float x, float y, float z, [int icon=0, int size=2, int r=255, int g=0, int b=0, int a=255] )
 
blip [[createBlipAttachedTo]] ( [[entity]] entity, [int icon=0, int size=2, int r=255, int g=0, int b=0, int a=255] )
 
bool [[destroyBlipAttachedTo]] ( [[entity]] entity )
 
bool [[destroyAllBlips]] ()
 
int [[getBlipIcon]] ( [[blip]] blip )


bool [[addEventHandler]] ( string name, [[element]] element, string handler )
int [[getBlipSize]] ( [[blip]] blip )


bool [[triggerEvent]] ( string name, [[element]] element, [argument, ...] )
int int int int [[getBlipColor]] ( [[blip]] blip )


==World functions==
blip [[getBlipAttachedTo]] ( [[entity]] entity )
int int [[getTime]] ()


int [[getWeather]] ()
bool [[setBlipIcon]] ( [[blip]] blip, int icon )


bool [[setTime]] ( int hour, int min )
bool [[setBlipSize]] ( [[blip]] blip, int size )


bool [[setWeather]] ( int id )
bool [[setBlipColor]] ( [[blip]] blip, int red, int green, int blue, int alpha )


bool [[setWeatherBlended]] ( int id )
bool [[attachBlipToEntity]] ( [[blip]] blip, [[entity]] entity )


==Element functions==
==Element functions==
Line 44: Line 51:


bool [[setEntityPosition]] ( [[element]] element )
bool [[setEntityPosition]] ( [[element]] element )
==Event functions==
bool [[addEvent]] ( string name, string arguments )
bool [[addEventHandler]] ( string name, [[element]] element, string handler )
bool [[triggerEvent]] ( string name, [[element]] element, [argument, ...] )
==Map functions==
string [[getLoadedMapName]] ()
xmlnode [[getLoadedMapXMLRoot]] ()
==Marker functions==
marker [[createMarker]] ( float x, float y, float z, [int type, float size, int r, int g, int b] )
bool [[destroyAllMarkers]] ()
int [[getMarkerCount]] ()
int [[getMarkerType]] ( [[marker]] marker )
float [[getMarkerSize]] ( [[marker]] marker )
int int int [[getMarkerColor]] ( [[marker]] marker )
bool [[setMarkerType]] ( [[element]] marker, int type )
bool [[setMarkerSize]] ( [[element]] marker, float size )
bool [[setMarkerColor]] ( [[element]] marker, int r, int g, int b )
==Object functions==
[[object]] [[createObject]] ( int id, float x, float y, float z, [float rx, float ry, float rz] )
bool [[destroyAllObjects]] ()
int [[getObjectModel]] ( [[object]] object )
float float float [[getObjectRotation]] ( [[object]] object )
bool [[setObjectModel]] (  [[object]] object, int id )
bool [[setObjectRotation]] (  [[object]] object, float x, float y, float z )
bool [[moveObject]] (  [[object]] object, int time, float x, float y, float z, float rx, float ry, float rz )
==Pickup functions==
[[pickup]] [[createPickup]] ( float x, float y, float z, int type, int amount/weapon, [int ammo] )
bool [[destroyAllPickups]] ()
int [[getPickupType]] ( [[pickup]] pickup )
int [[getPickupWeapon]] ( [[pickup]] pickup )
int [[getPickupHealth]] ( [[pickup]] pickup )
int [[getPickupAmmo]] ( [[pickup]] pickup )
bool [[setPickupType]] ( [[pickup]] pickup, int type, int amount/weapon, [int ammo] )


==Player functions==
==Player functions==
Line 108: Line 176:
bool [[spawnPlayer]] ( [[player]] player, float x, float y, float z, float rotation, int skin )
bool [[spawnPlayer]] ( [[player]] player, float x, float y, float z, float rotation, int skin )


==Weapon functions==
==Radar area functions==
bool [[giveWeapon]] ( [[element]] player, int weapon, [int ammo=30] )
[[radararea]] [[createRadarArea]] ( float x, float y, float sizex, float sizey, int r, int g, int b, int a )


bool [[takeWeapon]] ( [[element]] player, int weapon )
bool [[destroyAllRadarAreas]] ()


bool [[takeAllWeapons]] ( [[element]] player )
float float [[getRadarAreaSize]] ( [[radararea]] radararea )


==Vehicle functions==
int int int int [[getRadarAreaColor]] ( [[radararea]] radararea )
vehicle [[createVehicle]] ( int id, float x, float y, float z, [float rx, float ry, float rz] )


bool [[destroyAllVehicles]] ()
bool [[isRadarAreaFlashing]] ( [[radararea]] radararea )


int int int int [[getVehicleColor]] ( [[vehicle]] vehicle )
bool [[setRadarAreaSize]] ( [[radararea]] radararea, float x, float y )


float [[getVehicleHealth]] ( [[vehicle]] vehicle )
bool [[setRadarAreaColor]] ( [[radararea]] radararea, int r, int g, int b, int a )


int [[getVehicleID]] ( [[vehicle]] vehicle )
bool [[setRadarAreaFlashing]] ( [[radararea]] radararea, bool flash )


int [[getVehicleIDFromName]] ( string name )
==Scoreboard functions==
bool [[addScoreboardColumn]] ( string id, string name, float width )


int [[getVehicleIndex]] ( [[vehicle]] vehicle )
bool [[removeScoreboardColumn]] ( string id )


float float float [[getVehicleMoveSpeed]] ( string vehicle )
==Server functions==
int [[getMaxPlayers]] ()


string [[getVehicleName]] ( string vehicle )
bool [[serverLoggerPrint]] ( string text )


string [[getVehicleNameFromID]] ( int id )
bool [[serverChat]] ( string text )


player [[getVehicleOccupant]] ( [[vehicle]] vehicle, [int seat=0] )
bool [[playerPM]] ( [[element]] player, string text )


float float float [[getVehicleRotation]] ( [[vehicle]] vehicle )
==Text Functions==
textdisplay [[textCreateDisplay]] ()


float float float [[getVehicleTurnSpeed]] ( [[vehicle]] vehicle )
void [[textDestroyDisplay]] ( textdisplay )


float float [[getVehicleTurretPosition]] ( [[vehicle]] vehicle )
textitem [[textCreateTextItem]] ( [text, x, y, priority, red, green, blue, alpha, scale] )


int [[getVehicleMaxPassengers]] ( [[vehicle]] vehicle )
void [[textDestroyTextItem]] ( textitem )


bool [[isVehicleLocked]] ( [[vehicle]] vehicle )
void [[textDisplayAddText]] ( textdisplay, textitem )


bool [[fixVehicle]] ( [[element]] vehicle )
void [[textDisplayAddObserver]] ( textdisplay, player )


bool [[blowVehicle]] ( [[element]] vehicle, [bool explode=true] )
void [[textItemSetText]] ( textitem, text )


bool [[setVehicleRotation]] ( [[element]] vehicle, float rx, float ry, float rz )
string [[textItemGetText]] ( textitem )


bool [[setVehicleMoveSpeed]] ( [[element]] vehicle, float x, float y, float z )
void [[textItemSetScale]] ( textitem, scale )


bool [[setVehicleTurnSpeed]] ( [[element]] vehicle, float rx, float ry, float rz )
float [[textItemGetScale]] ( textitem )


bool [[setVehicleHealth]] ( [[element]] vehicle, float health )
void [[textItemSetPosition]] ( textitem, x, y )


bool [[setVehicleColor]] ( [[element]] vehicle, int color1, int color2, int color3, int color4 )
float float [[textItemGetPosition]] ( textitem )


bool [[setVehicleLocked]] ( [[element]] vehicle, bool locked )
void [[textItemSetColor]] ( textitem, red, green, blue, alpha )


==Marker functions==
int int int int [[textItemGetColor]] ( textitem )
marker [[createMarker]] ( float x, float y, float z, [int type, float size, int r, int g, int b] )


bool [[destroyAllMarkers]] ()
void [[textItemSetPriority]] ( textitem, priority )


int [[getMarkerCount]] ()
int [[textItemGetPriority]] ( textitem )


int [[getMarkerType]] ( [[marker]] marker )
==Utility functions==
float [[getDistanceBetweenPoints2D]] ( float x1, float y1, float x2, float y2 )


float [[getMarkerSize]] ( [[marker]] marker )
float [[getDistanceBetweenPoints3D]] ( float x1, float y1, float z1, float x2, float y2, float z2 )


int int int [[getMarkerColor]] ( [[marker]] marker )
int [[randInt]] ( int lowerbound, int upperbound )


bool [[setMarkerType]] ( [[element]] marker, int type )
float [[randFloat]] ()


bool [[setMarkerSize]] ( [[element]] marker, float size )
int [[getTickCount]] ()


bool [[setMarkerColor]] ( [[element]] marker, int r, int g, int b )
string [[gettok]] ( string text, int index, int separator )


==Blip functions==
bool [[setTimer]] ( string function, int time, [arg1, arg2, ...] )
blip [[createBlip]] ( float x, float y, float z, [int icon=0, int size=2, int r=255, int g=0, int b=0, int a=255] )


blip [[createBlipAttachedTo]] ( [[entity]] entity, [int icon=0, int size=2, int r=255, int g=0, int b=0, int a=255] )
==Vehicle functions==
vehicle [[createVehicle]] ( int id, float x, float y, float z, [float rx, float ry, float rz] )


bool [[destroyBlipAttachedTo]] ( [[entity]] entity )
bool [[destroyAllVehicles]] ()


bool [[destroyAllBlips]] ()
int int int int [[getVehicleColor]] ( [[vehicle]] vehicle )


int [[getBlipIcon]] ( [[blip]] blip )
float [[getVehicleHealth]] ( [[vehicle]] vehicle )


int [[getBlipSize]] ( [[blip]] blip )
int [[getVehicleID]] ( [[vehicle]] vehicle )


int int int int [[getBlipColor]] ( [[blip]] blip )
int [[getVehicleIDFromName]] ( string name )


blip [[getBlipAttachedTo]] ( [[entity]] entity )
int [[getVehicleIndex]] ( [[vehicle]] vehicle )


bool [[setBlipIcon]] ( [[blip]] blip, int icon )
float float float [[getVehicleMoveSpeed]] ( string vehicle )


bool [[setBlipSize]] ( [[blip]] blip, int size )
string [[getVehicleName]] ( string vehicle )


bool [[setBlipColor]] ( [[blip]] blip, int red, int green, int blue, int alpha )
string [[getVehicleNameFromID]] ( int id )


bool [[attachBlipToEntity]] ( [[blip]] blip, [[entity]] entity )
player [[getVehicleOccupant]] ( [[vehicle]] vehicle, [int seat=0] )


==Object functions==
float float float [[getVehicleRotation]] ( [[vehicle]] vehicle )
[[object]] [[createObject]] ( int id, float x, float y, float z, [float rx, float ry, float rz] )


bool [[destroyAllObjects]] ()
float float float [[getVehicleTurnSpeed]] ( [[vehicle]] vehicle )


int [[getObjectModel]] ( [[object]] object )
float float [[getVehicleTurretPosition]] ( [[vehicle]] vehicle )


float float float [[getObjectRotation]] ( [[object]] object )
int [[getVehicleMaxPassengers]] ( [[vehicle]] vehicle )


bool [[setObjectModel]] ( [[object]] object, int id )
bool [[isVehicleLocked]] ( [[vehicle]] vehicle )


bool [[setObjectRotation]] ( [[object]] object, float x, float y, float z )
bool [[fixVehicle]] ( [[element]] vehicle )


bool [[moveObject]] ( [[object]] object, int time, float x, float y, float z, float rx, float ry, float rz )
bool [[blowVehicle]] ( [[element]] vehicle, [bool explode=true] )


==Pickup functions==
bool [[setVehicleRotation]] ( [[element]] vehicle, float rx, float ry, float rz )
[[pickup]] [[createPickup]] ( float x, float y, float z, int type, int amount/weapon, [int ammo] )


bool [[destroyAllPickups]] ()
bool [[setVehicleMoveSpeed]] ( [[element]] vehicle, float x, float y, float z )


int [[getPickupType]] ( [[pickup]] pickup )
bool [[setVehicleTurnSpeed]] ( [[element]] vehicle, float rx, float ry, float rz )


int [[getPickupWeapon]] ( [[pickup]] pickup )
bool [[setVehicleHealth]] ( [[element]] vehicle, float health )


int [[getPickupHealth]] ( [[pickup]] pickup )
bool [[setVehicleColor]] ( [[element]] vehicle, int color1, int color2, int color3, int color4 )


int [[getPickupAmmo]] ( [[pickup]] pickup )
bool [[setVehicleLocked]] ( [[element]] vehicle, bool locked )
 
bool [[setPickupType]] ( [[pickup]] pickup, int type, int amount/weapon, [int ammo] )
 
==Radar area functions==
[[radararea]] [[createRadarArea]] ( float x, float y, float sizex, float sizey, int r, int g, int b, int a )
 
bool [[destroyAllRadarAreas]] ()
 
float float [[getRadarAreaSize]] ( [[radararea]] radararea )
 
int int int int [[getRadarAreaColor]] ( [[radararea]] radararea )
 
bool [[isRadarAreaFlashing]] ( [[radararea]] radararea )
 
bool [[setRadarAreaSize]] ( [[radararea]] radararea, float x, float y )
 
bool [[setRadarAreaColor]] ( [[radararea]] radararea, int r, int g, int b, int a )
 
bool [[setRadarAreaFlashing]] ( [[radararea]] radararea, bool flash )


==Weapon functions==
==Weapon functions==
Line 260: Line 309:
int [[getWeaponIDFromName]] ( string name )
int [[getWeaponIDFromName]] ( string name )


==Scoreboard functions==
bool [[giveWeapon]] ( [[element]] player, int weapon, [int ammo=30] )
bool [[addScoreboardColumn]] ( string id, string name, float width )


bool [[removeScoreboardColumn]] ( string id )
bool [[takeWeapon]] ( [[element]] player, int weapon )


==Server functions==
bool [[takeAllWeapons]] ( [[element]] player )
int [[getMaxPlayers]] ()


bool [[serverLoggerPrint]] ( string text )
==World functions==
int int [[getTime]] ()


bool [[serverChat]] ( string text )
int [[getWeather]] ()


bool [[playerPM]] ( [[element]] player, string text )
bool [[setTime]] ( int hour, int min )


==Utility functions==
bool [[setWeather]] ( int id )
float [[getDistanceBetweenPoints2D]] ( float x1, float y1, float x2, float y2 )


float [[getDistanceBetweenPoints3D]] ( float x1, float y1, float z1, float x2, float y2, float z2 )
bool [[setWeatherBlended]] ( int id )
 
int [[randInt]] ( int lowerbound, int upperbound )
 
float [[randFloat]] ()
 
int [[getTickCount]] ()
 
string [[gettok]] ( string text, int index, int separator )
 
bool [[setTimer]] ( string function, int time, [arg1, arg2, ...] )
 
==Map functions==
string [[getLoadedMapName]] ()
 
xmlnode [[getLoadedMapXMLRoot]] ()


==XML functions==
==XML functions==
Line 308: Line 340:


bool [[xmlUnloadFile]] ( xmlnode )
bool [[xmlUnloadFile]] ( xmlnode )
==Text Functions==
textdisplay [[textCreateDisplay]] ()
void [[textDestroyDisplay]] ( textdisplay )
textitem [[textCreateTextItem]] ( [text, x, y, priority, red, green, blue, alpha, scale] )
void [[textDestroyTextItem]] ( textitem )
void [[textDisplayAddText]] ( textdisplay, textitem )
void [[textDisplayAddObserver]] ( textdisplay, player )
void [[textItemSetText]] ( textitem, text )
string [[textItemGetText]] ( textitem )
void [[textItemSetScale]] ( textitem, scale )
float [[textItemGetScale]] ( textitem )
void [[textItemSetPosition]] ( textitem, x, y )
float float [[textItemGetPosition]] ( textitem )
void [[textItemSetColor]] ( textitem, red, green, blue, alpha )
int int int int [[textItemGetColor]] ( textitem )
void [[textItemSetPriority]] ( textitem, priority )
int [[textItemGetPriority]] ( textitem )

Revision as of 20:46, 1 May 2006

This page lists all the scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function or event, use Requested Functions and Events

Please note that the scripting functions can now be extended by loading in dynamic modules that provide new functionality, such as MySQL database access. These scripting functions are non-native and require the module to be loaded in order to work.

Head over to Module functions for a list of non-native functions and modules that are available.

Blip functions

blip createBlip ( float x, float y, float z, [int icon=0, int size=2, int r=255, int g=0, int b=0, int a=255] )

blip createBlipAttachedTo ( entity entity, [int icon=0, int size=2, int r=255, int g=0, int b=0, int a=255] )

bool destroyBlipAttachedTo ( entity entity )

bool destroyAllBlips ()

int getBlipIcon ( blip blip )

int getBlipSize ( blip blip )

int int int int getBlipColor ( blip blip )

blip getBlipAttachedTo ( entity entity )

bool setBlipIcon ( blip blip, int icon )

bool setBlipSize ( blip blip, int size )

bool setBlipColor ( blip blip, int red, int green, int blue, int alpha )

bool attachBlipToEntity ( blip blip, entity entity )

Element functions

bool destroyElement ( element element )

element getRootElement ()

string getElementID ( element element )

element getElementByID ( string name, int index )

var getElementData ( string name )

string getElementType ( element element )

bool setElementID ( element element, string name )

bool setElementData ( element element, string name, var data )

Entity functions

float float float getEntityPosition ( entity entity, float x, float y, float z )

bool setEntityPosition ( element element )

Event functions

bool addEvent ( string name, string arguments )

bool addEventHandler ( string name, element element, string handler )

bool triggerEvent ( string name, element element, [argument, ...] )

Map functions

string getLoadedMapName ()

xmlnode getLoadedMapXMLRoot ()

Marker functions

marker createMarker ( float x, float y, float z, [int type, float size, int r, int g, int b] )

bool destroyAllMarkers ()

int getMarkerCount ()

int getMarkerType ( marker marker )

float getMarkerSize ( marker marker )

int int int getMarkerColor ( marker marker )

bool setMarkerType ( element marker, int type )

bool setMarkerSize ( element marker, float size )

bool setMarkerColor ( element marker, int r, int g, int b )

Object functions

object createObject ( int id, float x, float y, float z, [float rx, float ry, float rz] )

bool destroyAllObjects ()

int getObjectModel ( object object )

float float float getObjectRotation ( object object )

bool setObjectModel ( object object, int id )

bool setObjectRotation ( object object, float x, float y, float z )

bool moveObject ( object object, int time, float x, float y, float z, float rx, float ry, float rz )

Pickup functions

pickup createPickup ( float x, float y, float z, int type, int amount/weapon, [int ammo] )

bool destroyAllPickups ()

int getPickupType ( pickup pickup )

int getPickupWeapon ( pickup pickup )

int getPickupHealth ( pickup pickup )

int getPickupAmmo ( pickup pickup )

bool setPickupType ( pickup pickup, int type, int amount/weapon, [int ammo] )

Player functions

int getPlayerCount ()

int getPlayerCurrentWeaponAmmoInClip ( player player )

int getPlayerCurrentWeaponID ( player player )

player getPlayerFromNick ( string nick )

float getPlayerHealth ( player player )

float getPlayerArmor ( player player )

int getPlayerLevel ( player player )

int getPlayerMoney ( player player )

float float float getPlayerMoveSpeed ( player player )

string getPlayerName ( player player )

vehicle getPlayerOccupiedVehicle ( player player )

int getPlayerOccupiedVehicleSeat ( player player )

int getPlayerPing ( player player )

float getPlayerRotation ( player player )

int getPlayerSkin ( player player )

string getPlayerSourceIP ( player player )

player getRandomPlayer ()

bool isPlayerDead ( player player )

bool isPlayerDucked ( player player )

bool isPlayerMuted ( player player )

bool setPlayerRotation ( element player, float rotation )

bool setPlayerSkin ( element player, int id )

bool setPlayerHealth ( element player, float health )

bool setPlayerArmor ( element player, float armor )

bool setPlayerMoney ( element player, int money )

bool givePlayerMoney ( element player, int money )

bool takePlayerMoney ( element player, int money )

bool killPlayer ( element player )

bool warpPlayerIntoVehicle ( player player, vehicle vehicle, [int seat] )

bool removePlayerFromVehicle ( element player )

bool spawnPlayer ( player player, float x, float y, float z, float rotation, int skin )

Radar area functions

radararea createRadarArea ( float x, float y, float sizex, float sizey, int r, int g, int b, int a )

bool destroyAllRadarAreas ()

float float getRadarAreaSize ( radararea radararea )

int int int int getRadarAreaColor ( radararea radararea )

bool isRadarAreaFlashing ( radararea radararea )

bool setRadarAreaSize ( radararea radararea, float x, float y )

bool setRadarAreaColor ( radararea radararea, int r, int g, int b, int a )

bool setRadarAreaFlashing ( radararea radararea, bool flash )

Scoreboard functions

bool addScoreboardColumn ( string id, string name, float width )

bool removeScoreboardColumn ( string id )

Server functions

int getMaxPlayers ()

bool serverLoggerPrint ( string text )

bool serverChat ( string text )

bool playerPM ( element player, string text )

Text Functions

textdisplay textCreateDisplay ()

void textDestroyDisplay ( textdisplay )

textitem textCreateTextItem ( [text, x, y, priority, red, green, blue, alpha, scale] )

void textDestroyTextItem ( textitem )

void textDisplayAddText ( textdisplay, textitem )

void textDisplayAddObserver ( textdisplay, player )

void textItemSetText ( textitem, text )

string textItemGetText ( textitem )

void textItemSetScale ( textitem, scale )

float textItemGetScale ( textitem )

void textItemSetPosition ( textitem, x, y )

float float textItemGetPosition ( textitem )

void textItemSetColor ( textitem, red, green, blue, alpha )

int int int int textItemGetColor ( textitem )

void textItemSetPriority ( textitem, priority )

int textItemGetPriority ( textitem )

Utility functions

float getDistanceBetweenPoints2D ( float x1, float y1, float x2, float y2 )

float getDistanceBetweenPoints3D ( float x1, float y1, float z1, float x2, float y2, float z2 )

int randInt ( int lowerbound, int upperbound )

float randFloat ()

int getTickCount ()

string gettok ( string text, int index, int separator )

bool setTimer ( string function, int time, [arg1, arg2, ...] )

Vehicle functions

vehicle createVehicle ( int id, float x, float y, float z, [float rx, float ry, float rz] )

bool destroyAllVehicles ()

int int int int getVehicleColor ( vehicle vehicle )

float getVehicleHealth ( vehicle vehicle )

int getVehicleID ( vehicle vehicle )

int getVehicleIDFromName ( string name )

int getVehicleIndex ( vehicle vehicle )

float float float getVehicleMoveSpeed ( string vehicle )

string getVehicleName ( string vehicle )

string getVehicleNameFromID ( int id )

player getVehicleOccupant ( vehicle vehicle, [int seat=0] )

float float float getVehicleRotation ( vehicle vehicle )

float float float getVehicleTurnSpeed ( vehicle vehicle )

float float getVehicleTurretPosition ( vehicle vehicle )

int getVehicleMaxPassengers ( vehicle vehicle )

bool isVehicleLocked ( vehicle vehicle )

bool fixVehicle ( element vehicle )

bool blowVehicle ( element vehicle, [bool explode=true] )

bool setVehicleRotation ( element vehicle, float rx, float ry, float rz )

bool setVehicleMoveSpeed ( element vehicle, float x, float y, float z )

bool setVehicleTurnSpeed ( element vehicle, float rx, float ry, float rz )

bool setVehicleHealth ( element vehicle, float health )

bool setVehicleColor ( element vehicle, int color1, int color2, int color3, int color4 )

bool setVehicleLocked ( element vehicle, bool locked )

Weapon functions

string getWeaponNameFromID ( int id )

int getWeaponIDFromName ( string name )

bool giveWeapon ( element player, int weapon, [int ammo=30] )

bool takeWeapon ( element player, int weapon )

bool takeAllWeapons ( element player )

World functions

int int getTime ()

int getWeather ()

bool setTime ( int hour, int min )

bool setWeather ( int id )

bool setWeatherBlended ( int id )

XML functions

xmlnode xmlFindSubNode ( parent, subnode, index )

string xmlNodeGetValue ( xmlNode )

bool xmlNodeSetValue ( xmlNode, value )

string xmlNodeGetAttribute ( xmlNode, attribute name )

bool xmlNodeSetAttribute ( xmlNode, attribute name, value )

xmlnode xmlLoadFile ( filename )

bool xmlUnloadFile ( xmlnode )