syncoutfit.lua

main 40 lines · 1.2 KB Raw
Alex Alex Commit Initial commit 01/10/2026 09:20
1-- Sync outfits that player own with Znote AAC
2-- So its possible to see which full sets player
3-- has in characterprofile.php
4
5znote_outfit_list = {
6 { -- Female (girl) outfits
7 136,137,138,139,140,141,142,147,148,
8 149,150,155,156,157,158,252,269,270,
9 279,288,324,329,336,366,431,433,464,
10 466,471,513,514,542,575,578,618,620,
11 632,635,636,664,666,683,694,696,698,
12 724,732,745,749,759,845,852,874,885,
13 900
14 },
15 { -- Male (boy) outfits
16 128,129,130,131,132,133,134,143,144,
17 145,146,151,152,153,154,251,268,273,
18 278,289,325,328,335,367,430,432,463,
19 465,472,512,516,541,574,577,610,619,
20 633,634,637,665,667,684,695,697,699,
21 725,733,746,750,760,846,853,873,884,
22 899
23 }
24}
25
26function onLogin(cid)
27 -- storage_value + 1000 storages (highest outfit id) must not be used in other script.
28 -- Must be identical to Znote AAC config.php: $config['EQ_shower'] -> storage_value
29 local storage_value = 10000
30 -- Loop through outfits
31 for _, outfit in pairs(znote_outfit_list[getPlayerSex(cid)+1]) do
32 if canPlayerWearOutfit(cid,outfit,3) then
33 if getPlayerStorageValue(cid,storage_value + outfit) ~= 3 then
34 setPlayerStorageValue(cid,storage_value + outfit, 3)
35 end
36 end
37 end
38 return true
39end
40
Top