Jump to content
  • 0

Script that uses level and duration


cmsm94

Question


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

A script for map, And also a NPC x2 npc

 

hmm possible to create a script if you dont have the certain item in your inventory you will be warp back to your savepoint, this means like if the item is in his inventory then he store it then he will also be warp back to save point.

 

NPC script

 

If your reach level 10 you will receive 1 item then when you reach level 25 you get another item automatically, then 50 then 100 etc.

 

 

Possible please thanks O.o /e2

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

Just add this before the switch case..

 

if(Upper != 0) end;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

About your item restriction, you can try to read this http://rathena.org/wiki/Countitem

 

For your levelling rewards script..

-	script	LevelUpRewards	-1,{


OnPCBaseLvlUpEvent:
	switch(BaseLevel) {
		case 10: getitem 607,1; //Will get 1 Yggdrasil Berry upon reaching Lvl 10.
			break;
		case 25: getitem 608,2; //Will get 2 Yggdrasil Seeds upon reaching Lvl 25.
			break;
		case 50: getitem 607,2;
			break;
		case 100: getitem 608,4;
			break;
		default: end;
	}
end;

}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

 

About your item restriction, you can try to read this http://rathena.org/wiki/Countitem

 

For your levelling rewards script..

-	script	LevelUpRewards	-1,{


OnPCBaseLvlUpEvent:
	switch(BaseLevel) {
		case 10: getitem 607,1; //Will get 1 Yggdrasil Berry upon reaching Lvl 10.
			break;
		case 25: getitem 608,2; //Will get 2 Yggdrasil Seeds upon reaching Lvl 25.
			break;
		case 50: getitem 607,2;
			break;
		case 100: getitem 608,4;
			break;
		default: end;
	}
end;

}

Didn't work. Level 10 didnt receive any item.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

Sorry for the typo, remove the 'L' on Lvl

 

It should be..

OnPCBaseLvUpEvent:
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

 

Sorry for the typo, remove the 'L' on Lvl

 

It should be..

OnPCBaseLvUpEvent:

Possible to make only 1st and 2nd class only will received it.? Or make them once per account only receive, if your rebirth your level becomes 0 back so there will be a loop which is annoying to the players LOL, can someone help thanks..

Edited by cmsm94
Link to comment
Share on other sites


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


- script Levelupbox -1,{

OnPCBaseLvUpEvent:

set .@effect$,908; // Specialeffect Spiral White balls

set .@effect2$,909; // Specialeffect Bigger Spiral White balls

set .@effect3$,910; // Specialeffect Blue/White Small Aura

if(BaseLevel == 10) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

sc_start SC_EDP,1440000,1;

sc_start SC_STRFood,1440000,10;

sc_start SC_AGIFood,1440000,10;

sc_start SC_INTFood,1440000,10;

sc_start SC_DEXFood,1440000,10;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 10!";

end;

}

if(BaseLevel == 20) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 20!";

end;

}

if(BaseLevel == 30) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

sc_start SC_EDP,1440000,1;

sc_start SC_DEXFood,1440000,50;

sc_start SC_INTFood,1440000,50;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 30!";

end;

}

if(BaseLevel == 40) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 40!";

end;

}

if(BaseLevel == 50) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

sc_start SC_KAITE,1440000,7;

sc_start SC_KAUPE,1440000,3;

sc_start SC_KAAHI,1440000,7;

sc_start SC_KAIZEL,1440000,7;

getitem 7539,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 50!";

end;

}

if(BaseLevel == 60) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

sc_start SC_EDP,1440000,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 60!";

end;

}

if(BaseLevel == 70) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 70!";

end;

}

if(BaseLevel == 80) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

sc_start SC_STRFood,1440000,50;

sc_start SC_AGIFood,1440000,50;

sc_start SC_INTFood,1440000,50;

sc_start SC_DEXFood,1440000,110;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 80!";

end;

}

if(BaseLevel == 90) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

sc_start SC_HitFood,144000,200;

sc_start SC_FleeFood,144000,1000;

sc_start SC_BATKFood,144000,2000;

sc_start SC_MATKFood,140000,3500;

sc_start SC_STRFood,144000,50;

sc_start SC_AGIFood,144000,80;

sc_start SC_INTFood,144000,60;

sc_start SC_DEXFood,144000,160;

sc_start SC_VITFood,144000,150;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 90!";

end;

}

if(BaseLevel == 100) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

skilleffect 378,0; sc_start SC_EDP,1440000,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 100!";

end;

}

if(BaseLevel == 110) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

sc_start SC_WINDWALK,1440000,5;

sc_start SC_EDP,1440000,1;

sc_start SC_KAITE,1440000,7;

sc_start SC_KAUPE,1440000,3;

sc_start SC_KAAHI,1440000,7;

sc_start SC_KAIZEL,1440000,7;

sc_start SC_ENDURE,1440000,10;

sc_start SC_ANGELUS,1440000,10;

sc_start SC_CONCENTRATE,1440000,10;

sc_start SC_MAGNIFICAT,1440000,5;

sc_start SC_GLORIA,1440000,5;

sc_start SC_ADRENALINE2,1440000,1;

sc_start SC_IMPOSITIO,1440000,5;

sc_start SC_SUFFRAGIUM,1440000,3;

sc_start SC_BLESSING,1440000,10;

sc_start SC_INCREASEAGI,1440000,10;

sc_start SC_WEAPONPERFECTION,1440000,10;

sc_start SC_OVERTHRUST,1440000,5;

sc_start SC_MAXIMIZEPOWER,1440000,5;

sc_start SC_CONCENTRATION,1440000,5;

sc_start SC_AURABLADE,1440000,5;

sc_start SC_LOUD,1440000,1;

sc_start SC_ASPDPOTION2,1440000,0;

sc_start SC_STRFood,1440000,50;

sc_start SC_AGIFood,1440000,50;

sc_start SC_VITFood,1440000,50;

sc_start SC_INTFood,1440000,50;

sc_start SC_DEXFood,1440000,50;

sc_start SC_CP_WEAPON,1440000,4;

sc_start SC_CP_ARMOR,1440000,4;

sc_start SC_CP_WEAPON,1440000,4;

sc_start SC_LUKFood,1440000,50;

sc_start SC_HitFood,1440000,200;

sc_start SC_FleeFood,1440000,100;

sc_start SC_BATKFood,1440000,200;

sc_start SC_MATKFood,1440000,350;

sc_start SC_TRUESIGHT,1440000,5;

sc_start SC_ASSUMPTIO,1440000,5;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 110!";

end;

}

if(BaseLevel == 120) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 120!";

end;

}

if(BaseLevel == 130) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem .@item13$,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 130!";

end;

}

if(BaseLevel == 140) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 140!";

end;

}

if(BaseLevel == 150) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem .@item15$,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 150!";

end;

}

if(BaseLevel == 160) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 160!";

end;

}

if(BaseLevel == 170) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 170!";

end;

}

if(BaseLevel == 180) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem .@item18$,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 180!";

end;

}

if(BaseLevel == 190) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 190!";

end;

}

if(BaseLevel == 200) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 200!";

end;

}

if(BaseLevel == 210) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 210!";

end;

}

if(BaseLevel == 220) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 220!";

end;

}

if(BaseLevel == 230) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem .@item23$,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 230!";

end;

}

if(BaseLevel == 240) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 240!";

end;

}

if(BaseLevel == 255) {

specialeffect2 .@effect$;

specialeffect2 .@effect2$;

specialeffect2 .@effect3;

getitem 7539,1;

dispbottom "Gut gemacht "+strcharinfo(0)+" du bist level 255!";

}

}

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