thank zhao
the script dont show error , but when u reach level 60 70 80 90 99 , it's dont giv item / announce
it;s work now thank ,, need to restart the server , reloadscript wont work ..@@ace9010
script is working.
Note : to make it work, put 1st the script before reloading or restarting the server because it has OnPCLoginEvent:
- 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;}
We use essential cookies to make this site work, and optional cookies to enhance your experience.