Jump to content
  • 0

When Boss monster dies, it gives everyone a reward


Rizz

Question


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  72
  • Reputation:   0
  • Joined:  07/29/17
  • Last Seen:  

Hello, I need a help, I am looking for a script which makes the Boss monster [when dies] will grant everyone on Map a specific reward. However, the reward won't be granted to the similar IP/dual client and auto-trade players.

Thanks in advance ?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   35
  • Joined:  07/04/19
  • Last Seen:  

if you're talking about a certain boss monster, like a quest monster or so you can spawn that monster with a script and execute the reward command on the death trigger

for example:

-   script  boss_summoner   -1,{


OnMobDead:
    addrid(1);
    getitem 909,1;
    end;

OnInit:
    monster .map$,"--ja--",1002,1,strnpcinfo(3)+"::OnMobDead";
    end;
}

if you're talking about all the field & dungeon boss monsters that spawn naturally, then you can try this:

-   script  boss_rewards   -1,{


OnNPCKillEvent:
    if(getmonsterinfo(killedrid, MOB_MVPEXP) > 1) {
        addrid(1);
        getitem 909,1;
    }
    end;
}

 

Edited by Mastagoon
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  211
  • Reputation:   17
  • Joined:  12/23/11
  • Last Seen:  

For ip - Getcharip()

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  72
  • Reputation:   0
  • Joined:  07/29/17
  • Last Seen:  

On 1/21/2021 at 11:20 PM, Mastagoon said:

if you're talking about a certain boss monster, like a quest monster or so you can spawn that monster with a script and execute the reward command on the death trigger

for example:


-   script  boss_summoner   -1,{


OnMobDead:
    addrid(1);
    getitem 909,1;
    end;

OnInit:
    monster .map$,"--ja--",1002,1,strnpcinfo(3)+"::OnMobDead";
    end;
}

if you're talking about all the field & dungeon boss monsters that spawn naturally, then you can try this:


-   script  boss_rewards   -1,{


OnNPCKillEvent:
    if(getmonsterinfo(killedrid, MOB_MVPEXP) > 1) {
        addrid(1);
        getitem 909,1;
    }
    end;
}

 

Thank you so much for the response, I will test it first

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