In this script how to check to not use the item after it has 100 in skill ?? - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: In this script how to check to not use the item after it has 100 in skill ?? (/Thread-In-this-script-how-to-check-to-not-use-the-item-after-it-has-100-in-skill) |
In this script how to check to not use the item after it has 100 in skill ?? - victorstelzer - 09-08-2012 04:21 AM even without being in gm in skill he makes no use [itemdef i_book_alchemy] NAME=Livro de Magia de Alchemy +3 ID=i_book_open TYPE=t_normal On=@dclick IF (<src.alchemy> > 99) SRC.SYSMESSAGE @036 Voce cospe a pocao em desgosto ... voce ja esta forte para usar a pocao! RETURN 1 ENDIF src.alchemy + = 3 src.anim 17 src.sound snd_spell_gate_travel REMOVE RE: In this script how to check to not use the item after it has 100 in skill ?? - Alias - 09-08-2012 05:13 AM You should use IF (<src.alchemy> > 999) or IF (<src.alchemy> > 99.9) RE: In this script how to check to not use the item after it has 100 in skill ?? - victorstelzer - 09-08-2012 06:47 AM is the problem, use the item only once, the second time you use the item, it does not do anything RE: In this script how to check to not use the item after it has 100 in skill ?? - RanXerox - 09-08-2012 07:09 AM It should not be possible to use it a second time... the REMOVE function should destroy the item and should no longer exist. RE: In this script how to check to not use the item after it has 100 in skill ?? - victorstelzer - 09-08-2012 07:31 AM but if I have 2 book, how do you have any idea? 1 book and would win + 3 would use another book and gets +3 |