Jump to content

ooGubAoo

Members
  • Posts

    55
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

ooGubAoo's Achievements

Metaling

Metaling (6/15)

  • One Year In
  • Collaborator
  • Reacting Well
  • One Month Later
  • First Post

Recent Badges

1

Reputation

1

Community Answers

  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.
×
×
  • Create New...