Jump to content
  • 0

Request rentitem with a specific class


Deleted User

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   55
  • Joined:  12/02/11
  • Last Seen:  

Hello, first of all if you respond to my topic, i appreciate it and thank you.

So now, i would like to ask for a script request on how can i make rentitem with a specific class.

 

Example:

This script must be a function because i'll be using a custom box for this called: (Trial Rent Item)
So, now a player must be max level and also a transcended class or else the box won't be open.

 

example of the script:

 

function    script    F_RentItemClass    {

if (baselevel && transcded class)
    mes "You must be Max Level and Transcded Class";
else if mes "would you like to open now the box you will receieve a rent item to your specific job class?"
if (menu)

open the box

for ( .@i = 0; .@i < getarraysize(.classIds); .@i++ ) { bla bla bla
then proceed --->
mes "You have received bla blabla"
rentitem OnInit:,( 1 * 604800 ); --> if a player is sniper(id: 4012) so the given item will be 1735.

 

PS: Sorry if my script sketch is weird hope you understand.

For the OnInit: part this is what would i like (a specific class and a specific item):

 

    setarray .classIds, 4008, 4014, 4015, 4022, 4013, 4009, 4016, 4010, 4017, 4011, 4018, 4012, 4019, 4020, 4021;
    setarray .itemIds,  1423, 1423, 1177, 1177, 1272, 1566, 1817, 1628, 1627, 1378,13029, 1735, 1536, 1921, 1975;


If you have any questions please feel free to ask me.

 

Thank you so much and i appreciate it

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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