Jump to content
  • 0

How to mes the base level and job level


xmaniacx

Question


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  110
  • Reputation:   1
  • Joined:  04/03/12
  • Last Seen:  

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?

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  12/20/12
  • Last Seen:  

- script LevelBroad -1,{

OnPCBaseLvUpEvent:

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

}

I think~~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  110
  • Reputation:   1
  • Joined:  04/03/12
  • Last Seen:  

how to include jobname?

like "shiva has just turned into (jobname)"

Edited by xmaniacx
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

mes strcharinfo(0)+" has just turned into "+jobname(Class)+"!";

There's no trigger event for changing jobs, so add it to a job changer.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  110
  • Reputation:   1
  • Joined:  04/03/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Post your whole code.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  110
  • Reputation:   1
  • Joined:  04/03/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

If you'd like the script to work for everyone, just change:

OnInit:
set .MinGMLevel,0;
end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  110
  • Reputation:   1
  • Joined:  04/03/12
  • Last Seen:  

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 ]

Link to comment
Share on other sites

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.

×
×
  • Create New...