Salfer Опубликовано 13 мая, 2014 Жалоба Поделиться Опубликовано 13 мая, 2014 (изменено) как поставить условие на кол-во статовПример: если у игрока больше 30 силы, то ....http://ea.dj-yhn.com/index.php?s=gчёт не могу найтинашёл* readparam <number>;This function will return the basic stats of an invoking character, referred toby the parameter number. Instead of a number, you can use a parameter name if itis defined in "db/const.txt".For reference, in there these things are defined:StatusPoint, BaseLevel, SkillPoint, Class, Upper, Zeny, Sex, Weight, MaxWeight,JobLevel, BaseExp, JobExp, NextBaseExp, NextJobExp, Hp, MaxHp, Sp, MaxSp,BaseJob, Karma, Manner, bVit, bDex, bAgi, bStr, bInt, bLukAll of these also behave as variables, but don't expect to be able to just 'set'all of them - some will not work for various internal reasons.// This would return how many status points you haven't spent yetreadparam(9)Using this particular information as a function call is not required. JustputtingStatusPointwill give you the same result, and some of these parameters work just likevariables (i.e. you can 'set Zeny,100' to make the character have 100 zeny,destroying whatever zeny they had before, or 'set Zeny,Zeny+100' to give them100 zeny)You can also use this command to get stat values:readparam(bVit)if(readparam(bVit)<=77) goto L_End;mes "Only people with over 77 Vit are reading this";L_End:close; Изменено 13 мая, 2014 пользователем Salfer Ссылка на комментарий Поделиться на другие сайты Поделиться
botka4aet Опубликовано 13 мая, 2014 Жалоба Поделиться Опубликовано 13 мая, 2014 Так все уже? Ссылка на комментарий Поделиться на другие сайты Поделиться
Salfer Опубликовано 13 мая, 2014 Автор Жалоба Поделиться Опубликовано 13 мая, 2014 пример не работает пришлось через переменнуюset @gdex, readparam(bdex);if( @gdex > 150){mes "Dex > 150"; close; } Ссылка на комментарий Поделиться на другие сайты Поделиться
Рекомендуемые сообщения