Jump to content
  • 0
GodKnows Jhomz

Cutin Last Stop Image

Question

Hello rA devs, Im trying to make a random box item with cutins, how can I change the last pic stopped in cutins into the random item that you get in the list. Example I have a 10 random items (setarray .itemlist,501,502,503,504,505,506,507,508,509,510;) then i want to set the last image of the cutin will be "hb503" <- this is the example what will I get so I want to display the image of hb503 when I get the reward 503.

 

Btw this is the cutin animation script that I'm using in my script.

for([email protected]=1;[email protected]<30;[email protected]++) {
cutin "hb"[email protected],4;
sleep2 100;
}

Thanks in advance.

Edited by GodKnows Jhomz
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Rather easy...

 

PS/ I added a randomisation of your cutin 'coz your script above is false, if cutin name are like hb501...

[email protected]_item = rand(501,510);
for([email protected]=1;[email protected]<30;[email protected]++) {
  [email protected] = rand(501,510);
  cutin "hb"[email protected],4;
  sleep2 100;
}
cutin "hb"[email protected]_item,4;
getitem [email protected]_item,1;
Edited by Vykimo
  • Upvote 1
Link to comment
Share on other sites

  • 0

 

Rather easy...

 

PS/ I added a randomisation of your cutin 'coz your script above is false, if cutin name are like hb501...

[email protected]_item = rand(501,510);
for([email protected]=1;[email protected]<30;[email protected]++) {
  [email protected] = rand(501,510);
  cutin "hb"[email protected],4;
  sleep2 100;
}
cutin "hb"[email protected]_item,4;
getitem [email protected]_item,1;

Thank you very much! My script is now working perfectly. :D Marked as solved!

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.