Jump to content
  • 0

MVP ladder


kitty14

Question


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

can someone help me with this script? 

im getting error, please modify
sorry newbie here

http://upaste.me/3aa51106073c002c#L164

Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

db\re\instance_db.txt

12,MvP Ladder Game,86400,guild_vs2-2,49,49,guild_vs2-2
http://rathena.org/board/pastebin/6r2cl8yxm2ff/
  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

can someone help me with this script? 

im getting error, please modify

sorry newbie here

http://upaste.me/3aa51106073c002c#L164

 

can you provide please any error message or what config you want to do to the script? thankie and welcome hehe

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

that script is too old to even use it

use the one inside SVN

https://github.com/rathena/rathena/blob/master/npc/custom/events/mvp_ladder.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

[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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

use the one inside SVN ...

// exact amount of party members needed to start the game
set .register_min, 2;
just change to 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

how about the zeny per MVP?
it give items
like the first one per level the zeny increases how to set it?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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 ..
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

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 

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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 ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

Thanks much Annieruru !!!

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...