Jump to content
  • 0

Every 50 levels?


Vince Jimenez

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  68
  • Reputation:   1
  • Joined:  10/16/12
  • Last Seen:  

Hello Pro Scripter / Players Developer/



I need script for newbie ,


for example every level 50 level player gets automatically 50m

Example player reach level 10 > automatic player get 50m zeny via mail Mail Tittle [ Reaching level 10 ]
~> player reach level 50 > automatic player get 50m zeny via mail Mail Tittle [ Reaching level 50 ]
player reach level 100 > automatic player get 50m zeny via mail Mail Tittle [ Reaching level 100 ]

player reach level 150 > automatic player get 50m zeny via mail Mail Tittle [ Reaching level 150 ]
player reach level 200 > automatic player get 50m zeny via mail Mail Tittle [ Reaching level 200 ]

player reach level 250 > automatic player get 50m zeny via mail Mail Tittle [ Reaching level 250 ]
player reach level 255 > automatic player get 150m zeny via mail Mail Tittle [ Reaching level 255 ]


 

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  

so right ?

-	script	Levelup	-1,{

OnPCBaseLvUpEvent:
set .@effect$,908;
set .@effect2$,909;
set .@effect3$,910;


if(BaseLevel == 10) {
specialeffect2 .@effect$;
specialeffect2 .@effect2$;
specialeffect2 .@effect3;
set Zeny,Zeny+50000000;
dispbottom "well done "+strcharinfo(0)+" you're level 10!";
end;
}
if(BaseLevel == 50) {
specialeffect2 .@effect$;
specialeffect2 .@effect2$;
specialeffect2 .@effect3;
set Zeny,Zeny+50000000;
dispbottom "well done "+strcharinfo(0)+" you're level 50!";
end;
}
if(BaseLevel == 100) {
specialeffect2 .@effect$;
specialeffect2 .@effect2$;
specialeffect2 .@effect3;
set Zeny,Zeny+50000000;
dispbottom "well done "+strcharinfo(0)+" you're level 100!";
end;
}
if(BaseLevel == 150) {
specialeffect2 .@effect$;
specialeffect2 .@effect2$;
specialeffect2 .@effect3;
set Zeny,Zeny+50000000;
dispbottom "well done "+strcharinfo(0)+" you're level 150!";
end;
}
if(BaseLevel == 200) {
specialeffect2 .@effect$;
specialeffect2 .@effect2$;
specialeffect2 .@effect3;
set Zeny,Zeny+50000000;
dispbottom "well done "+strcharinfo(0)+" you're level 200 !";
end;
}
if(BaseLevel == 250) {
specialeffect2 .@effect$;
specialeffect2 .@effect2$;
specialeffect2 .@effect3;
set Zeny,Zeny+50000000;
dispbottom "well done "+strcharinfo(0)+" you're level 250 !";
end;
}
if(BaseLevel == 255) {
specialeffect2 .@effect$;
specialeffect2 .@effect2$;
specialeffect2 .@effect3;
set Zeny,Zeny+150000000;
dispbottom "well done "+strcharinfo(0)+" you're level 255 !";
}
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Instead of multiple if statements. You can have like this :

if ( BaseLevel == 10 || ( BaseLevel % 50 == 0 ) ) dothis;
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

or like this?

-	script	junoio	-1,{
OnPCBaseLvUpEvent:
	switch( BaseLevel ) {
		case 10: callsub L_gift, 50000000;// zeny
		case 50: callsub L_gift, 50000000;
		case 100: callsub L_gift, 50000000;
		case 150: callsub L_gift, 50000000;
		case 200: callsub L_gift, 50000000;
		case 250: callsub L_gift, 50000000;
		case 255: callsub L_gift, 150000000;
		default:
	}
	end;
L_gift:
	dispbottom "Relog and check your mail! you got "+ getarg(0) +" zeny for being level "+ BaseLevel;
	query_sql( "INSERT INTO `mail` (send_name,dest_id,title,message,nameid,amount,identify,zeny,time) VALUES "+
			"( 'no-reply',"+ getcharid(0) +",'Level reward',"+
			"'you got "+ getarg(0) +" zeny for being level "+ BaseLevel +"',"+
			"0,0,0,"+ getarg(0) +",UNIX_TIMESTAMP(NOW())" );
	end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  68
  • Reputation:   1
  • Joined:  10/16/12
  • Last Seen:  

 

or like this?

-	script	junoio	-1,{
OnPCBaseLvUpEvent:
	switch( BaseLevel ) {
		case 10: callsub L_gift, 50000000;// zeny
		case 50: callsub L_gift, 50000000;
		case 100: callsub L_gift, 50000000;
		case 150: callsub L_gift, 50000000;
		case 200: callsub L_gift, 50000000;
		case 250: callsub L_gift, 50000000;
		case 255: callsub L_gift, 150000000;
		default:
	}
	end;
L_gift:
	dispbottom "Relog and check your mail! you got "+ getarg(0) +" zeny for being level "+ BaseLevel;
	query_sql( "INSERT INTO `mail` (send_name,dest_id,title,message,nameid,amount,identify,zeny,time) VALUES "+
			"( 'no-reply',"+ getcharid(0) +",'Level reward',"+
			"'you got "+ getarg(0) +" zeny for being level "+ BaseLevel +"',"+
			"0,0,0,"+ getarg(0) +",UNIX_TIMESTAMP(NOW()) );
	end;
}

This is not working -.-

 

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

And now?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  58
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   1
  • Joined:  01/06/12
  • Last Seen:  

i already using that script that cause script error

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


- script junoio -1,{

OnPCBaseLvUpEvent:

switch( BaseLevel ) {

case 10: callsub L_gift, 50000000;// zeny

case 50: callsub L_gift, 50000000;

case 100: callsub L_gift, 50000000;

case 150: callsub L_gift, 50000000;

case 200: callsub L_gift, 50000000;

case 250: callsub L_gift, 50000000;

case 255: callsub L_gift, 150000000;

default:

}

end;

L_gift:

dispbottom "Relog and check your mail! you got "+ getarg(0) +" zeny for being level "+ BaseLevel;

query_sql( "INSERT INTO `mail` (send_name,dest_id,title,message,nameid,amount,identify,zeny,time) VALUES "+

"( 'no-reply',"+ getcharid(0) +",'Level reward',"+

"'you got "+ getarg(0) +" zeny for being level "+ BaseLevel +"',"+

"0,0,0,"+ getarg(0) +",UNIX_TIMESTAMP(NOW()) )" );

end;

}

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