You are Unregistered, please register to gain Full access.
    


RaGEZONE sponsored advertisment:

Dragonica Image
The free 3D side scrolling MMORPG.

 
 
LinkBack Thread Tools
Old 08-27-2009   #1 (permalink)
Monster Member
 
Rank: Member
Join Date: Dec 2008
Posts: 181
Thanked 13 Times in 11 Posts

[Release] Job Advancer NPC. HAX.

Your Ad Here
PHP Code:
/* [NPC]
    All-In-One Job Advancer Randi
 */


var status 0;
var 
job 0;
var 
newJob 0;
var 
lvl 1;
var 
jobs = Array(**** 120130210220230310320410420510520, **** 121131211221231311321411421511521, **** 1221*** 2122222*** 312322412422512522);
function 
start() 
{
    
status = -1;
    
action(100);
}

function 
action(modetypeselection) {
    if (
mode == -1) {
    
cm.voteMSG();
        
cm.dispose();
    } else {
        if (
mode == 1) {
            
status++;
        } else {
            
status--;
        }
        if (
status == 0) {
            
job cm.getJobId();
            
lvl cm.getPlayer().getLevel();
            if (
lvl 10){                
                
cm.sendOk("Sorry, but you have to be at least level 10 to get a job advance.");
                
cm.dispose();
            } else if (
job == 0) {
                if (
lvl 30){
                
cm.sendSimple("Choose What Job you want to be #b\r\n#L0# Warrior#l\r\n#L1# Magician#l\r\n#L2# Archer#l\r\n#L3# Thief#l\r\n#L4# Pirate#l");
                
status 9;
                } else if (
lvl 70) {
                    
cm.sendSimple("Choose What Job you want to be #b\r\n#L0# Fighter#l\r\n#L1# page#l\r\n#L2# spearman#l\r\n#L3# fire wizard#l\r\n#L4# Ice wizard#l\r\n#L5# Cleric#l\r\n#L6# Bowman#l\r\n#L7# Cross Bowman#l\r\n#L8# Assasin#l\r\n#L9# Bandit#l\r\n#L10# Brawler#l\r\n#L11# GunSlinger#l");
                
status 199;
                } else if (
lvl 120) {
                    
cm.sendSimple("Choose What Job you want to be #b\r\n#L12# Crusader#l\r\n#L13# Knight#l\r\n#L14# Dragon Knight#l\r\n#L15# fire Mage#l\r\n#L16# Ice Mage#l\r\n#L17# Preist#l\r\n#L18# Ranger#l\r\n#L19# Sniper#l\r\n#L20# Hermit#l\r\n#L21# Cheif Bandit#l\r\n#L22# Marauder#l\r\n#L23# Outlaw#l");
                
status 199;
                } else if (
lvl >= 120) {
                    
cm.sendSimple("Choose What Job you want to be #b\r\n#L24# Hero#l\r\n#L25# Paladin#l\r\n#L26# Dark Knight#l\r\n#L27# Fire ArchMage#l\r\n#L28# Ice ArchMage#l\r\n#L29# Bishop#l\r\n#L30# BowMaster#l\r\n#L31# MarksMan#l\r\n#L32# NightLord#l\r\n#L33# Shadower#l\r\n#L34# Buccaneer#l\r\n#L35# Corsair#l");
                
status 199;
                } else {
                    
cm.sendOk("under construction");
                    
                }
            } else if (
job >= 100 && job 100 == ) {
                var 
fuck "Hi nub!";                
                if (
lvl 70){    
                    if (
job >= 100 && job 200 && lvl >= 30) {
                        
fuck " Choose the Job you want : #b\r\n#L0# Fighter#l\r\n#L1# Page#l\r\n#L2# Spearman#l\r\n";
                    } else if (
job >= 200 && job 300 && lvl >= 30) {
                        
fuck " Choose the Job You want : #b\r\n#L3# Fire Wizard#l\r\n#L4# Ice Wizard#l\r\n#L5# Cleric#l\r\n";
                    }  else if (
job >= 300 && job 400 && lvl >= 30) {
                        
fuck " Choose the Job You want : #b\r\n#L6# Bow Man#l\r\n#L7# Cross Bow Man#l\r\n";
                    }  else if (
job >= 400 && job 500 && lvl >= 30) {
                        
fuck " Choose the Job You want : #b\r\n#L8# Assasin#l\r\n#L9# Bandit#l\r\n";
                    }  else if (
job >= 500 && job 600 && lvl >= 30) {
                        
fuck " Choose the Job You want : #b\r\n#L10# Brawler#l\r\n#L11# GunSlinger#l\r\n";
                    } else {                        
                        
cm.voteMSG();
                        
cm.dispose();
                    }
                } else if (
lvl 120) {
                    if (
job >= 100 && job 200 && lvl >= 70) {
                        
fuck " Choose the Job you want : #b\r\n#L12# Crusader#l\r\n#L13# Knight#l\r\n#L14# DragonKnight#l\r\n";
                    } else if (
job >= 200 && job 300 && lvl >= 70) {
                        
fuck " Choose the Job You want : #b\r\n#L15# Fire Mage#l\r\n#L16# Ice Magel\r\n#L17# Preist#l\r\n";
                    }  else if (
job >= 300 && job 400 && lvl >= 70) {
                        
fuck " Choose the Job You want : #b\r\n#L18# Ranger#l\r\n#L19# Sniper#l\r\n";
                    }  else if (
job >= 400 && job 500 && lvl >= 70) {
                        
fuck " Choose the Job You want : #b\r\n#L20# Hermit#l\r\n#L21# Cheif Bandit#l\r\n";
                    }  else if (
job >= 500 && job 600 && lvl >= 70) {
                        
fuck " Choose the Job You want : #b\r\n#L22# Marauder#l\r\n#L23# Outlaw#l\r\n";
                    } else {    
                        
cm.voteMSG();
                        
cm.dispose();
                    }
                } else if (
lvl >= 120) {
                    if (
job >= 100 && job 200 && lvl >= 120) {
                        
fuck " Choose the Job you want : #b\r\n#L24# Hero#l\r\n#L25# Paladin#l\r\n#L26# Darknight#l\r\n";
                    } else if (
job >= 200 && job 300 && lvl >= 120) {
                        
fuck " Choose the Job You want : #b\r\n#L27# Fire ArchMage#l\r\n#L28# Ice ArchMage#l\r\n#L29# Bishop#l\r\n";
                    }  else if (
job >= 300 && job 400 && lvl >= 120) {
                        
fuck " Choose the Job You want : #b\r\n#L30# Bow Master#l\r\n#L31# MarksMan#l\r\n";
                    }  else if (
job >= 400 && job 500 && lvl >= 120) {
                        
fuck " Choose the Job You want : #b\r\n#L32# NightLord#l\r\n#L33# Shadower#l\r\n";
                    }  else if (
job >= 500 && job 600 && lvl >= 120) {
                        
fuck " Choose the Job You want : #b\r\n#L34# Buccaneer#l\r\n#L35# Corsair#l\r\n";
                    } else {        
                        
cm.voteMSG();
                        
cm.dispose();
                    }
                }
                
cm.sendSimple(fuck);
                
status 199;
            } else if (
job >= 100 && job 10 == 0) {
                if (
lvl >= 70 && lvl 120){
                    
newJob = (job 1);
                    
cm.changeJobById(newJob);
                    
cm.sendOk("There you go. Have Fun");
                    
status 99;
                } else if (
lvl >= 120){
                    
newJob = (job 2);
                    
cm.changeJobById(newJob);
                    
cm.sendOk("There you go. Have Fun");
                    
status 99;
                } else {
                    
cm.voteMSG();
                    
cm.dispose();
                }
            } else if (
job >= 100 && job %10 == 1) {
                if (
lvl >= 120){
                    
newJob = (job 1);
                    
cm.changeJobById(newJob);
                    
cm.sendOk("There you go. Have Fun");
                    
status 99;
                } else {
                    
cm.voteMSG();
                    
cm.dispose();
                } 
            } else {
                
cm.voteMSG();
                
cm.dispose();
            }            
        } else if (
status == 10){
                    
cm.changeJobById((selection 1) * 100);
                    
cm.sendOk("There u go. Have fun");
                    
status 99;
        } else if (
status == 200){
            
cm.changeJobById(jobs[selection]);
            
cm.sendOk("there u go. Have fun");
            
status 99;
        } else {
            
cm.voteMSG();
            
cm.dispose();
        }
    }

1) it doesnt check for stats
2) it can change your job straight to 4th job if you have level 120 .

This is for servers with 'laid-back' game play.

note: remember to edit the jobs array . its just job id arranged in order. RZ censored it ><

you will have to add a couple of functions in npcconversationmanager.java

PHP Code:
        public void changeJobById(int a) {
            
getPlayer().changeJob(MapleJob.getById(a));
        }

        public 
void voteMSG(){
            
sendOk("Don't forget to vote for us #r#h #. #bhttp://your vote link bitch.#k");
        }

        public 
int getJobId(){
            return 
getJob().getId();
        } 
Credits: I don't remember copying it from some one. iDolly for helping me I guess.

Last edited by AngyTheBitch; 08-27-2009 at 08:52 AM.
AngyTheBitch is offline   Reply With Quote

RaGEZONE sponsored advertisment:
Old 08-27-2009   #2 (permalink)
Xephizion Development
 
Ehab's Avatar
 
Rank: Alpha Member
Join Date: Apr 2008
Location: Somewhere I Bel
Posts: 1,988
Thanked 70 Times in 56 Posts

Re: Job Advancer NPC. HAX.

instead of declaring voteMSG then calling it .. just cm.sendOk("Vote pl0x");
__________________
Originally Posted by RaptorJesus View Post
I think Fat Korean is a pretty cool guy, eh devs MapleStory and doesn't afraid of anything...
Ehab is offline   Reply With Quote

Endorsement
Old 08-27-2009   #3 (permalink)
Love
 
Sherry's Avatar
 
Rank: Member +
Join Date: Aug 2009
Location: Your house
Posts: 264
Blog Entries: 1
Thanked 12 Times in 7 Posts

Re: Job Advancer NPC. HAX.

Thanks for releasing.
It is helpful anywhere for newbie.

@Ehab
i agree with you.
__________________
LoveuMS coming soon.
30% complete on it.
Nothing to worry about,back to maplestory development again.
Sherry is offline   Reply With Quote

Endorsement

Old 08-27-2009   #4 (permalink)
Infraction Banned
 
ToyFork's Avatar
 
Rank: Member +
Join Date: Aug 2009
Posts: 346
Thanked 72 Times in 33 Posts

Re: Job Advancer NPC. HAX.

No Ehab, cm.voteMSG is WAY easier if you want to add it to NPCs.
ToyFork is offline   Reply With Quote
Old 08-27-2009   #5 (permalink)
Madara Uchiha rises
 
lzylzy's Avatar
 
Rank: Member +
Join Date: Sep 2008
Posts: 397
Thanked 1 Time in 1 Post

Re: Job Advancer NPC. HAX.

wow you added a lot of useless stuff.If I'm not mistaken this wastes Memory
__________________
Madara Uchiha OF the Uchiha clan

lzylzy is offline   Reply With Quote
Old 08-27-2009   #6 (permalink)
Monster Member
 
Rank: Member
Join Date: Dec 2008
Posts: 181
Thanked 13 Times in 11 Posts

Re: Job Advancer NPC. HAX.

Originally Posted by lzylzy View Post
wow you added a lot of useless stuff.If I'm not mistaken this wastes Memory

You have no idea what you are talking about.

@ehab : Its easy to make a special function fo vote pl0x because you can use it in other NPCs too. Its just a matter or preference. :)

@sherry & Blue : Thanks for the feed back
AngyTheBitch is offline   Reply With Quote
Old 08-27-2009   #7 (permalink)
Xephizion Development
 
Ehab's Avatar
 
Rank: Alpha Member
Join Date: Apr 2008
Location: Somewhere I Bel
Posts: 1,988
Thanked 70 Times in 56 Posts

Re: [Release] Job Advancer NPC. HAX.

lol not to offend you, but votepl0x is useless in the first place
it saves space and everything .. but .. what? a few bytes?
and no, it doesn't waste memory o.o
__________________
Originally Posted by RaptorJesus View Post
I think Fat Korean is a pretty cool guy, eh devs MapleStory and doesn't afraid of anything...
Ehab is offline   Reply With Quote
Old 08-28-2009   #8 (permalink)
Monster Member
 
Rank: Member
Join Date: Dec 2008
Posts: 181
Thanked 13 Times in 11 Posts

Re: [Release] Job Advancer NPC. HAX.

Originally Posted by Ehab View Post
lol not to offend you, but votepl0x is useless in the first place
it saves space and everything .. but .. what? a few bytes?
and no, it doesn't waste memory o.o
Well actually for every function other than the cm.sendOk and stuff you can use cm.getPlayer(). blablabla, but we do make functions as cm.levelUp and stuff. They are basically not of any significant use but just lesser typing to do. Like I said, its just a matter of preference. I prefer to keep my NPCs shorter .I even have the common strings declared in the cm. you can easily avoid making new functions by typing a few more letters but making it shorter, I think makes it more pretty. I <3 pretty scripts xD
AngyTheBitch is offline   Reply With Quote
 

Bookmarks

Tags
222, 4th, 4th job, add, back, bitch, dark, dragon, game, jobs, knight, law, level, lord, npc, page, php, pirate, public, remember, servers, star, start, type, wan

Thread Tools




Translated by Google
Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Maltese Norwegian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swedish Taiwanese Thai Turkish Ukrainian Vietnamese
no new posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274