Jump to content
  • 0

About the job changer.


vijay30393

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   0
  • Joined:  05/10/12
  • Last Seen:  

Hello every one.

I have a server and its 3rd job sever, all i want is change all the 3nd job chars back to their 2nd job.

So i'm requesting you guys for a job demotor npc.

Say if a player is Sura, as soon has he log's his sura char, the demotor npc pop's out to his/her screen and it just change's him back to sura and give him @jlvl 100 and @allskill.

If the char is a 2nd job char, it say's few line's like Enjoy your stay etc.

Could any one please help me out with this?

Thanks in advance.

Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

-	script	demotor npc	-1,{
OnPCLoginEvent:
if ( upper & 4 == 0 ) {
	dispbottom "few line's like Enjoy your stay etc";
	end;
}
jobchange roclass ( eaclass( class ) & ~0x4000, sex );
joblevel = 100;
atcommand "@allskill";
mes "pop up";
close;
}

I have a feeling this script doesn't work in rathena ...

ok I double check src\map\map.h, should be working

Edited by AnnieRuru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   0
  • Joined:  05/10/12
  • Last Seen:  

I use eAthena.

Its not working, do i need to edit anything in this line?

jobchange roclass ( eaclass( class ) & ~0x4000, sex );

Edited by vijay30393
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

yeah this code doesn't work in eathena

#define JOBL_UPPER 0x1000 //4096
#define JOBL_BABY 0x2000  //8192

rathena already has

#define JOBL_THIRD 0x4000 //16384

lol eathena development so slow already, just switch to ra <3

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   0
  • Joined:  05/10/12
  • Last Seen:  

So what i'm i suppose to do to make all 3rd job char to their 2nd job?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try this

OnPCLoginEvent:
set .@Job,roclass( ( eaclass( BaseJob ) & EAJ_UPPERMASK ) | EAJL_UPPER );
if( Class >= 4060 && .@Job > 0 )
jobchange .@Job;
end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   0
  • Joined:  05/10/12
  • Last Seen:  

@Emistry ty and this

prontera,0,0,0 script jobchangeback -,{

OnPCLoginEvent:

set .@Job,roclass( ( eaclass( BaseJob ) & EAJ_UPPERMASK ) | EAJL_UPPER );

if( Class >= 4060 && .@Job > 0 )

jobchange .@Job;

joblevel,70;

atcommand "@allskill "+@players$;

end;

}

I try add the @commands but its not working.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

atcommand "@allskill";

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   0
  • Joined:  05/10/12
  • Last Seen:  

Script stop's working if i add this to it

joblevel,70;

atcommand "@allskill";

The script look's like this

prontera,0,0,0 script jobchangeback -,{

OnPCLoginEvent:

set .@Job,roclass( ( eaclass( BaseJob ) & EAJ_UPPERMASK ) | EAJL_UPPER );

if( Class >= 4060 && .@Job > 0 )

jobchange .@Job;

joblevel,70;

atcommand "@allskill";

end;

}

Edited by vijay30393
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you should show the error / fix the error ....there should be an error display in map console...

dont just post "Not Working / Stop Working"....elaborate your so-called "Not Working / Stop working"

otherwise i believe we are the 1 who "Stop Working" here...

- script Sample -1,{
OnPCLoginEvent:
set .@Job,roclass( ( eaclass( BaseJob ) & EAJ_UPPERMASK ) | EAJL_UPPER );
if( Class >= 4060 && .@Job > 0 ){
jobchange .@Job;
set Joblevel,70;
set Baselevel,99;
atcommand "@allskill";
}
end;
}

and you should take a tour on this...

Basic_Scripting

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...