<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Zeny</title><link>https://sourceforge.net/p/hercules/wiki/Zeny/</link><description>Recent changes to Zeny</description><atom:link href="https://sourceforge.net/p/hercules/wiki/Zeny/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 20 Feb 2023 05:03:57 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/hercules/wiki/Zeny/feed" rel="self" type="application/rss+xml"/><item><title>Zeny modified by Brynner</title><link>https://sourceforge.net/p/hercules/wiki/Zeny/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a class="alink" href="/p/hercules/wiki/Zeny/"&gt;[Zeny]&lt;/a&gt; is the in-game currency used in &lt;a class="alink" href="/p/hercules/wiki/Ragnarok%20Online/"&gt;[Ragnarok Online]&lt;/a&gt;, which can be&lt;br/&gt;
used for buying and selling items from and to &lt;a class="alink" href="/p/hercules/wiki/NPC/"&gt;[NPC]&lt;/a&gt; shops and other players.&lt;/p&gt;
&lt;div class="toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#limitation"&gt;Limitation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#penalty"&gt;Penalty&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#vending"&gt;Vending&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#scripting"&gt;Scripting&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h2 id="limitation"&gt;Limitation&lt;/h2&gt;
&lt;p&gt;The technical limit is for both the client and server up to 2,147,483,647&lt;br/&gt;
Zeny, which is typically capped at 1,000,000,000. The cap can be changed&lt;br/&gt;
inside {{git|src/common/mmo.h}} by adjusting the macro &lt;em&gt;MAX_ZENY&lt;/em&gt; to a desired&lt;br/&gt;
value below the technical limit. The source must be recompiled after this&lt;br/&gt;
change. If a value is specified which surpasses the technical limit, the&lt;br/&gt;
server will not compile.&lt;/p&gt;
&lt;h2 id="penalty"&gt;Penalty&lt;/h2&gt;
&lt;p&gt;Along with EXP death penalties, a Zeny penalty may be set in&lt;br/&gt;
{{git|conf/battle/exp.conf}} which reduced the amount of Zeny the player holds&lt;br/&gt;
upon death:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="c1"&gt;// When a player dies (to another player), how much zeny should we penalize them with?&lt;/span&gt;
&lt;span class="c1"&gt;// NOTE: It is a percentage of their zeny, so 100 = 1%&lt;/span&gt;
&lt;span class="n"&gt;zeny_penalty&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;a class="alink" href="/p/hercules/wiki/Mapflag/"&gt;[Mapflag]&lt;/a&gt;s can be set on certain maps to disable the zeny penalty in&lt;br/&gt;
{{git|conf/mapflag/nopenalty.txt}}&lt;/p&gt;
&lt;h2 id="vending"&gt;Vending&lt;/h2&gt;
&lt;p&gt;The amount of Zeny that can be set to an item when vending is soft-limited to&lt;br/&gt;
1,000,000,000 and can be overridden by the setting &lt;em&gt;vending_max_value&lt;/em&gt; in&lt;br/&gt;
{{git|conf/battle/items.conf}} and &lt;a class="alink" href="/p/hercules/wiki/Hexing/"&gt;[Hexing]&lt;/a&gt; the client to correct the&lt;br/&gt;
client-side warnings.&lt;/p&gt;
&lt;p&gt;If the seller obtains more Zeny through vending than &lt;em&gt;MAX_ZENY&lt;/em&gt; the surplus&lt;br/&gt;
Zeny is discarded. To avoid this, the setting &lt;em&gt;vending_over_max&lt;/em&gt; in&lt;br/&gt;
{{git|conf/battle/items.conf}} can be set to &lt;em&gt;no&lt;/em&gt; , which causes the deal to&lt;br/&gt;
fail if it would result in more Zeny than the seller is able to hold.&lt;/p&gt;
&lt;h2 id="scripting"&gt;Scripting&lt;/h2&gt;
&lt;p&gt;The name &lt;em&gt;Zeny&lt;/em&gt; is recognized by the script engine as a &lt;span&gt;[parameter&lt;br/&gt;
constant]&lt;/span&gt;, which affects the amount of Zeny of the &lt;a class="" href="../currently
attached"&gt;RID#Usage&lt;/a&gt; player. It can be both read and written.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Set&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Zeny&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;Zeny&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;120&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;gives&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;player&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;120&lt;/span&gt;&lt;span class="n"&gt;z&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Mes&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ss"&gt;"Your current balance is "&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;Zeny&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="ss"&gt;"z."&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Set&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Zeny&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;takes&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ow"&gt;all&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Zeny&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;player&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;span&gt;[Category:Basics]&lt;/span&gt; &lt;span&gt;[Category:Configuration]&lt;/span&gt; &lt;span&gt;[Category:Scripting]&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brynner</dc:creator><pubDate>Mon, 20 Feb 2023 05:03:57 -0000</pubDate><guid>https://sourceforge.net204b77a5768732b01f38ab6d8efc394c82bb1dbe</guid></item></channel></rss>