Jump to content
  • 0

Making a scroll


Sketch

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  11/08/14
  • Last Seen:  

Hello everyone.

 

I want to make a scroll, Dark Knight Scroll.

That scroll will contain the following items by 100% chance:

            - 2x Light White Potion Box (13534)
            - 3x Light Blue Potion Box (13810)
            - 1x Field Manual (12208)
            - 5x Blessing Scroll (12215)
            - 5x Agi Scroll (12216)

This scroll will include the following items with the chance:
            - Dark Knight Mask (5482): 15%
            - Dark Knight Glove (2780): 5%
            - Dark Knight Belt (2779): 5%
These 3 Items, you cannot have the 3 of them at the same time even if you're lucky.
So make sure if they get any of these 3 items they can only get 1 item at once.

 

That's it.

And thank you very much ^_^

Edited by Sketch
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

put this on the { equip} tab:

getitem 13534,2;getitem 13810,2;getitem 12208,1;getitem 12215,5;getitem 12216,5;switch(rand(0,3)){case 1:if(rand(0,100) < 15) getitem 5482,1; break;case 2:if(rand(0,100) < 5) getitem 2780,1; break;case 3:if(rand(0,100) < 5) getitem 2780,1; break;default: end;}

so, it will be something like this:

1052953,Dark_Knight_Scroll,Dark Knight Scroll,2,10000,,1,,,,,0xFFFFFFFF,63,2,,,,,,{ getitem 13534,2;getitem 13810,2;getitem 12208,1;getitem 12215,5;getitem 12216,5;switch(rand(0,3)){case 1:if(rand(0,100) < 15) getitem 5482,1; break;case 2:if(rand(0,100) < 5) getitem 2780,1; break;case 3:if(rand(0,100) < 5) getitem 2780,1; break;default: end;} },{},{}

script part:

getitem 13534,2; // 2x Light White Potion Box
getitem 13810,2; // 3x Light Blue Potion Box
getitem 12208,1; // 1x Field Manual
getitem 12215,5; // 5x Blessing Scroll
getitem 12216,5; // 5x Agi Scroll

switch(rand(0,3)){ // 4 choices: no bonus, Mask, Glove, Belt
	case 1:if(rand(0,100) < 15) getitem 5482,1; break; // player will get Dark Knight Mask. but, 15% chance (random, 0~99. if number is < 15, get)
	case 2:if(rand(0,100) < 5) getitem 2780,1; break; // player will get Dark Knight Glove. but, 5% chance (random, 0~99. if number is < 5, get)
	case 3:if(rand(0,100) < 5) getitem 2780,1; break;  // player will get Dark Knight Belt. but, 5% chance (random, 0~99. if number is < 5, get)
	default: end;} // player did not get any bonus

tested, working (i used the opposite of your bonus effect to test the rand section).

I've opened the box for several times but have never received any of the special items. probably today's not my day.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  06/12/20
  • Last Seen:  

On 11/9/2014 at 12:55 AM, Winz said:

 


getitem 13534,2; // 2x Light White Potion Box
getitem 13810,2; // 3x Light Blue Potion Box
getitem 12208,1; // 1x Field Manual
getitem 12215,5; // 5x Blessing Scroll
getitem 12216,5; // 5x Agi Scroll

switch(rand(0,3)){ // 4 choices: no bonus, Mask, Glove, Belt
	case 1:if(rand(0,100) < 15) getitem 5482,1; break; // player will get Dark Knight Mask. but, 15% chance (random, 0~99. if number is < 15, get)
	case 2:if(rand(0,100) < 5) getitem 2780,1; break; // player will get Dark Knight Glove. but, 5% chance (random, 0~99. if number is < 5, get)
	case 3:if(rand(0,100) < 5) getitem 2780,1; break;  // player will get Dark Knight Belt. but, 5% chance (random, 0~99. if number is < 5, get)
	default: end;} // player did not get any bonus

 

Sorry for hijacking this thread but where exactly should I put this?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  396
  • Reputation:   53
  • Joined:  07/24/12
  • Last Seen:  

11 hours ago, Zantetsuken said:

Sorry for hijacking this thread but where exactly should I put this?

LOL to old topic

Thats part is script from the item db,, you can use the item line only as the creator said

On 11/10/2014 at 12:04 AM, Winz said:

no,
add this line:
 


1052953,Dark_Knight_Scroll,Dark Knight Scroll,2,10000,,1,,,,,0xFFFFFFFF,63,2,,,,,,{ getitem 13534,2;getitem 13810,2;getitem 12208,1;getitem 12215,5;getitem 12216,5;switch(rand(0,3)){case 1:if(rand(0,100) < 15) getitem 5482,1; break;case 2:if(rand(0,100) < 5) getitem 2780,1; break;case 3:if(rand(0,100) < 5) getitem 2780,1; break;default: end;} },{},{}

to your item_db.txt

 

be careful with the item id. you need to change it.

 

then, you should add some things to the iteminfo.lub or the idnumitemdesctable those things.

refer:

http://rathena.org/wiki/Custom_Items

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  11/08/14
  • Last Seen:  

Wow, thank you very much Winz!

So I should just make a script .txt and put your code in it and add the item to item_db?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

no,
add this line:
 

1052953,Dark_Knight_Scroll,Dark Knight Scroll,2,10000,,1,,,,,0xFFFFFFFF,63,2,,,,,,{ getitem 13534,2;getitem 13810,2;getitem 12208,1;getitem 12215,5;getitem 12216,5;switch(rand(0,3)){case 1:if(rand(0,100) < 15) getitem 5482,1; break;case 2:if(rand(0,100) < 5) getitem 2780,1; break;case 3:if(rand(0,100) < 5) getitem 2780,1; break;default: end;} },{},{}

to your item_db.txt


be careful with the item id. you need to change it.

then, you should add some things to the iteminfo.lub or the idnumitemdesctable those things.

refer:

http://rathena.org/wiki/Custom_Items

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