Jump to content
  • 0

How to mes the base level and job level


Question

Posted

if i click the npc it would say "you have a 99 base level and you have a 57 job level" then if my job level's up the npc updates and would say you have a job lvl 58 now........... i dont want it that you have to logout before the npc updates what level are you!! is that possible?

8 answers to this question

Recommended Posts

Posted

- script LevelBroad -1,{

OnPCBaseLvUpEvent:

announce "now" strcharinfo(0) +" just lvlup to " + BaseLevel +" y " + JobLevel + "!!.",bc_map;

}

I think~~

Posted (edited)

Alright, everything is fine however when i try to setup the joblevel and baselevel as set im getting error this is what it looks like

1st try :

set .blvl,baselevel"+.GM_Name$[.@i]+";

set .jlvl,joblevel"+.GM_Name$[.@i]+";

2nd try :

set .blvl,baselevel, .GM_Name$[.@i];

set .jlvl,joblevel, .GM_Name$[.@i];

3rd try :

set .blvl,baselevel, (.GM_Name$[.@i]);

set .jlvl,joblevel, (.GM_Name$[.@i]);

Edited by xmaniacx
Posted (edited)

This is emistry's check GM script and im making it into a who's online thing

brasilis,104,323,5	script	Who's Online	871,{
mes "^008cef===========================^000000";
mes "Staffs Online Lists : ^FF0000"+getarraysize( .GM_Name$ )+"^000000 Staffs";
mes "^008cef===========================^000000";
for( set .@i,0; .@i < getarraysize( .GM_Name$ ) ; set .@i,.@i + 1 ){
getmapxy( .Map$,.x,.y,0,.GM_Name$[.@i] );
mes "^ff0000User^000000 - [ ^ffac26"+.GM_Name$[.@i]+"^000000 ]";
mes "^ff0000Current Map^000000 - [ ^FF47BD"+.Map$+"^000000 ]";
mes "^ff0000Base Level^000000 - [ ^A34934"+.j_lvl[.@i]+"^000000 ]";
mes "^ff0000Job Level^000000 - [ ^A34934"+.b_lvl[.@i]+"^000000 ]";
mes "^ff0000Job Class^000000 - [ ^A34934"+.c_lvl[.@i]+"^000000 ]";
mes "^04E959_______________________^000000";
}
close;

OnInit:
set .MinGMLevel,40;		// Min. GM Level to Show in Online Lists
end;

OnPCLoginEvent:
if( getgmlevel() > .MinGMLevel ) end;
set .GM_Name$[ getarraysize( .GM_Name$ ) ],strcharinfo(0);
set .GM_Level[ getarraysize( .GM_Level ) ],getgmlevel();
set .b_lvl[ getarraysize( strcharinfo(0) ) ],baselevel;
set .j_lvl[ getarraysize( strcharinfo(0) ) ],joblevel;
set .c_lvl[ getarraysize( strcharinfo(0) ) ],"+jobname(Class)+"";		
end;

OnPCLogoutEvent:
if( getgmlevel() > .MinGMLevel ) end;
for( set .@i,0; .@i < getarraysize( .GM_Name$ ) ; set .@i,.@i + 1 ){
if( strcharinfo(0) != .GM_Name$[.@i] ) continue;
deletearray .GM_Name$[.@i],1;
deletearray .GM_Level[.@i],1;
deletearray .j_lvl[.@i],1;
deletearray .b_lvl[.@i],1;
deletearray .c_lvl[.@i],1;
end;
	}
end;
	}
}

Edited by xmaniacx
Posted

yep i know how that works, i just want to add a full info just like how you view it in a flux CP when you go to the who's online page....... coz the original script only show the map and user while the flux CP show base,job,user,map,current class!! that's why i want to set the baselevel or joblevel and etc to the mes

[ Problem Solved ]

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...