LearningRO Posted June 20, 2017 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
0 LearningRO Posted June 27, 2017 Author 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
0 Deleted User Posted June 24, 2017 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
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 melv03 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.