Jump to content
  • 0

CUSTOM MOB EXP


kitty14

Question


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

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;
}

 

Link to comment
Share on other sites

12 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

hm i believe theres a limit to the such values, don't you think they are too high? try with a small value and see if it works o:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

add this after OnNPCKillEvent:

if(killedrid == 3222) end;
Edited by sandbox
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

Kido: like how many?

 

sandbox: i tried but its kind annoying ? every time you kill the mob it says MVP, MVP, MVP
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

There's another workaround...

 

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

 

Ex.

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

Edited by sandbox
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

Kido: like how many?

 

sandbox: i tried but its kind annoying ? every time you kill the mob it says MVP, MVP, MVP

 

 

i just would start with 1000000 (1m) and see how it helps/works

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

BIG Tnx KIDO and Sandbox !! Sorry Boss cheers !!

Edited by kitty14
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

lol no problem you are very welcome

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

BIG Tnx KIDO !!

lol'd

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

^_^

Edited by kitty14
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

 

BIG Tnx KIDO !!

lol'd

 

 

i stealed your best answer loool /gg

  • Upvote 1
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...