

noobzter003
Members-
Posts
109 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by noobzter003
-
Release: @go/@warp delay when hit - Updated
noobzter003 replied to Mabuhay's topic in Source Releases
how to make this work on players & mvp -
diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp index 8f072cd70..bbaa74967 100644 --- a/src/map/atcommand.cpp +++ b/src/map/atcommand.cpp @@ -495,6 +495,8 @@ ACMD_FUNC(mapmove) nullpo_retr(-1, sd); + if (!battle_config.prevent_logout || sd->canlog_tick == 0 || DIFF_TICK(gettick(), sd->canlog_tick) > battle_config.prevent_logout) { + memset(map_name, '\0', sizeof(map_name)); if (!message || !*message || @@ -537,6 +539,11 @@ ACMD_FUNC(mapmove) } clif_displaymessage(fd, msg_txt(sd,0)); // Warped. + } else { + memset(atcmd_output, '\0', sizeof(atcmd_output)); + sprintf(atcmd_output, "Please wait %d seconds before warping.", battle_config.prevent_logout/1000); + clif_displaymessage(fd, atcmd_output); + } return 0; } @@ -1918,6 +1925,8 @@ ACMD_FUNC(go) nullpo_retr(-1, sd); + if (!battle_config.prevent_logout || sd->canlog_tick == 0 || DIFF_TICK(gettick(), sd->canlog_tick) > battle_config.prevent_logout) { + if( map_getmapflag(sd->bl.m, MF_NOGO) && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE) ) { clif_displaymessage(sd->fd,msg_txt(sd,995)); // You cannot use @go on this map. return 0; @@ -2059,6 +2068,12 @@ ACMD_FUNC(go) return -1; } + } else { + memset(atcmd_output, '\0', sizeof(atcmd_output)); + sprintf(atcmd_output, "Please wait %d seconds before warping.", battle_config.prevent_logout/1000); + clif_displaymessage(fd, atcmd_output); + } + return 0; } -- 2.22.0.windows.1 how to make this script works in players & MVP boss only!
-
-
i already did i dont know what happenT_T in my previous version its completely work. but when i change to latest client become like this.
-
i already check 1by 1 but still the same.
-
still the same,, this is my .lub accessoryid.lub accname.lub
-
-
UP Same problem here! @Dissidia how you fix this?
-
attendance.yml did you edit this one already? also edit Checkattendance.lua Config = { StartDate = 20190101, EndDate = 20191230 } Reward = { { 1, 22979, 1 }, { 2, 6316, 1 }, { 3, 12265, 5 }, { 4, 23047, 5 }, { 5, 23038, 1 }, { 6, 23043, 1 }, { 7, 23340, 3 }, { 8, 12516, 5 }, { 9, 23307, 5 }, { 10, 12610, 1 }, { 11, 14533, 2 }, { 12, 23012, 3 }, { 13, 23048, 5 }, { 14, 12264, 5 }, { 15, 23046, 5 }, { 16, 12515, 5 }, { 17, 12522, 5 }, { 18, 12523, 5 }, { 19, 25464, 10 }, { 20, 22845, 1 } } function main() result, msg = InsertCheckAttendanceConfig(Config.EvendOnOff, Config.StartDate, Config.EndDate) if not result then return false, msg end for k, rewardtbl in pairs(Reward) do result, msg = InsertCheckAttendanceReward(rewardtbl[1], rewardtbl[2], rewardtbl[3]) if not result then return false, msg end end return true, "success" end
-
error script error on npc/custom/wbosshp.txt line 23 parse_simpleexpr: unmatched ')' 18 : OnHPBar: 19 : .@U_MAXHP = getunitdata (.mobGID,UMOB_MAXHP); 20 : while (.HP_Bar != false) 21 : { 22 : .@U_HP = getunitdata (.mobGID,UMOB_HP); * 23 : .@P_HP = (@'.'U_HP*100)/.@U_MAXHP; 24 : 25 : cutin(.@P_HP+"", 1); 26 : 27 : sleep2 100; 28 : } [Info]: Done loading '12340' NPCs: -'2929' Warps -'188' Shops -'9223' Scripts -'3876' Spawn sets -'39591' Mobs Cached -'0' Mobs Not Cached code: payon,147,229,4 script Test#HPbar 1_F_MARIA,{ if (.HP_Bar == false) { .HP_Bar = true; .mobGID = monster ("payon",148,226,"[T] HP Test",1031,1,strnpcinfo(0)+"::OnDie"); setunitdata .mobGID,UMOB_MAXHP,4000; setunitdata .mobGID,UMOB_HP,4000; addrid(5, "payon"); addtimer(1000, strnpcinfo(0)+"::OnHPBar"); } end; OnDie: .HP_Bar = false; end; OnHPBar: .@U_MAXHP = getunitdata (.mobGID,UMOB_MAXHP); while (.HP_Bar != false) { .@U_HP = getunitdata (.mobGID,UMOB_HP); .@P_HP = (@.U_HP*100)/.@U_MAXHP; cutin(.@P_HP+"", 1); sleep2 100; } cutin("0_hpbar", 1); sleep2 5000; //Delay to hide HP Bar cutin("", 255); end; } TIA
-
not working [Error]: buildin_getitem: Nonexistant item 0 requested. [Debug]: Source (NPC): atcmd_giveitem (invisible/not on a map) [Error]: buildin_getitem: Nonexistant item 0 requested. [Debug]: Source (NPC): atcmd_giveitem (invisible/not on a map)
-
you have Teamviewer ill doit for you ?
-
better do diff manually.
-
prontera,139,174,6 script Donation Manager 89,{ mes "[Jimmy John]"; mes "Would you like to convert your Donation Credit to cash point?"; mes "Exchange Rate:"; mes "^0000FF1^000000 Donation Credit = ^00FF001^000000 Cash Point"; next; set @dCreds,query_sql("SELECT `balance` FROM cp_credits WHERE `account_id` = "+getcharid(3)+";",.@dCreds); mes "Please select the service you want:"; next; menu "^FF0000Exchange",dpExc,"^0000FFCheck Points/Credits",checkPoints,"^00FF00Quit",LeEnd; dpExc: mes "Available Cash Point to Exchange from Donation Credit : ^0000FF" + .@dCreds + "^000000"; next; mes "How many ^FF0000 Cash Point ^000000 do you want?"; input @ExchangeECd; if (.@dCreds < @ExchangeECd) goto ENeedDcredits; mes "That will be ^0000FF" + @ExchangeECd + "^000000 Donation Credits!"; menu "Yes, I am sure.",LEyesd,"I will decide later...^000000",LEno; LEyesd: set .@dCBal,.@dCreds-@ExchangeECd; query_sql("UPDATE `cp_credits` SET `balance` = "+.@dCBal+" WHERE account_id = "+getcharid(3)+";"); set #CASHPOINTS,#CASHPOINTS+@ExchangeECd; next; goto Edis2; close; LEno: mes "Thanks you ^0000FF" + strcharinfo(0) + "^000000!"; mes "And done come again!"; close; Edis2: mes "Your Donation Credit = ^0000FF" + .@dCBal + "^000000!"; mes "Your Cash Point = ^0000FF" + #CASHPOINTS + "^000000! "; close; ENeedDcredits: mes "Sorry, you don't have enough Donation Credits."; close; checkPoints: mes "Your Donation Credit = ^0000FF" + .@dCreds + "^000000!"; mes "Your Cash Point = ^0000FF" + #CASHPOINTS + "^000000! "; close; LeEnd: close; OnInit: waitingroom "Redeem Donation",0; end; }
-
-
payon,147,229,4 script Test#HPbar 1_F_MARIA,{ if (.HP_Bar == 0) { .HP_Bar = 1; .mobGID = monster ("payon",148,226,"[T] HP Test",POPORING,1,strnpcinfo(0)+"::OnDie"); setunitdata .mobGID,UMOB_MAXHP,4000; setunitdata .mobGID,UMOB_HP,4000; .@count = getunits(BL_PC, .@units, false, "payon"); for (.@i = 0; .@i < .@count; .@i++) addtimer(0,strnpcinfo(0)+"::OnHPBar", .@units[.@i]); } end; OnDie: .HP_Bar = 0; end; OnHPBar: .U_MAXHP = getunitdata (.mobGID,UMOB_MAXHP); while (.HP_Bar != 0) { .U_HP = getunitdata (.mobGID,UMOB_HP); .P_HP = (.U_HP*100)/.UMOB_MAXHP; cutin(""+.P_HP+"", 1); sleep2 100; } cutin("0", 1); sleep2 5000; //Delay to hide HP Bar cutin("", 255); end; } anyone can help me to correct this script.. im trying to convert this script https://herc.ws/board/topic/15975-custom-unit-hp-bar-system/ to rathena TIA.
-
-
[PACKETVER 20180620] Client Release 2018-06-20eRagexeRE
noobzter003 replied to MathReaper's topic in Client Releases
thanks!! how about this sir?? black circle how to align? red circle something got error but i dont what is that. thanks! -
[PACKETVER 20180620] Client Release 2018-06-20eRagexeRE
noobzter003 replied to MathReaper's topic in Client Releases
how do you fix this? -
Need protection service for my Server
noobzter003 replied to Diana's question in Third Party Support
me too i want to know the pricelist, -
Great release mate!! but it is possible put range the pk mode, not in whole map. example, 40 Cell near the boss
-
anyone know whats the problem of this?? ill do manually diffpatch. i only have problem when i click KVM (Level 59 and below) like in the pictures. here's the source https://github.com/rathena/rathena/pull/3995/files thanks!
-
how to merge the changeset? im using latest client 20180821 can you give me sample how to merge it.. thanks! UP!