Jump to content

Emistry

Forum Moderator
  • Content Count

    9,392
  • Avg. Content Per Day

    3
  • Joined

  • Last visited

  • Days Won

    219

Everything posted by Emistry

  1. refer to the value you have set in your lua files/datainfo/accessoryid.lub
  2. OnPCDieEvent: [email protected] = killerrid; if (strcharinfo(3) == .map$ && [email protected] != getcharid(3)) { [email protected]_gold_point = #GOLDPOINTS; #GOLDPOINTS = 0; dispbottom "You died, you lost all the points."; if (attachrid([email protected])) { #GOLDPOINTS += [email protected]_gold_point; dispbottom "You gained "[email protected]_gold_point+" gold points."; } } end;
  3. setarray [email protected],100,100,100,100,100,100,100,100,0,0,0,0,0,0,0,0,0,0,0,0; increase/decrease the value ..... (value / sum_of_value * 100%) = your rate
  4. [1234] = { Title = "Sample Quest", IconName = "ico_ep.bmp", Description = { "Go to <NAVI>[prontera]<INFO>prontera,155,181,0,101,0</INFO></NAVI>." }, Summary = "Sample Quest for navigation." }, edit your OnGoingQuestinfoList LUB file.
  5. set [email protected], 50 - $giveaway; mes [email protected] + " Items left."; change to mes "Give Away: "+ $giveaway;
  6. better formatting and readability for each fields.
  7. - script Guarda -1,{ OnInit: .map$ = "prtg_cas01"; .enable_if_woe_on = 1; setmapflag .map$, mf_loadevent; end; OnPCLoadMapEvent: if (strcharinfo(3) == .map$) { [email protected]_gid = getcastledata(.map$, 1); [email protected] = getcharid(2); if ([email protected]_gid && [email protected] == [email protected]_gid) { dispbottom "[Sala do Clã]: Seja bem vindo a Sala do Clã"; } else { dispbottom "[Sala do Clã]: Apenas os Guerreiros que conquistaram o Castelo de Kriemhild podem estar neste lugar!"; if (.enable_if_woe_on && (agitcheck() || agitcheck2() agitcheck3())) { // allow during woe if enabled. } else { warp "kalindor",146,169; } } } end; }
  8. change query_sql( "SELECT `login`.`account_id` FROM `login` INNER JOIN `char` ON `char`.`account_id` = `login`.`account_id` WHERE `last_ip` = '"+escape_sql( getcharip() )+"' AND `char`.`online` = 1 AND `login`.`account_id` NOT IN ( SELECT `account_id` FROM `autotrade_merchants` )",[email protected] ); to query_sql( "SELECT `login`.`account_id` FROM `login` INNER JOIN `char` ON `char`.`account_id` = `login`.`account_id` WHERE `last_ip` = '"+escape_sql( getcharip() )+"' AND `char`.`online` = 1 AND `login`.`account_id` NOT IN ( SELECT `account_id` FROM `vendings` )",[email protected] );
  9. There are 2 reasons: you didn't compiled it, or failed to compile it you compiled it but your antivirus removed the exe
  10. find the Go function and replace it.
  11. your script, just redundancy, and NPC may not show upon reloaded at certain hours. performance-wise, maybe its is lightly better, since it do much less computation than mine, but its too less to be notice.
  12. you should change those for(set .i,0; .i < getarraysize(.idc);set .i,.i+1){ for(set .x,1; .x <= 10;set .x,.x+1){ if(getequipid(.x) == .idc[.i]){ unequip .x; } } } into for(set [email protected],0; [email protected] < getarraysize(.idc);set [email protected],[email protected]+1){ for(set [email protected],1; [email protected] <= 10;set [email protected],[email protected]+1){ if(getequipid([email protected]) == .idc[[email protected]]){ unequip [email protected]; } } } anyway, i think you could try something like this, which should work too. OnPCLoginEvent: if (!getgmlevel()) { if (isequippedcnt(30267,30268,30269,30285,30286,30287,30282,30283,30284,30276,30277,30278,30264,30265,30266,30273,30274,30275,30270,30271,30272,30279,30280,30281,30289,30302,30316,30261,30262,30263,30310,30311,30312,30295,30296,30297,30305,30293,30290,30303,30299,30291,30300,30298,30292,30308,30309,30294,30063,30064,30065,30066,30067,30068,30301,30304,30288,30306,30307,30317,30314,30315,30313,30318,30319,30320,30321,30322,30323,30197,30198,30199,30200) > 0) { nude; } } end;
  13. OnInit: OnTimer1000: initnpctimer; delwaitingroom; waitingroom "Status: "+( (getmapusers(.yourmap$) == 0)?"No Player":"Having Player"),0; end; avoid using those infinite while(1) tricks... its not resource friendly...
  14. http://nemo.herc.ws/clients/#2018
  15. prontera,139,219,3 script NPC 99,{ mes "helo"; close; OnInit: OnMinute00: if ((gettime(DT_DAYOFWEEK) == SUNDAY && gettime(DT_HOUR) >= 18 && gettime(DT_HOUR) < 19) // Day A 1800~1900 || (gettime(DT_DAYOFWEEK) == MONDAY && gettime(DT_HOUR) >= 19 && gettime(DT_HOUR) < 20) // Day B 1900~2000 ) { hideoffnpc strnpcinfo(0); } else { hideonnpc strnpcinfo(0); } end; }
  16. if (checkquest(xxxxx) != -1) { erasequest xxxxx; } find the quest id that are used for quest cooldown.
  17. - script Guarda -1,{ OnPCLoadMapEvent: if (!agitcheck() && !agitcheck2() && !agitcheck3()) { [email protected] = GetCastleData("prtg_cas01",1); if (getcharid(2) == [email protected]) { dispbottom "[Sala do Clã]: Seja bem vindo a Sala do Clã"; } else { dispbottom "[Sala do Clã]: Apenas os Guerreiros que conquistaram o Castelo de Kriemhild podem estar neste lugar!"; warp "kalindor",146,169; } } end; } gp mapflag loadevent
  18. function Go { if ((getmapflag(getarg(0), mf_gvg_castle) || getmapflag(getarg(0), mf_gvg_dungeon)) && (getcharid(2) == 0 || getcharid(2) != getcastledata(getarg(0), 1)) ) { mes "^0000FFAgente Warp^000000"; cutin "jpn_mid03",2; mes "You are not an owner of any this Casttle, or member of any guild who owns one."; next; mes "^0000FFAgente Warp^000000"; mes "Conquest the castle, or join a guild who owns one in order to access!"; close3; } else { set lastwarp$, getarg(0); set lastwarpx, getarg(1,0); set lastwarpy, getarg(2,0); warp getarg(0),getarg(1,0),getarg(2,0); } end; }
  19. getd( "Quest"+strnpcinfo(2) find all of it, and change to getd( "#Quest"+strnpcinfo(2) Work just fine using the default script in my test server. https://i.imgur.com/NKVDfuZ.png
  20. Emistry

    Npc fixed

    https://github.com/rathena/rathena/blob/master/doc/mob_db_mode_list.txt#L36 add the immune knockback mode to your monster.
  21. find the skill info lua file and fix the attack range data of these skills
  22. another simpler approach that you can try. function Go { set lastwarp$, getarg(0); set lastwarpx, getarg(1,0); set lastwarpy, getarg(2,0); warp getarg(0),getarg(1,0),getarg(2,0); end; } change into function Go { if (getmapflag(getarg(0), mf_gvg_castle) && (getcharid(2) == 0 || getcharid(2) != getcastledata(getarg(0), 1))) { mes "^0000FFAgente Warp^000000"; cutin "jpn_mid03",2; mes "You are not an owner of any this Casttle, or member of any guild who owns one."; next; mes "^0000FFAgente Warp^000000"; mes "Conquest the castle, or join a guild who owns one in order to access!"; close3; } else { set lastwarp$, getarg(0); set lastwarpx, getarg(1,0); set lastwarpy, getarg(2,0); warp getarg(0),getarg(1,0),getarg(2,0); } end; }
  23. use the quest system instead, it covered both monster kill and time limit.
  24. it take time to reload these database files, so its normal it stuck for few seconds.
  25. try here data\luafiles514\lua files\quest
×
×
  • Create New...

Important Information

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