ace9010 0 Posted June 14, 2015 when player reach level 60 , 70 ,80 , 90 , 99 auto get item .. and announce the name <name > reach level 60 ... Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted June 14, 2015 (edited) try this, i didn't test it yet EDIT : Fixed http://pastebin.com/iTFKDmmn Edited June 15, 2015 by Zhao Chow Quote Share this post Link to post Share on other sites
0 ace9010 0 Posted June 15, 2015 try this, i didn't test it yet EDIT : Fixed http://pastebin.com/iTFKDmmn thank zhao try this, i didn't test it yet EDIT : Fixed http://pastebin.com/iTFKDmmn the script dont show error , but when u reach level 60 70 80 90 99 , it's dont giv item / announce Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted June 15, 2015 (edited) @@ace9010 script is working. Note : to make it work, put 1st the script before reloading or restarting the server because it has OnPCLoginEvent: Edited June 15, 2015 by Zhao Chow Quote Share this post Link to post Share on other sites
0 ace9010 0 Posted June 15, 2015 @@ace9010 script is working. Note : to make it work, put 1st the script before reloading or restarting the server because it has OnPCLoginEvent: it;s work now thank ,, need to restart the server , reloadscript wont work .. Quote Share this post Link to post Share on other sites
0 Garr 117 Posted June 15, 2015 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. - 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 >.< Quote Share this post Link to post Share on other sites
when player reach level 60 , 70 ,80 , 90 , 99 auto get item ..
and announce the name <name > reach level 60 ...
Share this post
Link to post
Share on other sites