//============================================================ // PT支援 Thanks!香流さん // callfunc "ItemdbPartyAssist" // アイテム使用でPT支援(プリ用) // それぞれ覚えてるスキルLvで使用 //------------------------------------------------------------ function script ItemdbPartyAssist { if(Sp < 300){ getitem getarg(0),1; //名前無し dispbottom "SPが足りません。最低300SP必要です。"; end; } set '@name$,strcharinfo(0); //nameにキャラ名代入 set '@map$,getmapname('@name); //map名をキャラ名より引く setarray '@ID[1],29,34,66,67,361; //スキルID、IA・ブレス・IM・サフラ・アスム setarray '@SC[1],12,10,15,16,110; //状態番号、IA・ブレス・IM・サフラ・アスム setarray '@Time[1][1],60,80,100,120,140,160,180,200,220,240; //IA setarray '@Time[2][1],60,80,100,120,140,160,180,200,220,240; //ブレス setarray '@Time[3][1],60,60,60,60,60; //IM setarray '@Time[4][1],30,20,10; //サフラ setarray '@Time[5][1],20,40,60,80,100; //アスム for(set '@j,1; '@j < 6; set '@j,'@j+1) { setarray '@LV['@j],getskilllv('@ID['@j]); //Lv配列に各スキルのレベルを設置?setなんでしょうか…。 } if(Class!=8) { getitem getarg(0),1; //名前無し dispbottom "プリースト専用アイテムです。"; end; } else if(getcharid(1)==0) { getitem getarg(0),1; //名前無し dispbottom "パーティーを作成してください。"; end; } else if('@LV[1]==0 && '@LV[2]==0 && '@LV[3]==0 && '@LV[4]==0 && '@LV[5]==0) { getitem getarg(0),1; //名前無し dispbottom "スキルを覚えていません。取得Lvだけ発動します。"; end; } heal 0,-300; getpartymember getcharid(1); for(set '@i,0; '@i < $@partymembercount; set '@i,'@i+1) { if(getmapname($@partymembername$['@i]) != '@map$) // MAPが違う continue; if(attachrid(getcharid(3,$@partymembername$['@i]))) { if(!checkdead()) { for(set '@j,1; '@j < 6; set '@j,'@j+1) { if('@LV['@j] == 0) continue; sc_start '@SC['@j],('@Time['@j]['@LV['@j]] * 1000),'@LV['@j]; npcskillsupport '@ID['@j],'@LV['@j]; } } } detachrid; } return; }