summaryrefslogtreecommitdiff
path: root/npc/functions/process_equip.txt
blob: e18045ff00a3cb89a227c90158f16fc154de8239 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
function	script	ProcessEquip	{
    @head = getequipid(equip_head);
    @torso = getequipid(equip_torso);
    @legs = getequipid(equip_legs);

    @torsoB = @torso;
    if (@torsoB >= 2050 && @torsoB <= 2059) set @torsoB, 1202; // Cotton shirt
    if (@torsoB >= 2060 && @torsoB <= 2069) set @torsoB, 624; // V Neck
    if (@torsoB >= 2070 && @torsoB <= 2079) set @torsoB, 564; // T Neck
    if (@torsoB >= 2080 && @torsoB <= 2089) set @torsoB, 720; // Silk Robe
    if (@torsoB >= 2090 && @torsoB <= 2099) set @torsoB, 688; // Tanktop
    if (@torsoB >= 2120 && @torsoB <= 2129) set @torsoB, 689; // Short tanktop
    @torsoC = cNone;
    if (@torso == 1202 || @torso == 624 || @torso == 564 || @torso == 688 || @torso == 689 || @torso == 720) set @torsoC, cWhite;
    if (@torso >= 2050) set @torsoC, @torso % 10;

    @legsB = @legs;
    if (@legsB >= 2100 && @legsB <= 2109) set @legsB, 632; // Cotton skirt
    if (@legsB >= 2110 && @legsB <= 2119) set @legsB, 586; // Cotton shorts
    @legsC = cNone;
    if (@legs == 632 || @legs == 586) set @legsC, cWhite;
    if (@legs >= 2050) set @legsC, @legs % 10;

    return;
}