Вот функции, чтоб легче было пить бутылки. Мож кому нада...
Код
[FUNCTION drink]
if <src.uid>!=<uid>
return 1
endif
if (!strcmpi("<args>","refresh"))&&(<src.restest 1 i_potion_Refresh> )
src.findid.i_potion_Refresh.dclick
return 1
elif (!strcmpi("<args>","t_refresh"))&&(<src.restest 1 i_potion_RefreshTotal> )
src.findid.i_potion_RefreshTotal.dclick
return 1
elif (!strcmpi("<args>","l_cure"))&&(<src.restest 1 i_potion_CureLess> )
src.findid.i_potion_CureLess.dclick
return 1
elif (!strcmpi("<args>","cure"))&&(<src.restest 1 i_potion_Cure> )
src.findid.i_potion_Cure.dclick
return 1
elif (!strcmpi("<args>","g_cure"))&&(<src.restest 1 i_potion_CureGreat> )
src.findid.i_potion_CureGreat.dclick
return 1
elif (!strcmpi("<args>","l_heal"))&&(<src.restest 1 i_potion_HealLess> )
src.findid.i_potion_HealLess.dclick
return 1
elif (!strcmpi("<args>","heal"))&&(<src.restest 1 i_potion_Heal> )
src.findid.i_potion_Heal.dclick
return 1
elif (!strcmpi("<args>","g_heal"))&&(<src.restest 1 i_potion_HealGreat> )
src.findid.i_potion_HealGreat.dclick
return 1
elif (!strcmpi("<args>","nightsight"))&&(<src.restest 1 i_potion_Nightsight> )
src.findid.i_potion_Nightsight.dclick
return 1
elif (!strcmpi("<args>","agility"))&&(<src.restest 1 i_potion_Agility> )
src.findid.i_potion_Agility.dclick
return 1
elif (!strcmpi("<args>","g_agility"))&&(<src.restest 1 i_potion_AgilityGreat> )
src.findid.i_potion_AgilityGreat.dclick
return 1
elif (!strcmpi("<args>","strength"))&&(<src.restest 1 i_potion_Strength> )
src.findid.i_potion_Strength.dclick
return 1
elif (!strcmpi("<args>","g_strength"))&&(<src.restest 1 i_potion_StrengthGreat> )
src.findid.i_potion_StrengthGreat.dclick
return 1
elif (!strcmpi("<args>","invis"))&&(<src.restest 1 i_potion_Invisibility> )
src.findid.i_potion_Invisibility.dclick
return 1
elif (!strcmpi("<args>","l_mana"))&&(<src.restest 1 i_potion_Manaless> )
src.findid.i_potion_Manaless.dclick
return 1
elif (!strcmpi("<args>","mana"))&&(<src.restest 1 i_potion_Mana> )
src.findid.i_potion_Mana.dclick
return 1
elif (!strcmpi("<args>","t_mana"))&&(<src.restest 1 i_potion_ManaTotal> )
src.findid.i_potion_ManaTotal.dclick
return 1
elif (!strcmpi("<args>","blood"))&&(<src.restest 1 i_bottle_blood> )
src.findid.i_bottle_blood.dclick
return 1
endif
[EOF]