• 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!

Lubisz lua to tu wejdz :p

Status
Not open for further replies.

Ldrozd

Piszę skrypty w zeszycie.
Joined
Dec 13, 2008
Messages
430
Reaction score
2
Location
Guess where!
Jak stworzyc item o wybranym uniqueid. Zapewne z pomoca tego, tylko jak ustwic type?
Code:
doCreateItem(itemid, type/count, pos)

ofc rep++ :D
 
Czyzby jeden? By the way - ja nie lubie lua => WYCHODZE ;).
 
local przedmiot = stworzPrzedmiot(przedmiotNR, typ/ilosc, pos)
ustawAtrybut(przedmiot, "uid", 666)

cos takiego??
 
No tak, ale ja chce wiedziec jak zawrzec w tym uniqueid. Rozumiem ta funkcje.
Przykladowo niech bedzie wygladalo to tak.
Code:
local pos = (x=1164, y=1013, z=7)
local type = ?co tu dac?
doCreateItem(1740, type, pos)
 
No tak, ale ja chce wiedziec jak zawrzec w tym uniqueid. Rozumiem ta funkcje.
Przykladowo niech bedzie wygladalo to tak.
Code:
local pos = (x=1164, y=1013, z=7)
local type = ?co tu dac?
doCreateItem(1740, type, pos)

ej type to jest po to zeby np. serwer wiedzial czy chcesz piwko czy siku, atrybut to jest uniqueid!!!!
 
Code:
local item = doPlayerAddItem(cid, itemid)
doItemSetAttribute(item, "uid", value)
To w przypadku gdy chcesz dać ten przedmiot graczowi.
 
Code:
local cipa = doCreateItem(itemid, type/count, pos}
doItemSetAttribute(cipa, "uid", value)
 
Status
Not open for further replies.
Back
Top