Jump to content
  • 0

Making a scroll


Question

Posted (edited)

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

5 answers to this question

Recommended Posts

Posted

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
  • 0
Posted
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?

  • 0
Posted
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

 

Posted

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

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