1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
function script CheckLauncher { if (getequipid(equip_arrow) == -1) @LauncherType = 0; return; } function script CheckAmmo { if ((@LauncherType == @AmmoType) || (!@LauncherType)) goto L_Return; callfunc "UnequipLater"; goto L_Return; L_Return: @LauncherType = 0; @AmmoType = 0; return; }