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

Custom Items Attributes

Dubler

PHP, LUA, C++
Joined
Aug 3, 2009
Messages
268
Reaction score
11
Location
Poland
Kiedy dam itemowi wlasny atrybut np:
Code:
 doItemSetAttribute(item.uid,"dupa",10)

to po ruszeniu nim na inną pozycje ten atrybut znika. Jest sposób żeby nie znikał inny niż dodanie tego atrybutu do c++?
 
Przedmioty na ziemi nie przechowują swoich atrybutów (i innych danych).
Nie jestem pewny, ale pokombinowałbym z tym:
PHP:
void makeUnique(Item* parent);


Ale wszystko się wyjaśnij, gdy Elf zobaczy temat, bo ja nie jestem pewny na 100%.
 
Coś zjebane z libami , 050-function.lua bo atrybut masz np przy tym pucharze z areny i jakos nie zdarzyło mi sie zeby to zniklo.

Nie wiem czy dobrze zrozumiałem
 
Co to za atrybut dupa? Musisz go zdefiniowac wszystkie sa w items.cpp "aid, name, uid. pluralname, article, attack. extraatack, defense, extradefense, armor, attackspeed, hitchance, scriptprotected, dualwield, text, date, description, decaying".

Może się tak dziać, że po prostu jest nie znany i nie ma jak go zapisać....
 
@topic
Stackowane itemy "traca" atrybuty przy przekladaniu


@up
nie trzeba predefiniowac nowych atrybutow ( "tworza" sie dynamicznie ).
 
Back
Top