Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/10/24 in all areas

  1. Hi. Use a invencible hidden monster, give it use invisible skill and earthquake. Summon it wherever you want. It will look like the main monster casts the skill. Example: \db\re\mob_db.yml - Id: 3038 AegisName: HIDDEN_MOB7 Name: Monster 7 JapaneseName: Hidden Mob 7 Level: 151 Hp: 10000 Attack: 500 Defense: 200 MagicDefense: 100 Str: 100 Agi: 100 Vit: 100 Int: 100 Dex: 400 Luk: 100 AttackRange: 1 SkillRange: 12 ChaseRange: 12 Size: Small Race: Formless Element: Ghost ElementLevel: 4 WalkSpeed: 1000 Class: Boss Modes: Aggressive: true IgnoreMagic: true IgnoreMelee: true IgnoreMisc: true IgnoreRanged: true \db\re\mob_skill_db.txt 3038,Hidden Mob 7@NPC_INVISIBLE,idle,353,1,10000,0,30000,yes,self,always,0,,,,,,, 3038,Hidden Mob 7@NPC_INVISIBLE,attack,353,1,10000,0,30000,yes,self,always,0,,,,,,, 3038,Hidden Mob 7@NPC_HELLBURNING,idle,719,1,10000,0,3000,yes,self,always,0,,,,,,, 3038,Hidden Mob 7@NPC_HELLBURNING,attack,719,1,10000,0,3000,yes,self,always,0,,,,,,, Script prontera,155,145,5 script Test#bssk03 2362,{ npctalk "Walk close to me in the next 10 seconds and you will burn!"; .@event$ = strnpcinfo(0) + "::OnMyMobDead"; monster "prontera",155,148, "#f_w_1",3038,1, .@event$; monster "prontera",158,145, "#f_w_1",3038,1, .@event$; monster "prontera",155,142, "#f_w_1",3038,1, .@event$; monster "prontera",152,145, "#f_w_1",3038,1, .@event$; sleep 10000; killmonster "prontera", .@event$; npctalk "It's safe now..."; end; OnMyMobDead: end; }
    1 point
  2. Hi. Your clone command is setting the event label in a incorret way. getcharid and setcharid are also showing errors. The remaining code is fine. You can use OnPCDieEvent to trigger the clone death when the player dies. Check the script below. Feel free to ask anything about it. prt_fild01,76,171,5 script Kelly 4_F_KHELLY,{ // Check if the player has already defeated the shadow clone if (ShadowClone_Slain == 1) { mes "[NPC Challenge]"; mes "Congratulations! You have already defeated your own clone."; close; } // Check if the player is fighting the shadow clone if (unitexists(ShadowClone_Slain)) { npctalk "Defeat your own clone to pass this challenge.", strnpcinfo(0), bc_self; end; } mes "[NPC Challenge]"; mes "Hello, adventurer. Are you ready for the next test?"; next; mes "[NPC Challenge]"; mes "To pass this test, you will have to face your greatest weakness: yourself."; next; mes "[NPC Challenge]"; mes "Now, get ready..."; next; mes "[NPC Challenge]"; mes "I have summoned a shadowy clone of you. Only you can see it and defeat it."; next; mes "[NPC Challenge]"; mes "Defeat your own clone to pass this challenge."; close2; // Get the name of the player interacting with the NPC set .@player_name$, strcharinfo(0); // Call the @clone command to summon the shadow clone ShadowClone_Slain = clone("anrydrago", 76, 171, strnpcinfo(0) + "::OnEvilClone_Event", getcharid(0), 0, 0); end; OnEvilClone_Event: if (playerattached() == 0) end; if (killedgid != ShadowClone_Slain) end; mes "[Shadow Clone Event]"; mes "You have defeated your own clone. Congratulations!"; next; // Mark that the player has slain the shadow clone //setcharid(0, "ShadowClone_Slain", 1); ShadowClone_Slain = 1; // Teleport the player to Prontera warp "prontera", 150, 150; close; OnPCDieEvent: if (strcharinfo(3) == strnpcinfo(4) && ShadowClone_Slain > 1 && unitexists(ShadowClone_Slain)) { unitkill ShadowClone_Slain; ShadowClone_Slain = 0; announce strnpcinfo(1) + " : The clone defeated you...", bc_self; } end; }
    1 point
×
×
  • Create New...