Jump to content
  • 0

CUSTOM MOB EXP


Question

Posted

hello i have custom mob here

 

3222,Aposis,Aposis,Aposis,255,80390,1,99999999,99999999,2,1399,1799,141,68,189,105,72,85,132,72,10,12,2,0,63,0x37B5,160,140,384,288,0,0,0,0,0,0,0,7097,3000,994,30,6223,10,2680,1,1920,50,2621,1,2364,20,0,0,0,0,4429,1
 
 i wanted to double the exp when they kill the mob, how ever no mater how many 999999999999 i will place on EXP, and JEXP section they got the same exp, but if I add MEXP they recve more EXP but theyl become MVP which i dont want,cuz i had use a script (below) that if they kill MVP's theyl rcved special item ., i just want them a normal mob for faster leveling  when player level reach 200 - max 255 my rate is 5000x/5000x/100000x renewal is there anyway to make them MVP but the script below will not take effect on them? thanks much, =)

-	script	MVP Badge	-1,{
OnNPCKillEvent:
	if ( getmonsterinfo( killedrid, MOB_MVPEXP ) && rand(100) < 100 ) {
		if ( getcharid(1) ) {
			getpartymember getcharid(1), 1;
			getpartymember getcharid(1), 2;
			for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
				if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { // what happens if someone in the party member is offline =/
					.@partymemberaid[.@c] = $@partymemberaid[.@i];
					.@c++;
				}
			}
			getitem 25009, 1, .@partymemberaid[ rand( .@c ) ];
		}
		else {
			getitem 25009, 1;
		}
	}
	end;
}

 

12 answers to this question

Recommended Posts

Posted

sandbox like this? 

-    script    MVP Badge    -1,{

OnNPCKillEvent:

    if(killedrid == 3222) getexp 999999999,999999999;

    end;

    if ( getmonsterinfo( killedrid, MOB_MVPEXP ) && rand(100) < 100 ) {

        if ( getcharid(1) ) {

            getpartymember getcharid(1), 1;

            getpartymember getcharid(1), 2;

            for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {

                if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { // what happens if someone in the party member is offline =/

                    .@partymemberaid[.@c] = $@partymemberaid[.@i];

                    .@c++;

                }

            }

            getitem 25009, 1, .@partymemberaid[ rand( .@c ) ];

        }

        else {

            getitem 25009, 1;

        }

    }

    end;

}

im getting error

Kido, yup i did that. but it didnt double the exp. :((

 

remember to hit tabs

-<tab>script<tab>MVP Badge<tab>-1,{
OnNPCKillEvent:
    if(killedrid == 3222) getexp 999999999,999999999;
    end;
    if ( getmonsterinfo( killedrid, MOB_MVPEXP ) && rand(100) < 100 ) {
        if ( getcharid(1) ) {
            getpartymember getcharid(1), 1;
            getpartymember getcharid(1), 2;
            for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
                if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { // what happens if someone in the party member is offline =/
                    .@partymemberaid[.@c] = $@partymemberaid[.@i];
                    .@c++;
                }
            }
            getitem 25009, 1, .@partymemberaid[ rand( .@c ) ];
        }
        else {
            getitem 25009, 1;
        }
    }
    end;
}

i'm not getting error

Posted (edited)

There's another workaround...

 

Combine the OnNPCKillEvent then use 'getexp' command...

 

Ex.

OnNPCKillEvent:
	if(killedrid == 3222) getexp 999999999,999999999;
	end;

Edited by sandbox
Posted

sandbox like this? 

-    script    MVP Badge    -1,{
OnNPCKillEvent:
    if(killedrid == 3222) getexp 999999999,999999999;
    end;
    if ( getmonsterinfo( killedrid, MOB_MVPEXP ) && rand(100) < 100 ) {
        if ( getcharid(1) ) {
            getpartymember getcharid(1), 1;
            getpartymember getcharid(1), 2;
            for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
                if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { // what happens if someone in the party member is offline =/
                    .@partymemberaid[.@c] = $@partymemberaid[.@i];
                    .@c++;
                }
            }
            getitem 25009, 1, .@partymemberaid[ rand( .@c ) ];
        }
        else {
            getitem 25009, 1;
        }
    }
    end;
}

im getting error

Kido, yup i did that. but it didnt double the exp. :((

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