Jump to content

ooGubAoo

Members
  • Posts

    55
  • Joined

  • Last visited

Everything posted by ooGubAoo

  1. - script RandomWeaponOption -1,{ OnNPCKillEvent: // ตรวจสอบว่า Monster ดรอปอาวุธหรือไม่ if (getiteminfo(killmonsterloot, 2) == 4) { // เช็คว่าของดรอปเป็นประเภทอาวุธ set .@weapon_id, killmonsterloot; // เก็บ Weapon ID ที่ดรอปจากมอนสเตอร์ set .@option_rows, 1; // เริ่มต้นจำนวนแถว Option // สุ่มจำนวนแถว Option if (rand(100) < 50) set .@option_rows, 2; // โอกาส 50% สำหรับแถวที่ 2 if (rand(100) < 30) set .@option_rows, 3; // โอกาส 30% สำหรับแถวที่ 3 if (rand(100) < 10) set .@option_rows, 4; // โอกาส 10% สำหรับแถวที่ 4 // ตั้งค่าตัวแปรสำหรับ Option setarray .@option_id[0], 0, 0, 0, 0; setarray .@option_value[0], 0, 0, 0, 0; // กำหนด Option ให้กับแถวที่มีโอกาสสำเร็จ for (set .@i, 1; .@i <= .@option_rows; set .@i, .@i + 1) { set .@option_id[.@i - 1], rand(4001, 4035); // สุ่ม Option ID (ตัวอย่าง 4001-4035) set .@option_value[.@i - 1], rand(1, 10); // สุ่มค่า Option (1-10) } // สร้างอาวุธพร้อม Option makeitem2 .@weapon_id, 1, getcharid(CHAR_ID_ACCOUNT), 0, 0, .@option_id[0], .@option_value[0], .@option_id[1], .@option_value[1], .@option_id[2], .@option_value[2], .@option_id[3], .@option_value[3]; dispbottom "คุณได้รับอาวุธพร้อม Option!"; } end; } It Dont Error and Dont work too.
  2. Oh. I must change dispbottom "รับ : "+ .r +" Cash รวม : "+ #CASHPOINTS +" Cash"; } to dispbottom "รับ : "+ .r +" Cash รวม : "+ #CASHPOINTS +" Cash"; and i need kill monster 50 to 1 point but this 1 cash per kill
  3. - script Kill2Cash -1,{ OnNPCKillEvent: #CASHPOINTS = #CASHPOINTS + .@R; dispbottom "รับ : "+ .@R +" Cash รวม : "+ #CASHPOINTS +" Cash"; } end; OnInit: set .@R,50; //cashpoints per kill end; }
  4. Thank you. I will try it too much.
  5. Yes i use this but it dont have EnchantList
  6. When run client it will open this This my code
  7. Thank you very much. And i need GM command to reset reward get new reward for player.
  8. Sorry i cant talk with this NPC
  9. Is it possible to create an NPC for giving out 1 Cash Point when opening a specific Youtube every 1 minute?
  10. When Player deal Can i change currency zeny to cash point for trade only?
  11. Thank You very much. Thank to help every time.
  12. How to change can get item in map izlude
  13. Can i fix map Izlude to get item? I must add what to fix map. Thank you to help.
  14. ooGubAoo

    Item Price

    In DB. - Id: 735 AegisName: Blue_Porcelain Name: Chung Jah Type: Etc Buy: 5000 <<< When Sell NPC Will Sell 50% Sell: 1000 <<< Add this to fix zeny to sell Weight: 500 Flags: BuyingStore: true
  15. Thank you very much. but i will add RandomOptionGroup: 1 every item or can add only one to RandomOptionGroup all item.
  16. I have Set Fail 0 but it can Fail izlude,118,153,3 script สุ่มออฟชั่น 700,{ goto NPC; end; OnInit: //============================== // CURRENCY SETTING // 1 = Zeny // 0 = Cashpoints //============================== set .Currency,1; // Currency to buy random option set .Price,100000; // Prize of random option //============================== // RANDOM OPTION SETTING //============================== set .OverWrite,1; // อนุญาตให้เขียนทับตัวเลือกเสริมเสน่ห์ที่มีอยู่แล้ว ( 0 เพื่อปิดใช้งาน ) set .FailRate,0; // เซ็ตโอกาสล้มเหลว set .MaxOpt,20; // ตัวเลือกไอเท็มสูงสุดที่ผู้เล่นสามารถร่ายมนต์ได้ set .MinOpt,1; // ตัวเลือกไอเท็มขั้นต่ำที่ผู้เล่นสามารถร่ายมนตร์ได้ set .MinValue,1; // ค่าเอฟเฟกต์ตัวเลือกขั้นต่ำ set .MaxValue,20; // ค่าเอฟเฟกต์ตัวเลือกสูงสุด set .MaxIndex,4; // ช่องตัวเลือกสูงสุด (ค่าเริ่มต้นคือ 0 ถึง 4) set .Wait,1; // แถบความคืบหน้าล่าช้าเป็นวินาที // Random option that will not be applied setarray .ignore[0], 86, // RDMOPT_BODY_ATTR_ALL 173, // RDMOPT_HP_DRAIN 174, // RDMOPT_SP_DRAIN 190, // RDMOPT_MDAMAGE_SIZE_SMALL_USER 191, // RDMOPT_MDAMAGE_SIZE_MIDIUM_USER 192, // RDMOPT_MDAMAGE_SIZE_LARGE_USER 193; // RDMOPT_ATTR_TOLERACE_ALL end; NPC: disable_items; mes "[ Keitenai ]"; mes "สวัสดีหนุ่มน้อย!"; mes "ฉันมาจากดินแดนแห่ง"; mes "ห่างไกลออกไปเพื่อแนะนำ"; mes "อุปกรณ์ที่น่าทึ่ง ^FF0000สุ่ม^000000"; mes "ตัวเลือกการร่ายมนตร์"; next; mes "[ Keitenai ]"; mes "ฉันสามารถสร้างอุปกรณ์ของคุณได้"; mes "มีพลังมากขึ้น"; mes "มากกว่าสภาพปัจจุบัน..."; if(.Currency){ mes "เพื่อรับรางวัลจำนวน ^0000FF"+.Price+" Zeny^000000,"; } else { mes "เพื่อรับรางวัลจำนวน ^0000FF"+.Price+" Cashpoints^000000,"; } mes "ฉันจะใช้ ^FF0000RANDOM^000000"; mes "ตัวเลือกเสริมเสน่ห์ให้กับคุณ"; mes "equipment. (^_^)"; next; mes "[ Keitenai ]"; mes "ฉันลืมบอกคุณไปว่า"; mes "มีโอกาส ^FF0000"+.FailRate+"%^000000"; mes "ว่ากระบวนการนี้อาจ ^FF0000ล้มเหลว^000000"; mes "และสูญเสียอุปกรณ์ของคุณไปด้วย"; mes "พร้อมกับการ์ดของมัน..."," "; next; mes "[ Keitenai ]"; mes "ยังอยากจะเอาอยู่ไหม"; mes "ความเสี่ยงของการร่ายมนตร์ด้วย"; mes "^FF0000"+.FailRate+"%^000000 โอกาสที่จะ ^FF0000ล้มเหลว^000000"; mes "และสูญเสียอุปกรณ์ของคุณไปด้วย"; mes "พร้อมกับการ์ดของมัน?"; next; if(select("ไม่นะ! ฉันไม่ต้องการ...:^0000FFฉันจะเสี่ยง! ร่ายมนตร์อุปกรณ์ของฉัน!^000000")==1) goto OnCancel; mes "[ Keitenai ]"; mes "มหัศจรรย์!"; mes "กระบวนการนี้จะใช้เวลา"; mes "ประมาณ ^0000FF"+.Wait+"^000000 วินาที..."; mes "อย่าขยับกล้ามเนื้อในขณะที่"; mes "ฉันกำลังร่ายมนตร์อุปกรณ์ของคุณ!"; close2; setarray .@eq[1], EQI_HEAD_TOP,EQI_ARMOR,EQI_HAND_L,EQI_HAND_R,EQI_GARMENT,EQI_SHOES,EQI_ACC_L,EQI_ACC_R,EQI_HEAD_MID,EQI_HEAD_LOW; for(set .@i,1; .@i<getarraysize(.@eq); set .@i,.@i+1){ if(getequipisequiped(.@eq[.@i])){ set .@menu$,.@menu$+F_getpositionname(.@eq[.@i])+" ~ [ " + getequipname(.@eq[.@i]) + " ]"; set .@equipped,1; } set .@menu$,.@menu$+":"; } set .@part,.@eq[select(.@menu$)]; set .@val,rand(.MinValue,.MaxValue); IgnoreCheck: set .@opt,rand(.MinOpt,.MaxOpt); for(set .@f,1; .@f<getarraysize(.ignore); set .@f,.@f+1) if(.@opt==.ignore[.@f]) goto IgnoreCheck; set .@indx,rand(.MaxIndex); if(!.OverWrite){ if(getequiprandomoption(.@part,4,ROA_ID,getcharid(0))) set .@x4,4; if(getequiprandomoption(.@part,3,ROA_ID,getcharid(0))) set .@x3,3; if(getequiprandomoption(.@part,2,ROA_ID,getcharid(0))) set .@x2,2; if(getequiprandomoption(.@part,1,ROA_ID,getcharid(0))) set .@x1,1; if(getequiprandomoption(.@part,0,ROA_ID,getcharid(0))) set .@x0,0; if(.@indx == 0 && .@x0) if(.@indx==.MaxIndex) goto OnMax; else set .@indx,1; if(.@indx == 1 && .@x1) if(.@indx==.MaxIndex) goto OnMax; else set .@indx,2; if(.@indx == 2 && .@x2) if(.@indx==.MaxIndex) goto OnMax; else set .@indx,3; if(.@indx == 3 && .@x3) if(.@indx==.MaxIndex) goto OnMax; else set .@indx,4; if(.@indx == 4 && .@x4) if(.@indx==.MaxIndex) goto OnMax; } if(.@indx == 4 && (!getequiprandomoption(.@part,3,ROA_ID,getcharid(0)))) set .@indx,3; if(.@indx == 3 && (!getequiprandomoption(.@part,2,ROA_ID,getcharid(0)))) set .@indx,2; if(.@indx == 2 && (!getequiprandomoption(.@part,1,ROA_ID,getcharid(0)))) set .@indx,1; if(.@indx == 1 && (!getequiprandomoption(.@part,0,ROA_ID,getcharid(0)))) set .@indx,0; progressbar "ffff00",.Wait; if(.Currency){ if(Zeny < .Price) goto PriceFail; else set Zeny,Zeny-.Price; } else { if(#CASHPOINTS < .Price) goto PriceFail; else set #CASHPOINTS,#CASHPOINTS-.Price; } // Failed... if(.FailRate > 100) set .FailRate,100; if(rand(100) <= .FailRate) goto OnFailure; // Success!! setrandomoption(.@part,.@indx,.@opt,.@val,.@indx,getcharid(0)); end; OnMax: mes "[ Keitenai ]"; mes "ว้าว! อุปกรณ์ของคุณแล้ว"; mes "เพิ่มตัวเลือกให้สูงสุด"; mes "ช่องร่ายมนตร์!"; mes "ขออภัยแต่ฉันไม่สามารถเพิ่มได้"; mes "มีเสน่ห์อีกต่อไปด้วย"; mes "อุปกรณ์ของคุณ"; close; OnFailure: specialeffect2 EF_PHARMACY_FAIL; mes "[ Keitenai ]"," "; mes "ฉันขอโทษจริงๆ..."," "; mes "^FF0000กระบวนการล้มเหลว..."; mes "ไอเท็มของคุณถูกทำลายแล้ว^000000"; delequip .@part; close; PriceFail: mes "[ Keitenai ]"; mes "นี่มันอะไรกัน?"; mes "คุณล้อเล่นกับฉันเหรอ?"; mes "ขออภัย แต่ฉันไม่ได้ทำงาน"; mes "ฟรี!"; mes "ถ้าเจ้ากลับมาได้"; mes "มีเงินพอที่จะจ่าย"; mes "บริการของฉัน"; close; OnCancel: mes "[ Keitenai ]"; mes "เหมาะกับตัวเอง"; mes "ถ้าเธอช่วยบอกฉันด้วย"; mes "คุณเปลี่ยนใจไปแล้ว"; close; }
  17. If i want to change Old Blue Box . When Open box will can random all item in server. If Open Box then get item equip. This item will have random Option too. Can i do? Thank you to help.
  18. function script Dag { bonus bAllStats,(100); end; } when assassin use 2 dagger stat will over other player. i want effect can use only right hand. Thank you.
  19. i use <ITEM>Red Potion<INFO>501</INFO></ITEM> in iteminfo but when click i will error like this
×
×
  • Create New...