Jump to content

chayjaja

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Location
    Thailand

Recent Profile Visitors

981 profile views

chayjaja's Achievements

Poring

Poring (1/15)

0

Reputation

  1. Thank you very much MR. Metaling you are awesome!!..It's working!!.. PS. Thank you everyone to help me for the script and the others I was sent PM to ask about this problem. /thx
  2. Thank you MR Brian for explain the step to fix but it isn't work and nothing happens not counting the kills. Thank you for help. // ~~~~~ show time left in days, hours, minutes and seconds ~~~~~ function script timeleft__ { set .@left, getarg(0); if ( .@left <= 0 ) return getarg(0); set .@day, .@left / 86400; set .@hour, .@left % 86400 / 3600; set .@min, .@left % 3600 / 60; set .@sec, .@left % 60; return ( ( .@day )?.@day +" day ":"" )+( ( .@day || .@hour )?.@hour +" hour ":"" )+( ( .@day == 0 && ( .@hour || .@min ) )?.@min +" min ":"" )+( ( .@day || .@hour )?"":.@sec +" sec" ); } - script tombstone_dup -1,{ getmapxy .@map$, .@x, .@y, 1; if ( .@x == 0 && .@y == 0 ) end; set .@id, atoi( strnpcinfo(2) ); mes "[ ^ff0000Tomb^000000 ]"; mes "^999999-:--:--:--:--:--:--:--:--:--:--:-^000000"; mes "^ff0000หลุมศพของ^000000 "+ strmobinfo( 2, .mvpid[.@id] ); mes "^ff0000ถูกกำจัดโดย^000000 "+ .name$[.@id]; mes "^999999-:--:--:--:--:--:--:--:--:--:--:-^000000"; close; Onmvpdead: set .@id, atoi( strnpcinfo(2) ); set .@map$, strcharinfo(3); set .name$[.@id], strcharinfo(0); movenpc strnpcinfo(0), $@tomb_x, $@tomb_y; set .@loop, .respawn; while ( .@loop ) { delwaitingroom strnpcinfo(0); waitingroom callfunc("timeleft__", .@loop ), 0; set .@loop, .@loop -1; sleep 1000; } delwaitingroom strnpcinfo(0); monster .@map$, 0,0, "--ja--", .mvpid[.@id], 1, strnpcinfo(0) +"::Onmvpdead"; movenpc strnpcinfo(0), 0,0; // trigger MVP Ranking script doevent "Auto Ranking System::OnNPCKillEvent"; end; OnInit: if ( strnpcinfo(2) == "" ) { set .respawn, 3650; // seconds to respawn setarray .mvpid[1], 1038; // mob array according to npc index } else { sleep 1; getmapxy .@map$, .@x, .@y, 1; monster .@map$, 0,0, "--ja--", .mvpid[ atoi( strnpcinfo(2) ) ], 1, strnpcinfo(0) +"::Onmvpdead"; } end; } pvp_n_1-5,0,0,0 duplicate(tombstone_dup) Tomb#1_mvp 565 //guild_vs2,0,0,0 duplicate(tombstone_dup) Tomb#2_mvp 565 //guild_vs3,0,0,0 duplicate(tombstone_dup) Tomb#3_mvp 565 //guild_vs4,0,0,0 duplicate(tombstone_dup) Tomb#4_mvp 565 //guild_vs5,0,0,0 duplicate(tombstone_dup) Tomb#5_mvp 565
  3. Thank you again MR Brian. If it's possible please explain about detailed procedures to fix the Tomb script for me. P.S. I'm not good skill for the complex script and sorry for disturb to many time.
  4. Could you please to explain the step to change event label for counting MVP Ranking script. Thank you Mr Brian for helping.
  5. Could you please to help me about the MVP tombstone script and MVP Ranking score. I have the problem about the MVP Ranking script. Everytime to killed the MVP boss (after added the tombstone script into the systems) the score can't record to the NPC Ranking. I don't know what's happen with the both script. But the NPC MVP Ranking score is working with the MVP boss normally respawn all MVP map and the MVP boss born from GM command (@monster mobid). Reference the tombstone link. http://www.eathena.ws/board/index.php?showtopic=273450 P.S. Sorry about my English. (You can see the script on attachment files at below.) Thank you very much for help. Tombstone.txt Ranking2.txt
×
×
  • Create New...