The link next to the little red X in your picture will tell you whats wrong. I can only guess it is database size and that means you are either not using MSSQL community or you are trying to use the released Telecaster instead of the one I linked.
local rdx = math.random( 0 , 10 ) local slot1 = math.random(1,list1)
if slot_id == 1 then
insert_item( slot1, rdx )
end end
I want to select an item randomly in "list1"
and have a random amount of "0 to 10"
I am sure that for you it's simple but me who starts in lua ... it is complex
Code:
function slot(slot_id)
local list1 = {100001,101100,101101,101102}
local rdx = math.random( 0 , 10 )
local slot1 = list1[math.random(1,table.getn(list1))]
if slot_id == 1 then
insert_item( slot1, rdx )
end
end
- You pick an item of an array via array_name[index]
- via table.getn(array_name) you get the itemcount(usually the max index, but in your case the count of items) of your array (if I remember correctly).
- via math.random(1,table.getn(array_name)) you choose randomly a number between 1 and the itemcount of your array.
function slot(slot_id)
local list1 = {100001,101100,101101,101102}
local rdx = math.random( 0 , 10 )
local slot1 = list1[math.random(1,table.getn(list1))]
if slot_id == 1 then
insert_item( slot1, rdx )
end
end
- You pick an item of an array via array_name[index]
- via table.getn(array_name) you get the itemcount(usually the max index, but in your case the count of items) of your array (if I remember correctly).
- via math.random(1,table.getn(array_name)) you choose randomly a number between 1 and the itemcount of your array.
hey guys
I have a problem with my 7.2 server if anyone can help
so if someone buys pass hidden village item id 910000 it's only for 1 Character
how can I make it for the whole account?
thx
I am not sure
but you can make a script that says that the account "ID" receives the passport
I do not have the 7.2 available for testing
But why want to do all the acount?
sorry for my bad English..
[Helping Topic] 24/7 Helping Services! 08/27/2008 - EO PServer Hosting - 31 Replies stucked on anything while setuping your server?
post your problem here and you will get answer as fast as possible better than spamming with posts :cool:
first of all try reading Ahmedpotop's Pserver All thing guide.
if your couldn't solve it out post your problem down here
""That includes PHP rankings pages / registrations pages / Status pages""