// // Level System // Created by Gr!M [CHARDEF c_level_tester] ID=c_man Name=Level Tester TSPEECH=spk_human_prime TEVENTS=e_level_monster ON=@Create NPC=brain_vendor COLOR=colors_skin STR=50 DEX={36 50} INT={51 65} karma=-9999 fame=0 TAG.LEVEL=5 TAG.EXP=*100> [EVENTS e_level_monster] ON=@CLICK message @0480 [Level: )> Exp: )>] IF ( > *4>) MESSAGE=@46 Invincible ELSEIF ( > *2>) MESSAGE=@45 Chopper ELSEIF ( > ) MESSAGE=@44 Jockstrapper ELSEIF ( < /4>) MESSAGE=@68 Inferior ELSEIF ( < /2>) MESSAGE=@70 Effeminate ELSEIF ( < ) MESSAGE=@72 Crumples ELSE MESSAGE= ENDIF RETURN 1 ON=@GETHIT Sector.allclients SENDPACKET 0bf W11 W022 01 D memoryfindtype.MEMORY_FIGHT.more1=+ On=@Death var.killers=0 var.expdivide=0 FORCHARMEMORYTYPE MEMORY_FIGHT IF (!=0) remove Return 1 ENDIF var.killers=> var.expdivide= + serv.b ENDFOR var.expdivide2= / FORCHARMEMORYTYPE MEMORY_FIGHT var.exps= * link.say @0480,0 +> Exp link.tag.exp= + serv.b gains > now > more1 : > link.f_level_check ENDFOR [FUNCTION f_level_check] IF (> >= >) TAG.LVL= + 1 //ALLSKILLS *10> SYSMESSAGE You have gained a Level > ! TAG.EXP= - TAG.EXPNEED= * 3 if (> >= >) f_level_check endif ENDIF [PLEVEL 1] level [FUNCTION level] serv.b > > //src.dialogclose d_level_system //src.dialog d_level_system [DIALOG d_level_system] 410,255 resizepic 0 0 3600 230 226 //RESIZEPIC 25 100 5100 *200)/> 2 resizepic 15 189 83 *200)/> 20 text 100 14 99 0 text 15 35 1 1 text 60 35 55 2 text 15 56 1 3 text 60 56 55 4 text 15 77 1 5 text 60 77 55 6 text 15 98 1 7 text 60 98 55 8 text 15 119 1 9 text 60 119 55 10 text 105 165 55 11 [DIALOG d_level_system TEXT] Class: Kills: > Rank: > Level: > Exp: > / > *100)/>% [DIALOG d_level_system BUTTON]