Search the Community
Showing results for tags 'script command'.
Found 2 results
Hello again! This time I bring the getalliance(<Guild ID>) script command. It works similar to getpartymember() and getguildmember(). I'm still in the process of testing, but it seems to work okay so far. There is a sample script in the comments section at the top of the plugin. Try it out! *getalliance(<Guild ID>) This command will find all guilds in an alliance with the specified guild and returns their names and guild ids into an array of temporary global variables. Upon executing this, [email protected]$ is a global temporary string array which contains all the names of each allied guild. [email protected]$ is a global temporary string array which contains all the names of each opposition guild. [email protected] is a global temporary number array which contains the guild id of each allied guild. [email protected] is a global temporary number array which contains the guild id of each opposition guild. [email protected]unt is the number of allied guilds found. [email protected] is the number of opposition guilds found. Note that the returned guilds come in no particular order. Be sure to use [email protected]/[email protected] to go through this array, and not getarraysize(), because it is not cleared between runs of getalliance(). For usage examples, see getpartymember(). Download: https://pastebin.com/82DxKcUW
unequipall script command After doing this code: unequip EQI_HEAD_TOP; unequip EQI_ARMOR; unequip EQI_HAND_L; unequip EQI_HAND_R; unequip EQI_GARMENT; unequip EQI_SHOES; unequip EQI_ACC_L; unequip EQI_ACC_R; unequip EQI_HEAD_MID; unequip EQI_HEAD_LOW; unequip EQI_COSTUME_HEAD_LOW; unequip EQI_COSTUME_HEAD_MID; unequip EQI_COSTUME_HEAD_TOP; I thought: there's not a script comamnd that can unequip all equipments ? so I did it. USAGE * unequipall; This command will unequip all items of the current attached player. DOWNLOAD https://xp-dev.com/svn/tecnocronus_scripts/snippets/EN/unequipall.patch NOTES * Compile with MSVC++ 2010