Jump to content

Question

Posted
-    script    LevelUpQuotes    -1,{
end;

OnInit:
    setarray .q$,"I have advanced forward!","There's no stopping me now!","Look at me go!","There's more where that came from.","This isn't even my final form!";
    .num1 = getarraysize(.q$);
    setarray .maxq$,"I've made it!","I never thought I'd become this strong...","I have reached my final form.";
    .num2 = getarraysize(.maxq$);
    end;

OnPCBaseLvUpEvent:
    if( BaseLevel > 20 && getstatus(SC_ITEMBOOST) == 0 ) { sc_start SC_ITEMBOOST,180000,200; }
    if( BaseLevel > 30 && getstatus(SC_ITEMBOOST) == 0 ) { sc_start SC_ITEMBOOST,180000,200; }
    if( BaseLevel > 40 && getstatus(SC_ITEMBOOST) == 0 ) { sc_start SC_ITEMBOOST,180000,200; }
    if( BaseLevel > 50 && getstatus(SC_ITEMBOOST) == 0 ) { sc_start SC_ITEMBOOST,180000,200; }
    if( BaseLevel > 60 && getstatus(SC_ITEMBOOST) == 0 ) { sc_start SC_ITEMBOOST,180000,200; }
    if( BaseLevel > 70 && getstatus(SC_ITEMBOOST) == 0 ) { sc_start SC_ITEMBOOST,180000,200; }
    if( BaseLevel > 80 && getstatus(SC_ITEMBOOST) == 0 ) { sc_start SC_ITEMBOOST,180000,200; }
    if( BaseLevel > 90 && getstatus(SC_ITEMBOOST) == 0 ) { sc_start SC_ITEMBOOST,180000,200; }
    if( BaseLevel == 99 ) { .@r = rand(.num2); showscript strcharinfo(0)+" : "+.maxq$[.@r]; }
    else { .@r = rand(.num1); showscript strcharinfo(0)+" : "+.q$[.@r]; }
    if( getstatus(SC_INCREASEAGI) != 1 ) { sc_start SC_INCREASEAGI,30000,10; }
    end;
}

May I please ask for an additional function of this script?

Instead of just Item boost for every 10 level, I want it to give a particular item, for example x10 Red Potion (501)

Thanks in advanced!

P.S

Crdt to the script owner.

2 answers to this question

Recommended Posts

  • 0
Posted
-    script    LevelUpQuotes    -1,{

OnInit:
    setarray .q$,"I have advanced forward!","There's no stopping me now!","Look at me go!","There's more where that came from.","This isn't even my final form!";
    .num1 = getarraysize(.q$);
    end;

OnPCBaseLvUpEvent:
	if(!(BaseLevel%10)){
		getitem 501,10;
		.@r = rand(.num1); showscript strcharinfo(0)+" : "+.q$[.@r];
	}
end;
}

 

  • 0
Posted (edited)
15 minutes ago, sader1992 said:

-    script    LevelUpQuotes    -1,{

OnInit:
    setarray .q$,"I have advanced forward!","There's no stopping me now!","Look at me go!","There's more where that came from.","This isn't even my final form!";
    .num1 = getarraysize(.q$);
    end;

OnPCBaseLvUpEvent:
	if(!(BaseLevel%10)){
		getitem 501,10;
		.@r = rand(.num1); showscript strcharinfo(0)+" : "+.q$[.@r];
	}
end;
}

 

Thanks so much Senpai, i'll give this a try. Sorry for the lack of info on my post.

 

Edited:

Worked! 100% Thanks!

Edited by Musika6988

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