request

ace9010

New member
Messages
34
Points
0
when player reach level 60 , 70 ,80 , 90 , 99 auto get item .. 

and announce the name <name > reach level 60 ...

 
@@ace9010

script is working.

Note : to make it work,  put 1st the script before reloading or restarting the server because it has OnPCLoginEvent:

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
Last edited by a moderator:
@@ace9010

script is working.

Note : to make it work,  put 1st the script before reloading or restarting the server because it has OnPCLoginEvent:

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
it;s work now thank ,, need to restart the server , reloadscript wont work ..

 
I just want to ask... why? Why did you have to use an endless timer?

OnPCLoginEvent:OnPCLogoutEvent:OnPCBaseLvUpEvent:OnPCJobLvUpEvent:It's pretty obvious when these four special labels will be invoked.
Code:
-	script	LevelUpGifts	-1,{end;OnPCLoginEvent: // To give prizes to people who already obtained the levels before script was implemented and are already 99.	.@flag = 1;OnPCBaseLvUpEvent:	if( BaseLevel >= 60 && !(LevelUpPrize&1) ) {		// Insert giving items to level 60 here;		LevelUpPrize |= 1;		if( BaseLevel == 60 )			announce strcharinfo(PC_NAME) + " reached level 60, congratulations!",bc_all|bc_npc|bc_blue;	}	if( BaseLevel >= 70 && !(LevelUpPrize&2) ) {		// Insert giving items to level 70 here;		LevelUpPrize |= 2;		if( BaseLevel == 70 )			announce strcharinfo(PC_NAME) + " reached level 70, way to go!",bc_all|bc_npc|bc_blue;	}	if( BaseLevel >= 80 && !(LevelUpPrize&4) ) {		// Insert giving items to level 80 here;		LevelUpPrize |= 4;		if( BaseLevel == 80 )			announce strcharinfo(PC_NAME) + " reached level 80, hafway to the top!",bc_all|bc_npc|bc_blue;	}	if( BaseLevel >= 90 && !(LevelUpPrize&8) ) {		// Insert giving items to level 90 here;		LevelUpPrize |= 8;		if( BaseLevel == 90 )			announce strcharinfo(PC_NAME) + " reached level 90, you're almost there!",bc_all|bc_npc|bc_blue;	}	if( BaseLevel >= 99 && !(LevelUpPrize&16) ) {		// Insert giving items to level 99 here;		LevelUpPrize |= 16;		if( BaseLevel == 99 && !.@flag ) // Just so players that already got 99'd wouldn't get an announce on login.		// They reached it way long ago 			announce strcharinfo(PC_NAME) + " reached level 99, congratulations!",bc_all|bc_npc|bc_blue;	}end;}
Something like this and checks would run only on leveling up and logging in, instead of running this check on every player every 0.1second >.<

 
Back
Top