item random

Tutti

New member
Messages
92
Points
0
Github
Tutti
English!

Making this item drop the items that the random script

Portugues!

Como fazer este item soltar os itens que esta no script random

{
Id: 7711
AegisName: "Update_Ticket"
Name: "Ticket Visual da Sorte"
Type: 18
Buy: 10
Weight: 20
Script: <" 
setarray .@item_id,
19507, 
19509,
19510, 
19513, 
19514, 
19515,
19516,
19517,
19518,
19519,
19520,
19521,
19522,
19574,
19573,
getitem [rand(getarraysize(.@item_id))], 1;

">
},


 
Code:
@itemIDfromList = callfunc("F_Rand",19507,19509,19510,19513,19514,19515,19516,19517,19518,19519,19520,19521,19522,19574,19573);getitem @itemIDfromList,1; 
 
@itemIDfromList = callfunc("F_Rand",19507,19509,19510,19513,19514,19515,19516,19517,19518,19519,19520,19521,19522,19574,19573);getitem @itemIDfromList,1; 
Maybe he mean drop on the floor?

 
it did not work

{
Id: 7711
AegisName: "Update_Ticket"
Name: "Ticket Visual da Sorte"
Type: 18
Buy: 10
Weight: 20
Script: <" 
@itemIDfromList = callfunc("F_Rand",
19507, 
19509,
19510, 
19513, 
19514, 
19515,
19516,
19517,
19518,
19519,
19520,
19521,
19522,
19574,
19573,
getitem @itemIDfromList,1;

">
},

 
 19573,

should be

 19573);

 
Last edited by a moderator:
Back
Top