Jump to content
  • 0
Kusoo

Why Endless Tower MVP's doesn't count as MVP ?

Question

Well, I have two scripts, one of them gives you cash when you kill a mvp/miniboss, the other one is the MvP Ranking.

 

The thing is, when I go to the Endless tower and kill and kill mvps, doesn't give any cash and it doesn't increase my MvP Ranking

 

 

Any ideas?

 

 

Regards

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Because endless tower NPC are not spawn based, its attached to an specific NPC event(NPC::OnMyMobDead) (and thus don't call OnNPCKillEvent)

Share this post


Link to post
Share on other sites
  • 0

mind posting the script that triggers when a mvp dies and give points?

Sure mate

-	script	cashcash	-1,{OnNPCKillEvent:    if( killedrid && ( getmonsterinfo(killedrid, 21) & 0x0020 ) && ( killedrid <= 3000 ) ) {        if( getmonsterinfo(killedrid, 22) )            .@R = rand( 250, 500 );//-- MVP        else            .@R = rand( 40, 60 );//-- MINIBOSS        #CASHPOINTS = #CASHPOINTS + .@R;        dispbottom "Has ganado: "+ .@R +" cashpoints - Ahora tienes: "+ #CASHPOINTS +"."; }    end;}

 

 

Because endless tower NPC are not spawn based, its attached to an specific NPC event(NPC::OnMyMobDead) (and thus don't call OnNPCKillEvent)

 

So is there something I could do to make it work? So far, I've tried with the "if( killedrid && ( getmonsterinfo(killedrid, 21)" thing under the OnMyDeadMob inside of the endlesstower script, but nope, doesn't work

Share this post


Link to post
Share on other sites
  • 0

I'm not completely sure, but I think that these specific labels from Endless Tower doesn't give you the killedrid, so you'll have to change the labels called when MVPs inside it are killed and do your own handling.

 

Something like:

areamonster .@map$,352,9,362,45,"Baphomet",1039,1,.@label$+"MVP";

and:

OnMyMobDeadMVP:	[ Do your MVP things here ]	.@map$ = instance_mapname("1@tower");	.@mob_dead_num = mobcount(.@map$,instance_npcname("#1F Controller")+"::OnMyMobDead");	if (.@mob_dead_num < 1) {		initnpctimer;		//SetItemPartyInMap in_102floor 1	} else		mapannounce .@map$, "Remaining Monsters on the 1st Level - "+.@mob_dead_num,bc_map,"0x00ff99";	end;

Make sure to check every labels, because there are more than one.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.