Jump to content
  • 0

Zeny Penalty when Die


croxinuz

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  62
  • Reputation:   0
  • Joined:  03/18/12
  • Last Seen:  

hi sir,i Need help for this

 

you can setting Zeny Penalty on exp.conf

// When a player dies (to another player), how much zeny should we penalize them with?
// NOTE: It is a percentage of their zeny, so 100 = 1%
zeny_penalty: 0

it's work if player killed by another player,but i want Zeny Penalty only work if Player killed by Monster ?

 

sorry for my bad english :D

Edited by croxinuz
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try this

OnPCDieEvent:
.@zeny_penalty_percent = 10;
if( getmonsterinfo( killerrid,MOB_NAME ) != "null" ){
	.@zeny = (( Zeny / 100 ) * .@zeny_penalty_percent );
	Zeny -= .@zeny;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  62
  • Reputation:   0
  • Joined:  03/18/12
  • Last Seen:  

 

try this

OnPCDieEvent:
.@zeny_penalty_percent = 10;
if( getmonsterinfo( killerrid,MOB_NAME ) != "null" ){
	.@zeny = (( Zeny / 100 ) * .@zeny_penalty_percent );
	Zeny -= .@zeny;
}

doesn't work sir :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  108
  • Reputation:   12
  • Joined:  06/19/12
  • Last Seen:  

Put it in an npc script like

-<tab>script<tab>ZenyPenalty<tab>-1,{

OnPCDieEvent:
.@zeny_penalty_percent = 10;
if( getmonsterinfo( killerrid,MOB NAME ) != "null" ){
	.@zeny = (( Zeny / 100 ) * .@zeny_penalty_percent );
	Zeny -= .@zeny;
}
}

Remember to put tabs on the top of the script and save it inside your "npc" folder located inside your server files and also apply it inside your script_custom.conf as "npc: npc/<folder_name>/<txt_filename>.txt "

 

Good luck matey.. Never tried the script though.

Edited by Spades
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  62
  • Reputation:   0
  • Joined:  03/18/12
  • Last Seen:  

Put it in an npc script like

-<tab>script<tab>ZenyPenalty<tab>-1,{

OnPCDieEvent:
.@zeny_penalty_percent = 10;
if( getmonsterinfo( killerrid,MOB NAME ) != "null" ){
	.@zeny = (( Zeny / 100 ) * .@zeny_penalty_percent );
	Zeny -= .@zeny;
}
}

Remember to put tabs on the top of the script and save it inside your "npc" folder located inside your server files and also apply it inside your script_custom.conf as "npc: npc/<folder_name>/<txt_filename>.txt "

 

Good luck matey.. Never tried the script though.

i have write like this and doesn't work :o

-	script	z_penal	-1,{
OnPCDieEvent:
.@zeny_penalty_percent = 10;
if( getmonsterinfo( killerrid,MOB_NAME ) != "null" ){
	.@zeny = (( Zeny / 100 ) * .@zeny_penalty_percent );
	Zeny -= .@zeny;
}
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  108
  • Reputation:   12
  • Joined:  06/19/12
  • Last Seen:  

Make sure you also added it inside your script_custom.conf located inside your npc folder.

 

If the problem persist, please show us the error by taking a screenshot from your map-server while you load the npc. Also make sure you have used @reloadscript

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  62
  • Reputation:   0
  • Joined:  03/18/12
  • Last Seen:  

a_zpse59666ba.jpg

 

 

i'm not get any error,but my zeny didn't minus when die

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...