From 30c8d7704026aa450b64997c2996ee8d9d4f2cec Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 19 Nov 2009 18:19:09 +0000 Subject: - Applied the renewal client support patch from Diablo (eA forum topic 222623) - Added support for strcharinfo(3) to retrieve the player's map - Added script command "searchitem" for name item searches. - Moved PACKETVER to src/common/mmo.h as it's needed by the char-server now - Changed the status valX from int to long so that it won't break for pointer-storage in other architectures. - Moved the change party leader code to party.c - A few bugfixes or packet field completions based on my past experience messing around with my server. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14155 54d463be-8e91-2dee-dedb-b68131a5f0ec --- doc/script_commands.txt | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index bb4097063..c6b892311 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -4,7 +4,7 @@ //= A reference manual for the eAthena scripting language. //= Commands are sorted depending on their functionality. //===== Version =========================================== -//= 3.25.20081220 +//= 3.28.20091119 //========================================================= //= 1.0 - First release, filled will as much info as I could //= remember or figure out, most likely there are errors, @@ -132,6 +132,9 @@ //= Replaced 'bonusautoscript' by 'autobonus'. [Inkfish] //= 3.27.20090725 //= Added Quest Log related commands. [Inkfish] +//= 3.28.20091119 +//= Added showevent and itemsearch commands [Skotlex] +//= Added info on strcharinfo(3) [Skotlex] //========================================================= This document is a reference manual for all the scripting commands and functions @@ -2013,6 +2016,7 @@ invoking character. Whatever it returns is determined by type. 0 - Character's name. 1 - The name of the party they're in if any. 2 - The name of the guild they're in if any. + 3 - The name of the map the character is in. If a character is not a member of any party or guild, an empty string will be returned when requesting that information. @@ -4065,6 +4069,20 @@ If the map name is given as "this", the map the invoking character is on will be --------------------------------------- +*searchitem ,""; + +This command will fill the given array with the ID of items whose name matches the given one. It returns the number of items found. For performance reasons, the results array is limited to 10 items. + + mes "What item are you looking for?"; + input @name$; + set @qty, searchitem(@matches[0],@name$); + mes "I found "+@qty+" items:"; + for (set @i, 0; @i < @qty; set @i, @i+1) + //Display name (eg: "Apple[0]") + mes getitemname(@matches[@i])+"["+getitemslots(@matches[@i])+"]"; + +--------------------------------------- + *delitem ,{,}; *delitem "",{,}; @@ -6639,6 +6657,25 @@ If parameter "HUNTING" is supplied: 2 = you've killed all of the target monsters --------------------------------------- +*showevent , ; + +Show a colored mark in the mini-map like "viewpoint" and an emoticon on top of a NPC. +This is used to indicate that a NPC has a quest or an event to certain player/s. + +state can be: + 0 = disable ( Used to disable and remove the mark and the emoticon from the NPC. ) + 1 = exclamation emoticon ( Used to show an important quest event to certain player. ) + 2 = interrogation emoticon ( Used to show an non-important quest event to certain player. ) + Other value may cause client crashes. + +color can be: + 0 = yellow + 1 = orange + 2 = green + 3 = blue + other values show a transparent mark in the mini-map. + +---------------------------------------- Whew. That's about all of them. -- cgit v1.2.3-60-g2f50