1
- [ Zeny] ( Zeny " wikilink ") is the in-game currency used in [ Ragnarok Online] ( Ragnarok_Online " wikilink ") , which can be used
2
- for buying and selling items from and to [ NPC] ( NPC " wikilink ") shops and other players.
1
+ # Zeny
2
+
3
+ Zeny is the in-game currency used in [ Ragnarok Online] ( https://en.wikipedia.org/wiki/Ragnarok_Online ) , which can be used
4
+ for buying and selling items from and to [ NPC] ( ./npc.md ) shops and other players.
3
5
4
6
## Limitation
5
7
6
8
The technical limit is for both the client and server up to 2,147,483,647 Zeny, which is typically capped at
7
9
1,000,000,000. The cap can be changed inside
8
10
[ ` src/common/mmo.h ` ] ( https://github.com/HerculesWS/Hercules/blob/stable/src/common/mmo.h ) by adjusting the macro
9
- * MAX_ZENY* to a desired value below the technical limit. The source must be recompiled after this change. If a value is
11
+ ` MAX_ZENY ` to a desired value below the technical limit. The source must be recompiled after this change. If a value is
10
12
specified which surpasses the technical limit, the server will not compile.
11
13
12
14
## Penalty
@@ -21,26 +23,28 @@ amount of Zeny the player holds upon death:
21
23
zeny_penalty: 0
22
24
```
23
25
24
- [ Mapflags] ( Mapflag " wikilink " ) can be set on certain maps to disable the zeny penalty in
25
- [ ` conf /mapflag/nopenalty.txt` ] ( https://github.com/HerculesWS/Hercules/blob/stable/conf /mapflag/nopenalty.txt )
26
+ [ Mapflags] ( ../scripting/mapflag.md ) can be set on certain maps to disable the zeny penalty in
27
+ [ ` npc /mapflag/nopenalty.txt` ] ( https://github.com/HerculesWS/Hercules/blob/stable/npc /mapflag/nopenalty.txt )
26
28
27
29
## Vending
28
30
29
31
The amount of Zeny that can be set to an item when vending is soft-limited to 1,000,000,000 and can be overridden by the
30
- setting * vending_max_value* in
31
- [ ` conf/battle/items.conf ` ] ( https://github.com/HerculesWS/Hercules/blob/stable/conf/battle/items.conf ) and
32
- [ hexing] ( hexing " wikilink " ) the client to correct the client-side warnings.
32
+ setting ` vending_max_value ` in
33
+ [ ` conf/map/ battle/items.conf ` ] ( https://github.com/HerculesWS/Hercules/blob/stable/conf/map /battle/items.conf ) and
34
+ [ hexing] ( ../client/ hexing.md ) the client to correct the client-side warnings.
33
35
34
- If the seller obtains more Zeny through vending than * MAX_ZENY* the surplus Zeny is discarded. To avoid this, the
35
- setting * vending_over_max* in
36
- [ ` conf/battle/items.conf ` ] ( https://github.com/HerculesWS/Hercules/blob/stable/conf/battle/items.conf ) can be set to
37
- * no * , which causes the deal to fail if it would result in more Zeny than the seller is able to hold.
36
+ If the seller obtains more Zeny through vending than ` MAX_ZENY ` the surplus Zeny is discarded. To avoid this, the
37
+ setting ` vending_over_max ` in
38
+ [ ` conf/map/ battle/items.conf ` ] ( https://github.com/HerculesWS/Hercules/blob/stable/conf/map /battle/items.conf ) can be set to
39
+ ` false ` , which causes the deal to fail if it would result in more Zeny than the seller is able to hold.
38
40
39
41
## Scripting
40
42
41
- The name * Zeny* is recognized by the script engine as a [ parameter constant] ( parameter_constant " wikilink " ) , which
42
- affects the amount of Zeny of the [ currently attached] ( RID#Usage " wikilink " ) player. It can be both read and written.
43
+ The name ` Zeny ` is recognized by the script engine as a [ parameter constant] ( ../scripting/parameter-constant.md ) , which
44
+ affects the amount of Zeny of the [ currently attached] ( ./rid.md#usage ) player. It can be both read and written.
43
45
44
- [ ` set ` ] ( set " wikilink ") ` Zeny,Zeny+120; // gives the player 120z `
45
- [ ` mes ` ] ( mes " wikilink ") ` "Your current balance is "+Zeny+"z."; `
46
- [ ` set ` ] ( set " wikilink ") ` Zeny,0; // takes all Zeny from the player `
46
+ ``` C
47
+ Zeny += 120 ; // gives the player 120z
48
+ mesf ("Your current balance is %dz.", Zeny);
49
+ Zeny = 0; // takes all Zeny from the player
50
+ ```
0 commit comments