Jump to content
  • 0

MVP ladder


Question

11 answers to this question

Recommended Posts

Posted
[Warning]: Unexpected type for argument 1. Expected string.
[Debug]: Data: variable name='.entryzeny' index=0
[Debug]: Function: atoi
[Debug]: Source (NPC): MvP Ladder Warper at prontera (164,171)
[Warning]: Unexpected type for argument 1. Expected string.
[Debug]: Data: variable name='.@num' index=0
[Debug]: Function: getstrlen
[Debug]: Source (NPC): MvP Ladder Warper at prontera (164,171)
[Warning]: Unexpected type for argument 1. Expected string.
[Debug]: Data: variable name='.reward' index=1
[Debug]: Function: atoi
[Debug]: Source (NPC): ev_Mvp at guild_vs2-1 (0,0)
[Warning]: Unexpected type for argument 1. Expected string.
[Debug]: Data: variable name='.@num' index=0
[Debug]: Function: getstrlen
[Debug]: Source (NPC): ev_Mvp at guild_vs2-1 (0,0)


this error
yeah i tried that one. however its for party, i just wanted 1 player prize is Zeny per MVP like the old one not the item, and also MVP will respawn in the middle, 
sorry too noob.  help me. thanks Kido and annieruru for the response
Posted

OnMvpDead:

.round++;

if ( .round >= 2 && .round != .totalround +1 ) {

for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {

if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) {

attachrid $@partymemberaid[.@i];

if ( strcharinfo(3) == .eventmap$ ) {

// getitem .round_item_id, .round_item_amount;

Zeny = Zeny + .round * 10000;

}

}

}

}

edit the script as you wish ..
Posted
OnMvpDead:
	.round++;
	if ( .round >= 2 && .round != .totalround +1 ) {
		for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
			if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) {
				attachrid $@partymemberaid[.@i];
				if ( strcharinfo(3) == .eventmap$ ) {
				//	getitem .round_item_id, .round_item_amount;
					Zeny = Zeny + .round * 10000;
				}
			}
		}
	}
edit the script as you wish ..

 

thanks anniruru

 

and  how will i edit ? like 

Zeny = Zeny +.round1 * 10000

Zeny = Zeny +.round2 * 15000 

 

Posted

I think I'll just rewrite this script

but 1st,

1. how about rewrite this and turn this into instance system ?

so there is no more 1 party at a time, but multiple instances

2. confirmed that you are using latest rathena revision and having instance_db.txt inside your db\re\ folder ?

Posted (edited)

i just want 1 player inside to hunt for zeny, with entrance fee of 10m
per level zeny increases 500k think or just like the old one.

 

yup i have instance_db.txt ..

thanks annieruru..

Edited by kitty14

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...