Jump to content
  • 0

Additional Function


Musika6988

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   6
  • Joined:  09/09/13
  • Last Seen:  

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

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

-    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;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   6
  • Joined:  09/09/13
  • Last Seen:  

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