rongmauhong

Members
  • Content Count

    64
  • Avg. Content Per Day

    0
  • Joined

  • Last visited

  • Days Won

    1

rongmauhong last won the day on December 14 2018

rongmauhong had the most liked content!

Community Reputation

10 Good

About rongmauhong

  • Rank
    Santa Poring

Profile Information

  • Gender
    Male
  • Github
    teededung

Contact Methods

  • Discord
    tee#6313

Recent Profile Visitors

393 profile views
  1. Yes, you can do it by `gettime` function Change OnClock2100: hideoffnpc "Daily Item Sale"; end; to OnClock2100: [email protected] = gettime(DT_DAYOFWEEK); if ([email protected] == WEDNESDAY || [email protected] == SUNDAY) { hideoffnpc "Daily Item Sale"; } end;
  2. Hi, this script from rA repo and it is still in progress https://github.com/rathena/rathena/pull/3990
  3. Hi, try this prontera,150,150,6 script Daily Item Sale 100,{ mes "Hi"; next; if(select("Sale!:All items") == 2) { for(set [email protected],0; [email protected] < getarraysize(.TradeID); set [email protected], [email protected] +1){ if(.TradeID[[email protected]] != 0) { set [email protected]$, [email protected]$ + "^0000FF "+getitemname(.TradeID[[email protected]])+" ^000000 x "+.TradeCount[[email protected]]+" x "+.TradeItemsAmm[[email protected]]+""; set [email protected]$, [email protected]$ + ":"; } } set [email protected], select([email protected]$) - 1; if(.TradeCount[[email protected]] < 1) { mes "I don't have this item."; close; } mes "Do you want buy it?"; mes "I need - "+getitemname(.TradeItemsReq[[email protected]]); mes " x"+.TradeItemsAmm[[email protected]]; next; if(countitem(.TradeItemsReq[[email protected]]) < .TradeItemsAmm[[email protected]]) { mes "Where is my "+getitemname(.TradeItemsReq[[email protected]]); close; } delitem .TradeItemsReq[[email protected]], .TradeItemsAmm[[email protected]]; getitem .TradeID[[email protected]], 1; .TradeCount[[email protected]] -= 1; close; } for(set [email protected],0; [email protected] < getarraysize(.TodaySale); set [email protected], [email protected] +1){ if(.TodaySale[[email protected]] != 0) { set [email protected]$, [email protected]$ + "^0000FF "+getitemname(.TodaySale[[email protected]])+" ^000000 x "+.TodayCount[[email protected]]+" x "+.TradeItemsAmm[[email protected]]+""; set [email protected]$, [email protected]$ + ":"; } } set [email protected], select([email protected]$) - 1; if(.TodayCount[[email protected]] < 1) { mes "I don't have this item."; close; } mes "Do you want buy it?"; mes "I need - "+getitemname(.TradeItemsReq[[email protected]]); mes " x"+.TradeItemsAmm[[email protected]]; next; if(countitem(.TradeItemsReq[[email protected]]) < .TradeItemsAmm[[email protected]]) { mes "Where is my "+getitemname(.TradeItemsReq[[email protected]]); close; } delitem .TradeItemsReq[[email protected]], .TradeItemsAmm[[email protected]]; getitem .TodaySale[[email protected]], 1; .TodayCount[[email protected]] -= 1; close; OnInit: setarray .TradeID[0], 12210, 14533, 14545, 7619, 7620, 7227, 7228, 7229, 7230; //your cards id setarray .TradeCount[0], 5, 5, 5, 3, 3, 3, 2, 1, 3; //card count setarray .TradeItemsReq[0], 30002, 30002, 30002, 30002, 30002, 30002, 30002, 30002, 30002; //pod, poring coin, event ticket setarray .TradeItemsAmm[0], 1, 1, 1, 1, 1, 1, 1, 1, 1; // amount of ^ items for(.i = 0; .i < 5; .i ++) { // 5 items if(.TradeID[.i] != 0) { .TodaySale[.i] += .TradeID[rand(getarraysize(.TradeID))]; .TodayCount[.i] += .TradeCount[rand(getarraysize(.TradeCount))]; } } hideonnpc "Daily Item Sale"; end; OnClock0000: for(.i = 0; .i < 5; .i ++) { // 5 items if(.TradeID[.i] != 0) { .TodaySale[.i] += .TradeID[rand(getarraysize(.TradeID))]; .TodayCount[.i] += .TradeCount[rand(getarraysize(.TradeCount))]; } } end; OnClock2100: hideoffnpc "Daily Item Sale"; end; OnClock2115: hideonnpc "Daily Item Sale"; end; }
  4. Hi, you can choose 2018-06-20 or 2018-06-21 exe
  5. Hi, let's try changing to a new one... 21018,Lindy_Hop,Lindy Hop,5,20,,3400,340,,1,2,0x00004082,56,2,34,4,170,1,3,{ [email protected] = getrefine(); bonus2 bAddClass,Class_All,[email protected]/2; bonus bAspdRate,[email protected]; bonus bUnbreakableWeapon; },{},{}
  6. - script respawnMvp -1,{ OnInit: setarray .mob_id[0],1002,1857,1031,1113,1613,1836; set .size, getarraysize(.mob_id); set .random, rand(.size); set .amount, 1; // amount of monster spawned set .monster, .mob_id[.random]; // Spawn MVP donpcevent "respawnMvp::OnSpawn"; end; OnSpawn: if (mobcount("prontera", "respawnMvp::OnKill") < 1) { monster "prontera",154,172,getmonsterinfo(.monster, 0), .monster, .amount, "respawnMvp::OnKill"; announce "O MVP "+getmonsterinfo(.monster, 0)+" acabou de nascer!",0; } end; OnKill: // If the mob dies // Announce announce "O MVP "+getmonsterinfo(.monster, 0)+ " foi eliminado "+ (Sex?"pelo":"pela")+" "+ (Sex?"jogador":"jogadora")+" "+strcharinfo(0)+".",0; // Wait 10 seconds sleep 10000; // Spawn MVP again donpcevent "respawnMvp::OnSpawn"; end; } Hello, please check this
  7. Hi, try this script - script respawnMvp -1,{ OnInit: setarray .mob_id[0],1511; set .size, getarraysize(.mob_id); set .random, rand(.size); set .amount, 1; // amount of monster spawned set .monster, .mob_id[.random]; while (true) { if (mobcount("prontera", "respawnMvp::OnKill") < 1) { monster "prontera",154,172,getmonsterinfo(.monster, 0), .monster, .amount, "respawnMvp::OnKill"; announce "O MVP "+getmonsterinfo(.monster, 0)+" acabou de nascer!",0; } sleep 60000; } end; OnKill: announce "O MVP "+getmonsterinfo(.monster, 0)+ " foi eliminado "+ (Sex?"pelo":"pela")+" "+ (Sex?"jogador":"jogadora")+" "+strcharinfo(0)+".",0; sleep 1000; monster "prontera",154,172,getmonsterinfo(.monster, 0), .monster, .amount, "respawnMvp::OnKill"; end; }
  8. Hi, Edit this file <Your RO>\data\luafiles514\lua files\navigation\navi_npc_krpri.lub
  9. https://stackoverflow.com/questions/2451417/whats-pros-and-cons-putting-javascript-in-head-and-putting-just-before-the-bod
  10. Hi, You have this error because missing 'end' for the 'close2' command, just put 'end' after 'close2' or using 'close3' Fixed script test.txt
  11. Hi, this crash this crash related to state icon. If you use ROenglishRE from zackdreaver open data/luafiles514/lua files/stateicon/stateiconinfo.lub change StateIconList[EFST_IDs.EFST_GEFFEN_MAGIC1] = { haveTimeLimit = 1, posTimeLimitStr = 3, descript = { { "Increases physical damage against Demihuman monster" }, { "%s", COLOR_TIME } } } StateIconList[EFST_IDs.EFST_GEFFEN_MAGIC2] = { haveTimeLimit = 1, posTimeLimitStr = 3, descript = { { "Increases magical damage against Demihuman monster" }, { "%s", COLOR_TIME } } } StateIconList[EFST_IDs.EFST_GEFFEN_MAGIC3] = { haveTimeLimit = 1, posTimeLimitStr = 3, descript = { { "Reduces damage taken from Demihuman monster" }, { "%s", COLOR_TIME } } } to StateIconList[EFST_IDs.EFST_GEFFEN_MAGIC1] = { haveTimeLimit = 1, posTimeLimitStr = 2, descript = { { "Increases physical damage against Demihuman monster" }, { "%s", COLOR_TIME } } } StateIconList[EFST_IDs.EFST_GEFFEN_MAGIC2] = { haveTimeLimit = 1, posTimeLimitStr = 2, descript = { { "Increases magical damage against Demihuman monster" }, { "%s", COLOR_TIME } } } StateIconList[EFST_IDs.EFST_GEFFEN_MAGIC3] = { haveTimeLimit = 1, posTimeLimitStr = 2, descript = { { "Reduces damage taken from Demihuman monster" }, { "%s", COLOR_TIME } } }
  12. Your campfire script used old getmapxy constant, the new is *getmapxy("<variable for map name>",<variable for x>,<variable for y>{,<type>,"<search value>"}) Type is the type of object to search for: BL_PC - Character object (default) BL_NPC - NPC object BL_PET - Pet object BL_HOM - Homunculus object BL_MER - Mercenary object BL_ELEM - Elemental object Update all your scripts where it contains getmapxy([email protected]$, [email protected], [email protected], UNITTYPE_***) You can find out more from https://github.com/rathena/rathena/pull/3890
  13. Hi community! I would ask for a mapflag to make player's pet return to egg and the player can not hatch a pet egg. Thanks.
  14. Hi, you need to change UNITTYPE_PC to BL_PC and UNITTYPE_NPC to BL_NPC
  15. Hi These constants was deprecated. You need to change E_DOTS to ET_THINK E_SWT to ET_SWEAT E_PAT to ET_GOODBOY You can see the full list at tools/convert_emotions.py