Jump to content

Mahiro

Members
  • Posts

    65
  • Joined

  • Last visited

Everything posted by Mahiro

  1. if(isequippedcnt(4457) < 3){ bonus2 bAddRace,RC_DemiHuman,30; bonus2 bAddRace,RC_Player_Human,30; } else message strcharinfo(0),"Solo puedes equipar 2x "+getitemname(4457)+"! Tarjeta (s) adicional (es) ha sido deshabilitada."; try
  2. If it works the way you want, great. To reset it, just make sure that when starting the event it uses this here: query_sql "SELECT value FROM acc_reg_num WHERE key = '#CAMPEON'",.@hcv; if(.@hcv) query_sql "DELETE FROM acc_reg_num WHERE key = '#CAMPEON'"; Here: - script HERO_C -1,{ OnCampeon: query_sql "SELECT char_name, value FROM JM_MVPTR ORDER BY value DESC, date DESC LIMIT 5",.@rpname$,.@value; .@npcname$ = "[ HERO MVP ]"; mes .@npcname$; if(.@value){ mes "El campeon de Hero es "+.@rpname$+" con un total de "+.@value+" Puntos"; switch(select("Reclamar Premio:TOP 5:Cancelar")){ clear; mes .@npcname$; case 1: .@mkname$ = strcharinfo(0); if(.@rpname$ != .@rpname$){ mes" Tu no eres el campeon de HERO."; close; } else { if(#CAMPEON){ mes "Lo siento pero tu ya reclamaste el el permio del Campeon"; close; } mes"toma toma tu premio"; getitem 40300,1; set #CAMPEON , #CAMPEON + 1; close; } case 2: if(!.@value){ mes "Not ranking at moment"; close; } mes " "; for(.@i=0;.@i<getarraysize(.@value);.@i++) mes (.@i+1)+"°/ "+.@rpname$[.@i]+", "+.@value[.@i]+""; close; case 3: mes "Ok, nos vemos"; close; } } end; OnInit: bindatcmd "campeon", strnpcinfo(0)+"::OnCampeon",60,60; end; } I have not tested.
  3. Strange. Search for: query_sql "INSERT INTO JM_MVPTR (name, value, date) VALUES ('"+escape_sql(.@mkname$)+"', 1, NOW()) ON DUPLICATE KEY UPDATE value = value + 1, date = NOW()"; And replace it with: query_sql "INSERT INTO JM_MVPTR (char_name, value, date) VALUES ('"+escape_sql(.@mkname$)+"', 1, NOW()) ON DUPLICATE KEY UPDATE value = value + 1, date = NOW()"; I thought you wanted a new script. You would have to send your complete script to understand. the one I sent you just counts kills on Boss type monsters everywhere in the game, and inserts the information in SQL to a query on the npc you specified to me, apparently you need it to be counting only in one event. Upload your complete script.
  4. - script JM_MVPCP FAKE_NPC,{ OnNPCKillEvent: if(getmonsterinfo(killedrid,MOB_MVPEXP)){ .@mkname$ = strcharinfo(0); query_sql "INSERT INTO JM_MVPTR (name, value, date) VALUES ('"+escape_sql(.@mkname$)+"', 1, NOW()) ON DUPLICATE KEY UPDATE value = value + 1, date = NOW()"; dispbottom "You gained 1 point for killing an MvP."; } end; } - script JM_MVPTR FAKE_NPC,{ .@npcname$ = "[ TOP MvP ]"; query_sql "SELECT name, value FROM JM_MVPTR ORDER BY value DESC, date DESC LIMIT 1",.@rpname$,.@value; mes .@npcname$, " "; if(.@value){ mes "Player: "+.@rpname$, (.@value>1? "Points: ":"Point: ")+.@value; close; } else { mes "There is no top MVP at the moment."; close; } end; OnInit: query_sql "CREATE TABLE IF NOT EXISTS JM_MVPTR (char_name VARCHAR(50) UNIQUE, value FLOAT, date DATETIME)"; end; } prontera,100,100,4 duplicate(JM_MVPTR) TOP MvP#prt 565 Remove everything I asked you to add and add the one above. See if it works correctly. Try using smaller text fonts here in rAthena. It doesn't look good on my screen.
  5. Show the complete code the way it is there. Here it works fine.
  6. If it's the healing npc that is in rathena-master\npc\custom, just go to 20: .@Delay = 0; // Heal delay, in seconds In case it isn't. Show me your.
  7. - script JM_MVPTR FAKE_NPC,{ .@npcname$ = "[ TOP MvP ]"; query_sql "SELECT name, value, date FROM JM_MVPTR ORDER BY value DESC, date DESC LIMIT 1",.@rpname$,.@value; mes .@npcname$; if(.@value){ mes "Player: "+.@rpname$, (.@value>1? "Points ":"Point: ")+.@value; close; } else { mes "There is no top MVP at the moment."; close; } end; OnInit: query_sql "CREATE TABLE IF NOT EXISTS JM_MVPTR (char_name VARCHAR(50) UNIQUE, value FLOAT, date DATETIME)"; end; } prontera,100,100,4 duplicate(JM_MVPTR) TOP MvP#prt 565 I think there's an issue with #HEROPOINT; it belongs to the account, and there are multiple characters in the account. I wrote this script quickly, so it's good to test it as I'm not sure if it will work correctly. The SQL table will be imported automatically once the NPC is added to the game. Below is what you should add in place of #HEROPOINTS: .@mkname$ = strcharinfo(0); query_sql "INSERT INTO JM_MVPTR (name, value, date) VALUES ('"+scape_sql(.@mkname$)+"', 1, NOW()) ON DUPLICATE KEY UPDATE value = value + 1, date = NOW()"; That English was from a correction tool, haha. If you need anything, just let me know
  8. @Emistry Actually I should add in clif.cpp too. Its working but not 100% Im testing it yet.
  9. Could someone give me a little help here? I manage to make the rune equip in the last slot, and also replace it if there is already a rune there, however when the other common slots are already occupied, it doesn't even open the window to insert a rune, or replace the current one. itemdb.hpp pc.cpp
  10. It depends. I have the same problem here, but when I move the grf to my game folder and indicate it in the .INI it runs, unlike some hexeds that run with the grf in any directory. Maybe thats your problem. At first I thought it was a problem with Windows, missing some files, and maybe it is, but the solution was very simple, it only took me a while to realize.
  11. Thanks, I took a long time on this. It worked here.
  12. - script test#1 FAKE_NPC,{ OnTest: .@name$ = "Mahiro"; callfunc ("carnage_winner", .@name$); end; OnInit: bindatcmd "test",strnpcinfo(3)+"::OnTest",0; end; } function script carnage_winner { if(isloggedin(getcharid(3, getarg(0)))){ announce "Online",8; } else { announce "Offline",8; } return; } The error is similar to this topic( ). I've redone it several times but I keep getting the error. It should show an offline ad and no error. [Error]: buildin_getcharid: Player with nick 'Kappacitado' is not found.
  13. in all that I enter I am disconnected and/or the permanent screen is locked, and no command works, after some time it is informed that I am AFK. ¹ I get the icon that I'm the leader but I'm not screened for the map in question, I'm still on the map I was on. After some time it is informed that I will be kicked for being AFK, and I'm still stuck and on the same screen. Nothing works before and after. There are no errors in the log. ² I used @goto to see if the locked character went to the event map, and yes he did, but he is not there visibly, he literally disappears visually. ³ rAthena downloaded this month.
  14. { sc_start4 SC_KAITE,INFINITE_TICK,7,0,0,1; },{ sc_end SC_KAITE; }
  15. Job_Wizard and Job_Assassin what comes after is already identified, unless you want to specify then use _.
  16. there are four variables that have not been set
  17. f(BaseJob == Job_Blacksmith){ .@to_class = 4100; } // here if(BaseJob == Job_Alchemist){ .@to_class = 4107; } // here in red job name, and in blue baby 3rd class id. The line is the same just copy one of them and repeat below until the desired result.
  18. In this case you need to do similar to the case above: you need to identify the ID of the baby you want and repeat the process.
  19. It probably still works. JM_bonus_bNoDispell.diff
  20. Be clearer. Which classes exactly are not working correctly. For me it works fine on all.
  21. I didnt quite understand some things, but I believe this is it.
  22. https://rathena.org/board/topic/124980-skill-delay-animation-is-not-displaying/#comment-382262 I dont know if youre in the right area. I'm having the same issue as the thread in the link, I have an old emulator here and the animation normally shows what leads me to believe its not the data folder. Could someone point out whats going on?
×
×
  • Create New...