LearningRO Posted June 20, 2017 Group: Members Topic Count: 107 Topics Per Day: 0.02 Content Count: 778 Reputation: 73 Joined: 02/10/12 Last Seen: 15 hours ago Share Posted June 20, 2017 (edited) Like the title above, is it possible random box can use format getitem2 for ex: gifbox can get knife+7 or MG+7 thx Edited June 20, 2017 by melv0 Quote Link to comment Share on other sites More sharing options...
0 LearningRO Posted June 27, 2017 Group: Members Topic Count: 107 Topics Per Day: 0.02 Content Count: 778 Reputation: 73 Joined: 02/10/12 Last Seen: 15 hours ago Author Share Posted June 27, 2017 On 6/24/2017 at 3:22 PM, Kaze said: Try this simple You can easily configure the items at OnInit: Item DB: // SQL Version: REPLACE INTO `item_db2` VALUES (46996,'RANDOM_BOX','Random Box',18,NULL,NULL,200,NULL,NULL,NULL,NULL,0xFFFFFFFF,7,2,NULL,NULL,NULL,NULL,NULL,'doevent \"F_Random_Box::OnBoxClick\";',NULL,NULL); // TXT Version: 46996,RANDOM_BOX,Random Box,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ doevent \"F_Random_Box::OnBoxClick\"; },{},{} Script: http://immortalsro.com/rAScripts/random_box.txt thanks u for ur help but i found more simple script function script L_CustomLRGmid { set @randOBB,rand(6); if(@randOBB==0){ getitem2 32121,1,1,0,0,7905,7905,0,0; } if(@randOBB==1){ getitem2 19509,1,1,0,0,7905,7905,0,0; } if(@randOBB==2){ getitem2 20318,1,1,0,0,7905,7905,0,0;; } if(@randOBB==3){ getitem2 20131,1,1,0,0,7905,7905,0,0;; } if(@randOBB==4){ getitem2 20399,1,1,0,0,7905,7905,0,0;; } if(@randOBB==5){ getitem2 20314,1,1,0,0,7905,7905,0,0;; } end; } and on item db just call that function Quote Link to comment Share on other sites More sharing options...
0 LearningRO Posted June 24, 2017 Group: Members Topic Count: 107 Topics Per Day: 0.02 Content Count: 778 Reputation: 73 Joined: 02/10/12 Last Seen: 15 hours ago Author Share Posted June 24, 2017 bump Quote Link to comment Share on other sites More sharing options...
0 Deleted User Posted June 24, 2017 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 235 Reputation: 55 Joined: 12/02/11 Last Seen: February 26, 2021 Share Posted June 24, 2017 41 minutes ago, melv0 said: bump Try this simple You can easily configure the items at OnInit: Item DB: // SQL Version: REPLACE INTO `item_db2` VALUES (46996,'RANDOM_BOX','Random Box',18,NULL,NULL,200,NULL,NULL,NULL,NULL,0xFFFFFFFF,7,2,NULL,NULL,NULL,NULL,NULL,'doevent \"F_Random_Box::OnBoxClick\";',NULL,NULL); // TXT Version: 46996,RANDOM_BOX,Random Box,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ doevent \"F_Random_Box::OnBoxClick\"; },{},{} Script: http://immortalsro.com/rAScripts/random_box.txt 1 Quote Link to comment Share on other sites More sharing options...
Question
LearningRO
Like the title above, is it possible random box can use format getitem2
for ex:
gifbox can get knife+7 or MG+7
thx
Edited by melv0Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.