• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Box-set

szajker123

New Member
Joined
May 12, 2012
Messages
195
Reaction score
0
Siema , mam pytanie czy umial by ktos przerobic mi ten skrypt na taki że gdy mamy pewnego box'a i go otworzymy to nam daje full seta ? np ( id. xxxx,xxxx,xxxx,xxxx ) - all razem do bp a nie tylko 1 item jak jest w skrypcie a o to skrypt
local reward_table = {
{effect = 43, id = 11815, count = 1},
{effect = 43, id = 11824, count = 1},
{effect = 43, id = 11966, count = 1},
{effect = 43, id = 11975, count = 1},
{effect = 43, id = 11455, count = 1},
{effect = 43, id = 11993, count = 1},
{effect = 43, id = 11506, count = 1},
{effect = 43, id = 11476, count = 1}


}

function onUse(cid, item, frompos, item2, topos)
local reward = reward_table[math.random(#reward_table)]

doSendMagicEffect(getPlayerPosition(cid), reward.effect)
doPlayerAddItem(cid,reward.id, reward.count)
doRemoveItem(item.uid,1)
return true
end
Za pomoc dziekuje i daje REpa
 
to przerobisz mi to ? :p " takich postow sie obawialem -.^ "

a ja się takich ludzi obawiałem jak zakładałem tu konto, aż sam się w pewien sposób podobnym stałem;s

możesz zrobić pętle, która będzie dodawać itemy np.

tbl={
[1] = {item = 2222222},
[2] = {item = 333333},
}

i potem for i = 1,#tbl do
add item i.item, 1
 
No mam pomysł zmień dział bo jest na tym forum parę takich :) oczywiście ang podstawa ew. translator.
Bo na PB nie możemy.
 
Ależ to nie zgodne z regulaminem przyjdzie Pan Samme i dostaniesz bana lub warna i ja też za to że wchodzę z Tobą w dyskusje w zakazanym temacie.
 
Back
Top