Jump to content

qtdan

Members
  • Posts

    183
  • Joined

  • Last visited

  • Days Won

    1

qtdan last won the day on December 31 2021

qtdan had the most liked content!

About qtdan

  • Birthday 12/21/1995

Profile Information

  • Gender
    Male
  • Location
    Bulacan
  • Server
    PrestigeRO

Recent Profile Visitors

3,171 profile views

qtdan's Achievements

  1. @ohyono can we have corrected on latest hairstyles? On Lastest rAthena Git Update 2021-11-03 Client even patch with Shared Body 1 still having this error but not dragon_knight_32, its body_32 error.
  2. @Rynbef L_monthly_reset_statue: OnTimer1200000: //OnClock0000: // refresh every 1 second for debug, change this to 30 seconds or 1 minute for ([email protected] = 0; [email protected] < 5; [email protected]) { setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_HEADTOP, 0; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_HEADMIDDLE, 0; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_HEADBOTTOM, 0; } [email protected]$ = "SELECT `char`.`char_id`, `char`.`guild_id`, `char`.`name`, `char`.`class`, `char`.`sex`, `char`.`hair`, `char`.`hair_color`, `char`.`clothes_color`, `char`.`body`, `char`.`head_top`, `char`.`head_mid`, `char`.`head_bottom`, `pvpladder_epic`.`kills`, `pvpladder_epic`.`deaths` "; [email protected]$ += "FROM `char` RIGHT JOIN `pvpladder_epic` ON `char`.`char_id` = `pvpladder_epic`.`char_id` "; [email protected]$ += "ORDER BY `kills` DESC LIMIT 5"; [email protected] = query_sql([email protected]$, [email protected], [email protected]_id, [email protected]$, [email protected], [email protected]$, [email protected], [email protected]_color, [email protected]_color, [email protected], [email protected]_top, [email protected]_mid, [email protected]_bottom, [email protected], [email protected]); for ([email protected] = 0; [email protected] < [email protected]; [email protected]) { setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_CLASS, [email protected][[email protected]]; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_SEX, ([email protected]$[[email protected]] == "F")?SEX_FEMALE:SEX_MALE; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_HAIRSTYLE, [email protected][[email protected]]; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_HAIRCOLOR, [email protected]_color[[email protected]]; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_CLOTHCOLOR, [email protected]_color[[email protected]]; //setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_BODY2, [email protected][[email protected]]; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_HEADTOP, [email protected]_top[[email protected]]; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_HEADMIDDLE, [email protected]_mid[[email protected]]; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_HEADBOTTOM, [email protected]_bottom[[email protected]]; setnpcdisplay "pvp_ladder_statues#"+([email protected] +1), [email protected]$[[email protected]]; .statue_name$[[email protected] +1] = [email protected]$[[email protected]]; .statue_guild$[[email protected] +1] = getguildname([email protected]_id[[email protected]]); .statue_kills[[email protected] +1] = [email protected][[email protected]]; .statue_deaths[[email protected] +1] = [email protected][[email protected]]; } for ([email protected] = [email protected]; [email protected] < 5; [email protected]) setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_CLASS, HIDDEN_WARP_NPC; // HIDDEN_NPC = 111, HIDDEN_WARP_NPC = 139 if (.start) initnpctimer; else stopnpctimer; end; here on this line setunitdata .pvp_ladder_statues[[email protected] +1],UNPC_SEX,([email protected]$[[email protected]] == "F")?SEX_FEMALE:SEX_MALE; we are talking about is when the statue are appearing at the map instead pulling out the gender of the character, whenever its a male or female it only shows female.
  3. Happy New Year rAthena, Thanks for Everyone. such a good community. hope we still help each other for so many years. more power rAthena, HAPPY NEW YEAR AGAIN! LETS MAKE 2022 GREAT!!!
  4. Thank youuuu @Rytech early christmas present to us. more power!
  5. @grenat50 Already added without errors but When joining individual nothing happens.
  6. how to set up the item_vending.yaml i can see the item currency but i cant buy it,
  7. L_monthly_reset_statue: OnTimer1200000: //OnClock0000: // refresh every 1 second for debug, change this to 30 seconds or 1 minute for ([email protected] = 0; [email protected] < 5; [email protected]) { setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_HEADTOP, 0; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_HEADMIDDLE, 0; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_HEADBOTTOM, 0; } [email protected]$ = "SELECT `char`.`char_id`, `char`.`guild_id`, `char`.`name`, `char`.`class`, `char`.`sex`, `char`.`hair`, `char`.`hair_color`, `char`.`clothes_color`, `char`.`body`, `char`.`head_top`, `char`.`head_mid`, `char`.`head_bottom`, `pvpladder_epic`.`kills`, `pvpladder_epic`.`deaths` "; [email protected]$ += "FROM `char` RIGHT JOIN `pvpladder_epic` ON `char`.`char_id` = `pvpladder_epic`.`char_id` "; [email protected]$ += "ORDER BY `kills` DESC LIMIT 5"; [email protected] = query_sql([email protected]$, [email protected], [email protected]_id, [email protected]$, [email protected], [email protected]$, [email protected], [email protected]_color, [email protected]_color, [email protected], [email protected]_top, [email protected]_mid, [email protected]_bottom, [email protected], [email protected]); for ([email protected] = 0; [email protected] < [email protected]; [email protected]) { setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_CLASS, [email protected][[email protected]]; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_SEX, ([email protected]$[[email protected]] == "F")?SEX_FEMALE:SEX_MALE; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_HAIRSTYLE, [email protected][[email protected]]; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_HAIRCOLOR, [email protected]_color[[email protected]]; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_CLOTHCOLOR, [email protected]_color[[email protected]]; //setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_BODY2, [email protected][[email protected]]; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_HEADTOP, [email protected]_top[[email protected]]; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_HEADMIDDLE, [email protected]_mid[[email protected]]; setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_HEADBOTTOM, [email protected]_bottom[[email protected]]; setnpcdisplay "pvp_ladder_statues#"+([email protected] +1), [email protected]$[[email protected]]; .statue_name$[[email protected] +1] = [email protected]$[[email protected]]; .statue_guild$[[email protected] +1] = getguildname([email protected]_id[[email protected]]); .statue_kills[[email protected] +1] = [email protected][[email protected]]; .statue_deaths[[email protected] +1] = [email protected][[email protected]]; } for ([email protected] = [email protected]; [email protected] < 5; [email protected]) setunitdata .pvp_ladder_statues[[email protected] +1], UNPC_CLASS, HIDDEN_WARP_NPC; // HIDDEN_NPC = 111, HIDDEN_WARP_NPC = 139 if (.start) initnpctimer; else stopnpctimer; end; OnGMCommandStart: OnMinute00: // configure time //OnMon2000: .start = true; pvpon .map$; deletearray .guild_ownage; initnpctimer; end; OnMinute59: //OnMon2045: .start = true; pvpon .map$; deletearray .guild_ownage; end; L_read: mes "["+ strnpcinfo(1) +"]"; mes "Hello! "+strcharinfo(0)+"."; mes "Join PVP! To Earn Rewards."; mes "Top 15 of the PVP Rankings will sure get an surprise reward."; next; switch(select( "Enter PvP Room", "Show Top 15 Rank", "My Ranking")) { mes "["+ strnpcinfo(1) +"]"; case 1: if (!.start) { if( BaseLevel < 999 || Class == Job_Novice ){ mes "Novice or Below level 999 cant enter."; close; } warp .map$, 0, 0; break; close; } if( BaseLevel < 999 || Class == Job_Novice ){ mes "Novice or Below level 999 cant enter."; close; } switch(rand(2)) { announce strcharinfo(0) +" entered PVP Room",bc_all,0xe57c00; default: warp .map$, 0, 0; break; case 1: warp .map$, 0, 0; break; } if (@dota_sql_kills == 0 && @dota_sql_deaths == 0) query_sql "SELECT `kills`, `deaths` FROM `pvpladder_epic` WHERE `char_id` = "+ getcharid(0), @dota_sql_kills, @dota_sql_deaths; end; case 2: [email protected] = query_sql("SELECT `name`, `kills`, `deaths` FROM `pvpladder_epic` ORDER BY `kills` DESC LIMIT "+ .show_ranking, [email protected]$, [email protected], [email protected]); if ([email protected]) { mes "The ladder currently is empty."; close; } mes "^996600RANK: ^006699NAME ^00AA00[Kills] ^FF0000<Deaths>^000000"; for ([email protected] = 0; [email protected] < [email protected]; [email protected]) mes "^996600"+ ([email protected]+1) +": ^006699"+ [email protected]$[[email protected]] +" ^00AA00["+ [email protected][[email protected]] +"] ^FF0000<"+ [email protected][[email protected]] +">^000000"; close; case 3: if (!query_sql("SELECT `kills`, `deaths`, 1+(SELECT COUNT(1) FROM `pvpladder_epic` t1 WHERE t1.`kills` > t2.`kills`) FROM `pvpladder_epic` t2 WHERE `char_id` = "+ getcharid(0), [email protected], [email protected], [email protected])) { mes "You haven't kill anybody in this month."; close; } mes "Your kills -> "+ [email protected]; mes "Your deaths -> "+ [email protected]; mes "Your current rank -> "+ F_GetNumSuffix([email protected]); close; } end; OnPCKillEvent: if (.gmnokill && getgmlevel() >= .gmnokill) end; if (strcharinfo(3) != .map$) end; [email protected]$ = strcharinfo(0); [email protected] = getcharid(3); [email protected] = getcharid(0); [email protected] = getcharid(2); attachrid killedrid; [email protected]$ = strcharinfo(0); [email protected] = getcharid(3); [email protected] = getcharid(0); [email protected] = getcharid(2); if (@PlayersKilledStreak >= .holyshit) [email protected]$ = "Beyond Godlike"; else if (@PlayersKilledStreak >= .godlike) [email protected]$ = "Godlike"; else if (@PlayersKilledStreak >= .monsterkill) [email protected]$ = "Monster Kill"; else if (@PlayersKilledStreak >= .wickedsick) [email protected]$ = "Wicked Sick"; else if (@PlayersKilledStreak >= .unstoppable) [email protected]$ = "Unstoppable"; else if (@PlayersKilledStreak >= .megakill) [email protected]$ = "Mega-kill"; else if (@PlayersKilledStreak >= .dominating) [email protected]$ = "Dominating"; else if (@PlayersKilledStreak >= .killingspree) [email protected]$ = "Killing Spree"; if (@PlayersKilledStreak >= .killingspree && [email protected] == [email protected]) announce sprintf("%s has ended %s own %s[%d] streak", [email protected]$, (Sex)?"him":"her", [email protected]$, @PlayersKilledStreak), bc_all,0xe57c00; else if (@PlayersKilledStreak >= .killingspree) announce sprintf("%s has ended %s's %s[%d] streak", [email protected]$, [email protected]$, [email protected]$, @PlayersKilledStreak), bc_all,0xe57c00; else if ([email protected] != [email protected]) announce sprintf("%s has pawned %s's head", [email protected]$, [email protected]$), bc_all,0xe57c00; @PlayersKilledStreak = 0; [email protected]_sql_deaths; @dota_multikills = 0; if ([email protected]) .guild_ownage[[email protected]] = 0; if ([email protected] == [email protected]) { query_sql "REPLACE INTO `pvpladder_epic` VALUES ("+ [email protected] +", '"+ escape_sql([email protected]$) +"', "+ @dota_sql_kills +", "+ @dota_sql_deaths +")"; end; } [email protected]_kills = @dota_sql_kills; [email protected]_deaths = @dota_sql_deaths; attachrid killerrid; [email protected]; [email protected]_sql_kills; if (@PlayersKilledStreak == .killingspree) setarray [email protected]$, "killingspree.wav", "is on a KILLING SPREE", "!"; else if (@PlayersKilledStreak == .dominating) setarray [email protected]$, "dominating.wav", "is DOMINATING", "!"; else if (@PlayersKilledStreak == .megakill) setarray [email protected]$, "megakill.wav", "has a MEGA KILL", "!"; else if (@PlayersKilledStreak == .unstoppable) setarray [email protected]$, "unstoppable.wav", "is UNSTOPPABLE", "!!"; else if (@PlayersKilledStreak == .wickedsick) setarray [email protected]$, "wickedsick.wav", "is WICKED SICK", "!!"; else if (@PlayersKilledStreak == .monsterkill) setarray [email protected]$, "monsterkill.wav", "has a MONSTER KILL", "!!"; else if (@PlayersKilledStreak == .godlike) setarray [email protected]$, "godlike.wav", "is GODLIKE", "!!!"; else if (@PlayersKilledStreak >= .holyshit && ((@PlayersKilledStreak - .holyshit) % .continue == 0)) setarray [email protected]$,"holyshit.wav", "is BEYOND GODLIKE",". Someone KILL "+( (Sex)?"HIM":"HER" ) +"!!!!!!"; if (getstrlen([email protected]$[1])) { announce sprintf("%s %s[%d] %s", [email protected]$, [email protected]$[1], @PlayersKilledStreak, [email protected]$[2]), bc_all,0xe57c00; soundeffectall [email protected]$[0], 0, .map$; } [email protected]_multikills; deltimer strnpcinfo(0) +"::OnStreakReset"; addtimer 18000, strnpcinfo(0) +"::OnStreakReset"; query_sql sprintf("REPLACE INTO `pvpladder_epic` VALUES (%d, '%s', %d, %d), (%d, '%s', %d, %d)", [email protected], escape_sql([email protected]$), @dota_sql_kills, @dota_sql_deaths, [email protected], escape_sql([email protected]$), [email protected]_kills, [email protected]_deaths); if ([email protected] && [email protected] != [email protected]) ++.guild_ownage[[email protected]]; [email protected]_multikills = @dota_multikills; sleep 1500; if ([email protected] && [email protected] != [email protected] && .guild_ownage[[email protected]] >= .owned && ((.guild_ownage[[email protected]] - .owned) % .owncontinue == 0)) { announce "The guild ["+ getguildname([email protected]) +"] is OWNING["+ .guild_ownage[[email protected]] +"] !!!", bc_all; soundeffectall "ownage.wav",0,[email protected]$; } sleep 1250; if (!attachrid([email protected])) end; if ([email protected]_multikills == 2) { announce strcharinfo(0) +" just got a Double Kill !", bc_all,0xe57c00; soundeffectall "doublekill.wav", 0, .map$; } else if ([email protected]_multikills == 3) { announce strcharinfo(0) +" just got a Triple Kill !!!", bc_all,0xe57c00; soundeffectall "triplekill.wav", 0, .map$; } else if ([email protected]_multikills == 4) { announce strcharinfo(0) +" just got an Ultra Kill !!!", bc_all,0xe57c00; soundeffectall "ultrakill.wav", 0, .map$; } else if ([email protected]_multikills >= 5) { announce strcharinfo(0) +" is on a Rampage !!!", bc_all,0xe57c00; soundeffectall "rampage.wav", 0, .map$; } end; OnStreakReset: @dota_multikills = 0; end; OnClock0000: if (gettime(DT_DAYOFMONTH) != 1) end; L_Monthly_Reward_Rank: $pvpevent_last_given = atoi(gettime(7) +""+ gettime(6)); [email protected] = query_sql("SELECT `char_id` FROM `pvpladder_epic` ORDER BY `kills` DESC LIMIT "+ .reward_monthly, [email protected]); if ([email protected]) end; for ([email protected] = 0; [email protected] < [email protected]; [email protected]) { setarray [email protected]_itemid, getd(".reward_monthly_for_rank_"+([email protected] +1)+"[1]"), getd(".reward_monthly_for_rank_"+([email protected] +1)+"[3]"); setarray [email protected]_amount, getd(".reward_monthly_for_rank_"+([email protected] +1)+"[0]"), getd(".reward_monthly_for_rank_"+([email protected] +1)+"[2]"); mail [email protected][[email protected]], "PvP Ladder Event", "Monthly PvP Ladder Event Rewards", "Congratulations for being "+ F_GetNumSuffix([email protected] +1) +" Rank on PvP Ladder Event, this is your rewards.", 0, [email protected]_itemid, [email protected]_amount; } query_sql "TRUNCATE `pvpladder_epic`"; goto L_monthly_reset_statue; } function script pvp_ladder_statues { [email protected] = inarray(getvariableofnpc(.pvp_ladder_statues, "PvP Ladder Event"), getnpcid(0)); mes "^996600[TOP "+ [email protected] +"]"; mes "^006699Name : "+ getelementofarray(getvariableofnpc(.statue_name$, "PvP Ladder Event"), [email protected]); [email protected]$ = getelementofarray(getvariableofnpc(.statue_guild$, "PvP Ladder Event"), [email protected]); mes "^00AAAAGuild : "+(([email protected]$ == "null")? "^666666None": [email protected]$); mes " "; mes "^00AA00Kills : ["+ getelementofarray(getvariableofnpc(.statue_kills, "PvP Ladder Event"), [email protected]) +"]"; mes "^FF0000Deaths : <"+ getelementofarray(getvariableofnpc(.statue_deaths, "PvP Ladder Event"), [email protected]) +">"; return; } maintown,253,247,4 script pvp_ladder_statues#1 HIDDEN_WARP_NPC,{ callfunc "pvp_ladder_statues"; end; OnInit: set getvariableofnpc(.pvp_ladder_statues[1], "PvP Ladder Event"), getnpcid(0); end; } maintown,256,247,4 script pvp_ladder_statues#2 HIDDEN_WARP_NPC,{ callfunc "pvp_ladder_statues"; end; OnInit: set getvariableofnpc(.pvp_ladder_statues[2], "PvP Ladder Event"), getnpcid(0); end; } maintown,259,247,4 script pvp_ladder_statues#3 HIDDEN_WARP_NPC,{ callfunc "pvp_ladder_statues"; end; OnInit: set getvariableofnpc(.pvp_ladder_statues[3], "PvP Ladder Event"), getnpcid(0); end; } maintown,262,247,4 script pvp_ladder_statues#4 HIDDEN_WARP_NPC,{ callfunc "pvp_ladder_statues"; end; OnInit: set getvariableofnpc(.pvp_ladder_statues[4], "PvP Ladder Event"), getnpcid(0); end; } maintown,265,247,4 script pvp_ladder_statues#5 HIDDEN_WARP_NPC,{ callfunc "pvp_ladder_statues"; end; OnInit: set getvariableofnpc(.pvp_ladder_statues[5], "PvP Ladder Event"), getnpcid(0); end; } HERE
  8. can you correct the code?
  9. setunitdata .ladder_statues[[email protected] +1], UNPC_SEX, ([email protected]$[[email protected]] == "F")?SEX_FEMALE:SEX_MALE; its only getting female all of the statues are always female.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.