![]() |
skillgain - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: skillgain (/Thread-skillgain) |
skillgain - richm - 09-13-2014 07:38 PM Hi all Hoping someone can point me in the right direction for this... :/ I've overwritten the begging skill, with farming skill, including editing the MULs and .IDX files. Ive added it under class_undeclared also. In game, if I type .set farming 500 or .set 6 500 it works no problems. These are extracts from the scripts.... [SKILL 6] DEFNAME=SKILL_Farming KEY=Farming TITLE=Farmer PROMPT_MSG= DELAY= ADV_RATE=10.0,150.0,600.0 STAT_STR=0 STAT_INT=0 STAT_DEX=0 BONUS_STR=0 BONUS_DEX=0 BONUS_INT=0 BONUS_STATS=0 [SKILLCLASS 0] DEFNAME=Class_undeclared NAME=undeclared STATSUM=350 SKILLSUM=10000.0 STR=175 INT=175 DEX=175 Alchemy=100.0 Anatomy=100.0 AnimalLore=100.0 ItemId=100.0 ArmsLore=100.0 Parrying=100.0 Farming=100.0 ...etc When in game, i've set my farming to 5.0 and using this function, I always get the "Yep" debug message but the farming skill never increases? [FUNCTION f_farm_setrates] IF (<SRC.FARMING> >= 0) && (<SRC.FARMING> < 100) // 0 - 9.9 SRC.SYSMESSAGE @,,1 Yep SRC.SKILLGAIN Farming 1 // HAVE ALSO TRIED SRC.SKILLGAIN 6 1 RETURN 1 ENDIF ...Just wondering what i am doing wrong? Thanks for your help RE: skillgain - kn4tseb - 09-14-2014 02:31 AM have you checked under the skill some triggers like @start ON=@Start serv.log Yep then you might check some other things ON=@Success serv.log <ACTDIFF> ON=@Gain serv.log <ARGN2> then trying using the skill and see what you get. and under what event is your function executed? RE: skillgain - richm - 09-14-2014 08:22 AM Cheers kn4tseb - i did away with the .skillgain in the end as i couldnt get it to work. although i now understand that simply doing src.skillgain alchemy 1 would not work without scripting additional under @gain on the alchemy skill ![]() RE: skillgain - kn4tseb - 09-14-2014 12:45 PM excelent, would you share to us or me what you coded under the @gain trigger? ;D RE: skillgain - Coruja - 09-14-2014 03:32 PM try using SKILLUSEQUICK or SKILLGAIN 6 1, maybe it will work fine |