- script buff_cmd -1,{
OnInit:
bindatcmd "buff", strnpcinfo(0)+"::OnCommand";
end;
OnCommand:
.@price = 5000; // ราคาต่อการกดบัฟ
if ( getmapflag(strcharinfo(3),MF_PVP) || getmapflag(strcharinfo(3),MF_BATTLEGROUND) || getmapflag(strcharinfo(3),MF_GVG) ) {
mes "ใช้ไม่ได้ในแผนที่ PVP/BG/WOE";
close;
}
if ( Zeny < .@price ) {
mes "ต้องใช้เงิน "+F_InsertComma(.@price)+"z. ในการกดใช้บัฟ";
close;
}
if ( select("บัฟเลย 5,000z ก็ไหว!","ไม่เอาดีกว่า!")==2 ) {
mes "แค่ 5,000z ก็ยัง ^FF0000งก^000000 เนอะ";
mes "ตีมอนแปปเดียวก็ได้แล้ว";
mes "ฆ่ามอนยังไงก็ได้เงินไปด้วยอยู่แล้ว";
close;
}
Zeny -= .@price;
// บัฟที่ได้
specialeffect2 42;sc_start SC_BLESSING,3600000,10;
specialeffect2 37;sc_start SC_INCREASEAGI,3600000,10;
specialeffect2 112;sc_start SC_KYRIE,3600000,10;
specialeffect2 76;sc_start SC_MAGNIFICAT,3600000,10;
}
mes "จัดไป!";
mes "ขอให้มีความสุขกับการเก็บเลเวล!";
mes "ด้วยความปรารถนาดีจาก TooHard-RO!";
close;
}
but when i change
OnCommand:
.@price = 5000; // ราคาต่อการกดบัฟ
if ( getmapflag(strcharinfo(3),MF_PVP) || getmapflag(strcharinfo(3),MF_BATTLEGROUND) || getmapflag(strcharinfo(3),MF_GVG) ) {
mes "ใช้ไม่ได้ในแผนที่ PVP/BG/WOE";
close;
}
to ------------------------------------------------------------------------
Question
ooGubAoo
I need price from 5000z to 100*lv player
- script buff_cmd -1,{ OnInit: bindatcmd "buff", strnpcinfo(0)+"::OnCommand"; end; OnCommand: .@price = 5000; // ราคาต่อการกดบัฟ if ( getmapflag(strcharinfo(3),MF_PVP) || getmapflag(strcharinfo(3),MF_BATTLEGROUND) || getmapflag(strcharinfo(3),MF_GVG) ) { mes "ใช้ไม่ได้ในแผนที่ PVP/BG/WOE"; close; } if ( Zeny < .@price ) { mes "ต้องใช้เงิน "+F_InsertComma(.@price)+"z. ในการกดใช้บัฟ"; close; } if ( select("บัฟเลย 5,000z ก็ไหว!","ไม่เอาดีกว่า!")==2 ) { mes "แค่ 5,000z ก็ยัง ^FF0000งก^000000 เนอะ"; mes "ตีมอนแปปเดียวก็ได้แล้ว"; mes "ฆ่ามอนยังไงก็ได้เงินไปด้วยอยู่แล้ว"; close; } Zeny -= .@price; // บัฟที่ได้ specialeffect2 42;sc_start SC_BLESSING,3600000,10; specialeffect2 37;sc_start SC_INCREASEAGI,3600000,10; specialeffect2 112;sc_start SC_KYRIE,3600000,10; specialeffect2 76;sc_start SC_MAGNIFICAT,3600000,10; } mes "จัดไป!"; mes "ขอให้มีความสุขกับการเก็บเลเวล!"; mes "ด้วยความปรารถนาดีจาก TooHard-RO!"; close; }
but when i change
OnCommand:
.@price = 5000; // ราคาต่อการกดบัฟ
if ( getmapflag(strcharinfo(3),MF_PVP) || getmapflag(strcharinfo(3),MF_BATTLEGROUND) || getmapflag(strcharinfo(3),MF_GVG) ) {
mes "ใช้ไม่ได้ในแผนที่ PVP/BG/WOE";
close;
}
to ------------------------------------------------------------------------
OnCommand:
.@base_price = 5000; // ราคาพื้นฐานสำหรับการให้บัฟ
.@price = .@base_price * strcharinfo(3);
if ( getmapflag(strcharinfo(3),MF_PVP) || getmapflag(strcharinfo(3),MF_BATTLEGROUND) || getmapflag(strcharinfo(3),MF_GVG) ) {
mes "ใช้ไม่ได้ในแผนที่ PVP/BG/WOE";
close;
}
it not work
please help me
Thank you.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.