Jump to content

ooGubAoo

Members
  • Posts

    55
  • Joined

  • Last visited

Everything posted by ooGubAoo

  1. setitemscript(.@itemIds[.@i], "{ bonus(bMaxHP, 100000); bonus(bCritical, 100); }"); i can use bonus4 in this script? ex bonus4 bAutoSpellOnSkill,"MG_FIREBOLT","MG_FIREBOLT",5,400 to bonus4(bAutoSpellOnSkill,"MG_FIREBOLT","MG_FIREBOLT",5,400) like this setitemscript(.@itemIds[.@i], "{ bonus(bMaxHP, 100000); bonus(bCritical, 100); bonus4(bAutoSpellOnSkill,"MG_FIREBOLT","MG_FIREBOLT",5,400); }");
  2. And 1 Qution If i need 2 bonus. i can put like this ? setitemscript(.@itemIds[.@i], "{ bonus(bMaxHP, 100000),bonus(bCritical, 100); }");
  3. i read in doc to use setarray. i do like this T^T But dont work // Weapon // prontera,160,190,3 script TestBonus 847,{ setarray(.@itemIds[0], 440008, 1102); // ประกาศอาร์เรย์ itemIds ขนาด 2 for (.@i = 0; .@i < getarraysize(.@itemIds); .@i++) { setitemscript(.@itemIds[.@i], "{ bonus(bMaxHP, 100000); }"); } }
  4. Do like this? // Weapon // function script test { setarray .@itemIds[2], 440008, 480058; // ประกาศอาร์เรย์ itemIds ขนาด 2 for (.@i = 0; .@i < getarraysize(.@itemIds); .@i++) { setitemscript .@itemIds[.@i], "bonus2 bMaxHP, 100000;"; } } When run server dont have error. But dont get bonus
  5. - script Free -1,{ // SET TIME OnClock0000: // SET ITEM ID. set .@item_id,501; // SET NUMBER TO GIVE. set .@amout,5; set .@item_name$, getitemname( .@item_id ); do { set .@size, query_sql( "SELECT `account_id` from `char` where `online` = '1' order by `account_id` desc limit "+ ( .@loop *128 ) +", 128", .@account_id ); for( set .@i, 0; .@i < .@size; set .@i, .@i +1 ) { getitem .@item_id, .@amout, .@account_id[.@i]; message rid2name( .@account_id[.@i] ), "ท่านได้ของรางวัลเป็น "+ .@item_name$ +"."; } set .@loop, .@loop +1; } while( .@size ); end; } if i need ti fix player lv 50. When online in game will can get item. Thank you.
  6. This script izlude,139,155,6 script รับซื้อการ์ดขยะ 90,{ mes "[Card Trader]"; mes "สวัสดี, "+strcharinfo(0)+"!"; mes "ฉันจะทำอะไรให้คุณได้บ้าง?"; next; switch(select(" > ขอข้อมูล: > ขายการ์ด: > ร้านค้า (^0055FF"+getd(.Points$)+"^000000): > ออก")) { case 1: mes "[Card Trader]"; mes "คุณพบว่าคุณมี"; mes "การ์ดไร้ประโยชน์ที่วางอยู่รอบๆ?"; mes "ฉันยินดีที่จะถอดมันออก"; mes "มือของคุณ!"; next; mes "[Card Trader]"; mes "ฉันจะให้ ^0055FF"+.Points[0]+" Point"+((.Points[0] == 1)?"":"s")+"^000000 สำหรับแต่ละรายการ"; mes "การ์ดที่คุณให้ฉัน และ"; mes "^0055FF"+.Points[1]+" Points^000000 สำหรับการ์ด MVP"; mes "คุณสามารถแลกเปลี่ยนคะแนนเหล่านั้นได้"; mes "สำหรับรายการในภายหลัง"; mes "ว่าไง.?"; close; case 2: mes "[Card Trader]"; mes "เลือกการ์ดที่คุณ"; mes "ต้องการแลกเปลี่ยน."; if (.Level) { mes " "; mes "ต้องทิ้ง"; mes "โดยมอนสเตอร์ระดับ"; mes .Level+" ขึ้นไป"; } deletearray @sold_nameid[0],getarraysize(@sold_nameid); callshop "card_shop",2; npcshopattach "card_shop"; end; case 3: mes "[Card Trader]"; mes "คุณมี ^0055FF"+getd(.Points$)+"^000000 Point"+((getd(.Points$) == 1)?".":"s."); callshop "card_shop",1; npcshopattach "card_shop"; end; case 4: mes "[Card Trader]"; mes "*หาว*"; mes "แล้วพบกันใหม่!"; close; } OnSellItem: mes "Cards to sell:"; mes "-----------------------------------"; for(set .@i,0; .@i<getarraysize(@sold_nameid); set .@i,.@i+1) if (@sold_nameid[.@i] > 4000 && @sold_nameid[.@i] < 4700) { if (.Level) { query_sql("SELECT `LV` FROM `mob_db` WHERE `DropCardid` = "+@sold_nameid[.@i],.@lv); if (.@lv < .Level) { dispbottom getitemname(@sold_nameid[.@i])+" อยู่ในระดับขั้นต่ำ"; continue; } } set .@card_id[getarraysize(.@card_id)], @sold_nameid[.@i]; set .@card_amt[getarraysize(.@card_amt)], @sold_quantity[.@i]; set .@mvp, compare(.MVP$,""+@sold_nameid[.@i]); mes ((.@mvp)?" ^FF0000":" ^777777")+@sold_quantity[.@i]+"x "+getitemname(@sold_nameid[.@i])+"^000000"; set .@card_total, .@card_total+(@sold_quantity[.@i]*((.@mvp)?.Points[1]:.Points[0])); } deletearray @sold_nameid[0], getarraysize(@sold_nameid); deletearray @sold_quantity[0], getarraysize(@sold_quantity); if (!.@card_id) { mes " ^777777(ไม่มี)^000000"; close; } mes " "; mes "---------- ทั้งหมด: ^0055FF"+.@card_total+" pt.^000000 -------"; next; if(select(" > ^0055FFเสร็จสิ้นการซื้อขาย...^000000: > ^777777ยกเลิก^000000") == 2) { mes "[Card Trader]"; mes "ตกลง..."; close; } for(set .@i,0; .@i<getarraysize(.@card_id); set .@i,.@i+1) delitem .@card_id[.@i],.@card_amt[.@i]; setd .Points$, getd(.Points$)+.@card_total; mes "[Card Trader]"; mes "ทุกอย่างเสร็จเรียบร้อย!"; close; OnBuyItem: for(set .@i,0; .@i<getarraysize(@bought_nameid); set .@i,.@i+1) for(set .@j,0; .@j<getarraysize(.Shop); set .@j,.@j+2) if (@bought_nameid[.@i] == .Shop[.@j]) { set .@cost, .@cost+(.Shop[.@j+1]*@bought_quantity[.@i]); break; } if (.@cost > getd(.Points$)) { mes "[Card Trader]"; mes "คุณมีคะแนนไม่เพียงพอ"; } else { mes "รายการที่ซื้อ:"; mes "-----------------------------------"; for(set .@i,0; .@i<getarraysize(@bought_nameid); set .@i,.@i+1) { getitem @bought_nameid[.@i], @bought_quantity[.@i]; mes " ^777777"+@bought_quantity[.@i]+"x "+getitemname(@bought_nameid[.@i])+"^000000"; } mes " "; mes "---------- ทั้งหมด: ^0055FF"+.@cost+" pt.^000000 -------"; setd .Points$, getd(.Points$)-.@cost; } deletearray @bought_nameid[0], getarraysize(@bought_nameid); deletearray @bought_quantity[0], getarraysize(@bought_quantity); close; OnInit: set .Level,0; // Minimum monster level to trade corresponding cards. set .Points$,"#Card_Points"; // Variable to store points. setarray .Shop[0], // Card Shop items: <ID>,<point cost> 4001,1,4001,1; setarray .Points[0],1,5; // Points per <normal card>,<MVP card> set .MVP$, // List of MVP cards. "4121,4123,4128,4131,4132,4134,4135,4137,4142,4143,4144,4145,4146,4147,4148,4168,4236,"+ "4241,4263,4276,4302,4305,4318,4324,4330,4342,4357,4359,4361,4363,4365,4399,4403,4407"; npcshopdelitem "card_shop",909; for(set .@i,0; .@i<getarraysize(.Shop); set .@i,.@i+2) npcshopadditem "card_shop",.Shop[.@i],.Shop[.@i+1]; end; } - shop card_shop -1,909:-1 When Buy or Sell it will Show How to Fix it? Thank you to help.
  7. Sorry i have disable this NPC now is open thank you
  8. I download original rAthena and run server. When i go to alberta for check NPC ? Why NPC it dont have ?
  9. Oh i think i will use script too mush item. If i put script like this. It will long to finish.
  10. This my script function function script Test { bonus bMaxHP,100; end; } If i need to add item ID to use this function. Ex. i want item ID 1101 and 1102 to use this script. How to add it. Thank you to help.
  11. Sorry. I Dont understand. How to add hateffect?
  12. Link Item : divine-pride.net Item - Costume: Falling Snow When i equip this item it will error like this. Help me. Thank you.
  13. 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.
  14. I need tool convert script eA to rA. Thank you.
  15. Thank you very much. I Love you very very much. How to Press vote or like on you?
  16. Thank you it work. But i need to refine succes 100% every level. How to change Percent to refine. Thank you very much.
  17. I need NPC Refine like this. And must have same item to refine. If Knife[3] Can't refine with Knife[4] Ex. I must have 2 Knife to +1Knife. And must have +1 Knife 2ea to +2Knife. . . . And Must have +9Knife 2ea to +10Knife And Can refine to +20
×
×
  • Create New...