Jump to content
  • 0

Reward depending your class


KingRamses

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  03/04/15
  • Last Seen:  

   I've been working on a pvp arena that rewards you a powerful weapon but only for 1 day, I want to make it that it gives you a weapon depending on your class how would I do it?

Quote

dispbottom "You are a winner of the Dragon Arena event. Congratulations!";
        donpcevent "Dragon Arena::OnStopEvent";
        announce "We have a winner, the user "+ strcharinfo(0) +" has defeated the enemies around, taking the dragon sword", bc_all, "0xFFCE00";
        getitem 12715,1;
        warp "prontera", 156,149;
        end;

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  57
  • Reputation:   16
  • Joined:  09/26/16
  • Last Seen:  

// set each class with itemid.
set .rewardperclass[1], 4276; // Swordsman
set .rewardperclass[3], 4525; // Archer
set .rewardperclass[2], 4386; // Mage
set .rewardperclass[4], 4372; // Acolyte
set .rewardperclass[5], 4,342; // Merchant
set .rewardperclass[6], 4168; // Thief
set .rewardperclass[4046], 4425; // Taekwon
set .rewardperclass[0], 4123; // Super Novice
set .rewardperclass[24], 4324; // Gunslinger
set .rewardperclass[25], 4134; // Ninja
// you can also use script constants like JOB_RUNE_KNIGHT, JOB_HIGH_PRIEST on arrays more info at src/map/script_constants.h

// then use the variable like this:
// .rewardperclass[BaseClass]
// if you want to get specific class like Lord Knight, Paladin etc, then use [Class] instead of [BaseClass], and edit the class ids on array.

// for limited time items, use rentitem
rentitem .rewardperclass[BaseClass],32000; // 320000 is one day?

 

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