Jump to content
  • 0

Gain extra EXP upon mob killed.


Question

Posted

  set BaseExp,BaseExp+10000;   set JobExp,JobExp+5000;

 

OnNPCKillEvent:

 

how do i add this two together? Is this correct?

 

x script x 59,{

 

OnNPCKillEvent:

set BaseExp,BaseExp+10000;

set JobExp,JobExp+5000;

 

end;

 

im stuck here. Basically if i kill a mob i will get those base/job exp. Only in this map prt_fild02.

8 answers to this question

Recommended Posts

Posted

Use the monster command and attach an event tag to it. Then under your event tag you put the +exp. I'm on mobile so I'll post links shortly.

Use the monster command and attach an event tag to it. Then under your event tag you put the +exp. I'm on mobile so I'll post links shortly.

https://rathena.org/board/topic/102501-points-per-monster/?p=287287

You can use that as a framework, just replace the number of mobs, IDs, etc. And then replace everything under the OnMyMob tag with your snippet.

 

Use the monster command and attach an event tag to it. Then under your event tag you put the +exp. I'm on mobile so I'll post links shortly.

Use the monster command and attach an event tag to it. Then under your event tag you put the +exp. I'm on mobile so I'll post links shortly.

https://rathena.org/board/topic/102501-points-per-monster/?p=287287

You can use that as a framework, just replace the number of mobs, IDs, etc. And then replace everything under the OnMyMob tag with your snippet.

 

 

 

 

OH nice. Thanks for that reply appreciate so much!

 

Btw, what if i do like this? using that script

What is  [--en--]

-	script	Punching_Bag	HIDDEN_NPC,{
end;


OnInit:
monster "prontera",150,160,"--en--",1002,1,"Punching_Bag::OnMyMobDead";
end;

OnMyMobDead:
#PvPPoints = #PvPPoints + rand(5,150);
monster "prontera",150,160,"--en--",1002,1,"Punching_Bag::OnMyMobDead";
end;

}

To

OnMyMobDead:
getexp 10000,5000;
monster "prontera",150,160,"--en--",1002,1,"Punching_Bag::OnMyMobDead";
end;

}

What do you think?

Posted

--en--     default english name for the monster.

 

you can also do like this

OnInit:
monster "prontera",150,160,"--en--",1002,1,"Punching_Bag::OnInit";  // <-- reuse the same label.
end;
Posted (edited)

As he wants the mob to give exp when killed wouldn't the oninit throw a warning or even crash the first time it loads due to adding exp with no rid?

And as far as your script, it looks fine.

Though it is only spawning one mob in the same location and instantly respawning in the same spot. If you need help changing that go ahead and ask, though I'm sure you can figure it out c:

Edited by Nova
Posted

As he wants the mob to give exp when killed wouldn't the oninit throw a warning or even crash the first time it loads due to adding exp with no rid?

And as far as your script, it looks fine.

Though it is only spawning one mob in the same location and instantly respawning in the same spot. If you need help changing that go ahead and ask, though I'm sure you can figure it out c:

 

 

haha you got the point .... didnt notice about getexp.

 

anyway it still could be solved by using the playerattached

 

Also you can fix but putting the coordinate to 0 , 0 . It will spawn randomly and not 1 spot.

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