<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.herc.ws/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Getequipweaponlv</id>
		<title>Getequipweaponlv - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Getequipweaponlv"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Getequipweaponlv&amp;action=history"/>
		<updated>2026-05-01T16:19:37Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.11</generator>

	<entry>
		<id>https://wiki.herc.ws/w/index.php?title=Getequipweaponlv&amp;diff=636&amp;oldid=prev</id>
		<title>Dastgirpojee: Created page with &quot;== Syntax == * getequipweaponlv(&lt;equipment slot&gt;)  == Description == This function returns the weapon level for the weapon equipped in the specified equipment slot on the ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Getequipweaponlv&amp;diff=636&amp;oldid=prev"/>
				<updated>2013-10-03T16:53:31Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Syntax == * &lt;a href=&quot;/wiki/Getequipweaponlv&quot; title=&quot;Getequipweaponlv&quot;&gt;getequipweaponlv&lt;/a&gt;(&amp;lt;equipment slot&amp;gt;)  == Description == This function returns the weapon level for the weapon equipped in the specified equipment slot on the ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Syntax ==&lt;br /&gt;
* [[getequipweaponlv]](&amp;lt;equipment slot&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
This function returns the weapon level for the weapon equipped in the specified equipment slot on the invoking character. For a list of equipment slots see '[[getequipid]]'.&lt;br /&gt;
&lt;br /&gt;
Only EQI_HAND_L and EQI_HAND_R normally make sense, since only weapons have a weapon level. You can, however, probably, use this field for other equippable custom items as a flag or something. If no item is equipped in this slot, or if it doesn't have a weapon level according to the database, 0 will be returned.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
 [[switch]] ([[getequipweaponlv]](EQI_HAND_R)) {&lt;br /&gt;
 [[case]] 1:&lt;br /&gt;
 case 2:&lt;br /&gt;
 case 3:&lt;br /&gt;
 case 4:&lt;br /&gt;
 	[[mes]] &amp;quot;You are holding a lvl &amp;quot;+getequipweaponlv(EQI_HAND_R)+&amp;quot; weapon&amp;quot;;&lt;br /&gt;
 	[[break]];&lt;br /&gt;
 case 5:	//Level 5 Doesn't Exist in Server, You have to edit the source.&lt;br /&gt;
 	mes &amp;quot;You are holding a lvl 5 weapon, hm, must be a custom design&amp;quot;;&lt;br /&gt;
 	break;&lt;br /&gt;
 default:&lt;br /&gt;
 	mes &amp;quot;Seems you don't have a weapon on&amp;quot;;&lt;br /&gt;
 	break;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Or for the left hand, cause it can hold a weapon or a shield:&lt;br /&gt;
&lt;br /&gt;
 	[[if]]([[getequipid]](EQI_HAND_R)==0) [[goto]] L_NothingEquiped;&lt;br /&gt;
 	switch (getequipweaponlv(EQI_HAND_L)) {&lt;br /&gt;
 	[[case]] 0:&lt;br /&gt;
 		[[mes]] &amp;quot;You are holding a shield, so it doesnt have a level&amp;quot;;&lt;br /&gt;
 		[[break]];&lt;br /&gt;
 	case 1:&lt;br /&gt;
 	case 2:&lt;br /&gt;
 	case 3:&lt;br /&gt;
 	case 4:&lt;br /&gt;
 		mes &amp;quot;You are holding a lvl &amp;quot;+getequipweaponlv(EQI_HAND_L)+&amp;quot; weapon&amp;quot;;&lt;br /&gt;
 		break;&lt;br /&gt;
 	case 5:&lt;br /&gt;
 		mes &amp;quot;You are holding a lvl 5 weapon, hm, must be a custom design&amp;quot;;&lt;br /&gt;
 		break;&lt;br /&gt;
 	}&lt;br /&gt;
 	[[close]];&lt;br /&gt;
 L_NothingEquiped:&lt;br /&gt;
 	mes &amp;quot;Seems you have nothing equipped&amp;quot;;&lt;br /&gt;
 	close;&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Dastgirpojee</name></author>	</entry>

	</feed>