Jump to content

hendra814

Members
  • Posts

    1305
  • Joined

  • Last visited

  • Days Won

    17

Posts posted by hendra814

  1. 2 hours ago, Meteor91 said:

    Hello Team,

    i would like to get support for this script below. i found this ip limit script in this forum, the script working fine and i use it until now. the problem is, i want to make an adjustment where at prontera city there were no ip limit but when the player warp to dungeon map or other place the script will check whether they have 3 other chars outside prontera. if they have then the 4th login will be kick. i have try to make <if (strcharinfo(3) == "prontera") end;> it is not working means player can use this as advantage to login more than 3 id. kindly guide and assist me on this. below is the code:-

     

    -	script	Only3perIP	-1,{
    OnPCLoginEvent:
    if (getgmlevel() >= 99) end;
    set .@myname$, strcharinfo(0);
    if (query_sql("SELECT `char`.`name` FROM `char` LEFT JOIN login ON `char`.account_id=login.account_id WHERE login.last_ip='"+getcharip()+"' AND `char`.online=1 AND `char`.char_id!="+getcharid(0), .@name$) >= 3) {
    	for (set .@i,0; .@i<getarraysize(.@name$); set .@i,.@i+1) {
    		if (checkvending(.@name$[.@i]) != 2)
    			set .@sameip, .@sameip +1;
    	}
    	if (.@sameip >= 3) {
    		announce "Sorry, only 3 accounts per IP can be logged in at a time.", bc_self;
    		sleep 1000;
    		atcommand "@kick " + .@myname$;
    	}
    }
    end;
    }

     

    try my script below

    you can edit the map and the condition

    -	script	dualclientkicker	-1,{
    OnPCLoadMapEvent:
    set .@charmap$, strcharinfo(3);
    if(!compare(.tmp$,.@charmap$)) end;
    set .@len, query_sql("SELECT DISTINCT `account_id` FROM `char` WHERE`account_id` IN (SELECT `account_id` FROM `login` WHERE `last_ip` =(SELECT `last_ip` FROM `login` WHERE `account_id`="+getcharid(3)+")) AND`online` <> 0;",.@a);
    for(set(.@d,0);.@d<.@len;set(.@d,.@d+1)) {
    	if(!getmapxy(.@map$,.@x,.@y,0,rid2name(.@a[.@d])) && .@charmap$==.@map$)
    	set .@c,.@c+ 1;     
    	}
    if(.@c > .limitacc ) {
    dispbottom "Dual accounts not allowed in PVP.";
    	warp "prontera",0,0;
    	}    
    	end;
    OnInit:
    set .limitacc,1;
    setarray .maps$,"guild_vs1","guild_vs2","guild_vs3","guild_vs4","guild_vs5","turbo_e_4","turbo_e_8","turbo_e_16",
    "pvp_y_1-1","pvp_y_1-2","pvp_y_1-3","pvp_y_1-4","pvp_y_1-5","pvp_y_2-1","pvp_y_2-2","pvp_y_2-3","pvp_y_2-4","pvp_y_2-5",
    "pvp_y_3-1","pvp_y_3-2","pvp_y_3-3","pvp_y_3-4","pvp_y_3-5","pvp_y_4-1","pvp_y_4-2","pvp_y_4-3","pvp_y_4-4","pvp_y_4-5",
    "pvp_y_5-1","pvp_y_5-2","pvp_y_5-3","pvp_y_5-4","pvp_y_5-5","pvp_y_6-1","pvp_y_6-2","pvp_y_6-3","pvp_y_6-4","pvp_y_6-5",
    "pvp_y_7-1","pvp_y_7-2","pvp_y_7-3","pvp_y_7-4","pvp_y_7-5","pvp_y_8-1","pvp_y_8-2","pvp_y_8-3","pvp_y_8-4","pvp_y_8-5",
    "pvp_n_1-1","pvp_n_1-2","pvp_n_1-3","pvp_n_1-4","pvp_n_1-5","pvp_n_2-1","pvp_n_2-2","pvp_n_2-3","pvp_n_2-4","pvp_n_2-5",
    "pvp_n_3-1","pvp_n_3-2","pvp_n_3-3","pvp_n_3-4","pvp_n_3-5","pvp_n_4-1","pvp_n_4-2","pvp_n_4-3","pvp_n_4-4","pvp_n_4-5",
    "pvp_n_5-1","pvp_n_5-2","pvp_n_5-3","pvp_n_5-4","pvp_n_5-5","pvp_n_6-1","pvp_n_6-2","pvp_n_6-3","pvp_n_6-4","pvp_n_6-5",
    "pvp_n_7-1","pvp_n_7-2","pvp_n_7-3","pvp_n_7-4","pvp_n_7-5","pvp_n_8-1","pvp_n_8-2","pvp_n_8-3","pvp_n_8-4","pvp_n_8-5",
    "pvp_2vs2";
    set .lens ,    getarraysize(.maps$) ;
    for(set(.a,0);.a<.lens;set(.a,.a+1)) {
    	setmapflag .maps$[.a],    mf_loadevent ;
    	set .tmp$ ,.tmp$+.maps$[.a]+",";
    }
    }

     

  2. On 7/11/2023 at 11:24 AM, nekoyarou said:

    Hi rAthena,

    so i have a problem with izlude map, there are some unwalkable tiles and the warp portal is in the wrong place.

    image.thumb.png.f5948d3e91545214eae10867a0a38cdd.png

    i have tried searching the forums for fix but everyone suggests using weepmapcache (which no longer exists or whatever idk, i cant open all of the link provided) or using mapcache editor but don't really specify what should i do when using it.

    can anyone help me to fix this.

    thanks in advance.

    try using this map files

    if your client read grf put the file into your custom grf

    and then put your grf name at  the first line in data.ini

    • Love 1
  3. On 6/30/2023 at 11:08 AM, Brynner said:

    it seems not really an official server. they also use the exact english client translation we are using on their client.

    i'm not sure, but looking at this link. I think this server really official under gravity

    image.thumb.png.d6d77e95c24cb5008b0f033a9bc0a938.png

    And i know this server because it's promoted by official Facebook account Ragnarok Indonesia (Ragnarok Forever Love)

  4. 4 hours ago, rizsu0107 said:

    I don't receive any errors now. Thank you so much. Also my Woe Controller is Fixed thank you so much for this.
    image.png.ec25f08c7ed55248d7185c8a1a72793f.png

    image.thumb.png.65a1549aa94e9f247c61e471a768eb09.png

    Also, can I ask about this. It is not detecting the same user IP, if you don't mind :).

    image.png.2bb6dc42f0d1766d39e0acedebe8e73b.png

    -    script    No_Multiple_Accounts    -1,{
    OnPCLoadMapEvent:
    if( strcharinfo(3) == .Map$ ){

    query_sql("SELECT `last_ip` FROM `ragnarok_accounts`.`login` WHERE `account_id` = "+getcharid(3)+"",.@IP );
    query_sql("SELECT `account_id` FROM `ragnarok_accounts`.`login` WHERE `last_ip` = "+.@IP+"",.@Accountlist );

    for( set .@i,0; .@i < getarraysize( .@Accountlist ); set .@i,.@i + 1 )
        if( isloggedin( .@Accountlist[.@i] ) ) 
            set .@DetectedOnline,.@DetectedOnline + 1;

        if( .@DetectedOnline > .Limit ){
            mes "We detected there is "+.@DetectedOnline+" Users with same IP Logged in.";
            mes "Please log off these unused account.";
            close2;
            warp "thana_town",100,100;
        }
    }
    end;

    OnInit:
    // How many User with Same IP can logged in and stay at the specific map
    set .Limit,1;
    // What map will be restricted
    set .Map$,"jupe_ele";
    setmapflag .Map$,mf_loadevent;
    end;
    }

    for disable dual client, try my script below

    you can change the map for disable dual client.

    -	script	dualclientkicker	-1,{
    OnPCLoadMapEvent:
    set .@charmap$, strcharinfo(3);
    if(!compare(.tmp$,.@charmap$)) end;
    set .@len, query_sql("SELECT DISTINCT `account_id` FROM `char` WHERE`account_id` IN (SELECT `account_id` FROM `login` WHERE `last_ip` =(SELECT `last_ip` FROM `login` WHERE `account_id`="+getcharid(3)+")) AND`online` <> 0;",.@a);
    for(set(.@d,0);.@d<.@len;set(.@d,.@d+1)) {
    	if(!getmapxy(.@map$,.@x,.@y,0,rid2name(.@a[.@d])) && .@charmap$==.@map$)
    	set .@c,.@c+ 1;     
    	}
    if(.@c > .limitacc ) {
    dispbottom "Dual accounts not allowed in PVP.";
    	warp "prontera",0,0;
    	}    
    	end;
    OnInit:
    set .limitacc,1;
    setarray .maps$,"guild_vs1","guild_vs2","guild_vs3","guild_vs4","guild_vs5","turbo_e_4","turbo_e_8","turbo_e_16",
    "pvp_y_1-1","pvp_y_1-2","pvp_y_1-3","pvp_y_1-4","pvp_y_1-5","pvp_y_2-1","pvp_y_2-2","pvp_y_2-3","pvp_y_2-4","pvp_y_2-5",
    "pvp_y_3-1","pvp_y_3-2","pvp_y_3-3","pvp_y_3-4","pvp_y_3-5","pvp_y_4-1","pvp_y_4-2","pvp_y_4-3","pvp_y_4-4","pvp_y_4-5",
    "pvp_y_5-1","pvp_y_5-2","pvp_y_5-3","pvp_y_5-4","pvp_y_5-5","pvp_y_6-1","pvp_y_6-2","pvp_y_6-3","pvp_y_6-4","pvp_y_6-5",
    "pvp_y_7-1","pvp_y_7-2","pvp_y_7-3","pvp_y_7-4","pvp_y_7-5","pvp_y_8-1","pvp_y_8-2","pvp_y_8-3","pvp_y_8-4","pvp_y_8-5",
    "pvp_n_1-1","pvp_n_1-2","pvp_n_1-3","pvp_n_1-4","pvp_n_1-5","pvp_n_2-1","pvp_n_2-2","pvp_n_2-3","pvp_n_2-4","pvp_n_2-5",
    "pvp_n_3-1","pvp_n_3-2","pvp_n_3-3","pvp_n_3-4","pvp_n_3-5","pvp_n_4-1","pvp_n_4-2","pvp_n_4-3","pvp_n_4-4","pvp_n_4-5",
    "pvp_n_5-1","pvp_n_5-2","pvp_n_5-3","pvp_n_5-4","pvp_n_5-5","pvp_n_6-1","pvp_n_6-2","pvp_n_6-3","pvp_n_6-4","pvp_n_6-5",
    "pvp_n_7-1","pvp_n_7-2","pvp_n_7-3","pvp_n_7-4","pvp_n_7-5","pvp_n_8-1","pvp_n_8-2","pvp_n_8-3","pvp_n_8-4","pvp_n_8-5",
    "pvp_2vs2";
    set .lens ,    getarraysize(.maps$) ;
    for(set(.a,0);.a<.lens;set(.a,.a+1)) {
    	setmapflag .maps$[.a],    mf_loadevent ;
    	set .tmp$ ,.tmp$+.maps$[.a]+",";
    }
    }

     

  5. 4 hours ago, someoneloveyou said:

    i dont know why when i want use commond like item i cant do that maybe something problem in this area, i change permission grup super user become 0 before 1, and i can use commond @go /where but i cant use commond GM, and when i try to login using account with account id number 1-2 or much more always disconnect to server, did you knew why ?

    screenrAthena000.jpg

    try change group level into 99

  6. 1 hour ago, someoneloveyou said:

    hello, wanna help ?, i would add NPC in maintown, but i tired to find the tutorial

    enable npc at npc folder\script-costom.conf

    change

    //npc: npc/custom/warper.txt

    into

    npc: npc/custom/warper.txt

     

    and then restart your server or run command @reloadscript using your GM Account character.

  7. 6 hours ago, Winterfox said:

    Hello,

    it is hard to help you, since you didn't provide the complete script. But I can give you a tip. getpartymembercount and getpartycount aren't functions.

    Later you get the number of people in the party here:
     

    set .@count, $@partymembercount;

    So you basically could move:
     

    if (getpartymembercount(getcharid(1)) != 3 && getpartycount(getcharid(1)) != 3){
    	mes "Desculpe, Você não atende o requesitos, Verifique se sua Party têm 3 pessoas e tente novamente.";
    	close;
    }

    Below above said line and change it to:
     

    if (.@count != 3){
    	mes "Desculpe, Você não atende o requesitos, Verifique se sua Party têm 3 pessoas e tente novamente.";
    	close;
    }

    To achieve what it seems you want it to do.

    try change this line

    if (getpartymembercount(getcharid(1)) != 3 && getpartycount(getcharid(1)) != 3){

    into like this

    if ((getpartymembercount(getcharid(1)) != 3) && (getpartycount(getcharid(1)) != 3)){
  8. On 6/27/2023 at 2:48 AM, AinsLord said:

    is there like an item generator like icabits that generate item_db.yml instead of old item_db.txt

    i know that there is a converter for old txt file to yaml file just wondering if there is like icabits

    application

     

    thanks 🙂

    use yamlupgrade.bat, it will convert from old item_db.txt into yaml version.

  9. 2 hours ago, kpcamber said:

    I updated the texture/effect or texture/ anything to the grf file that Ro will not open.

    But I have tested the original folder that is no problem, so I put it into the grt,

    I also put the sprite in the grf that is no problem, just only if I put the texture file in the grf that it will be not open the Ro.

    If have someone can help me ?

    Please .....

      

    make sure your client not patching with read data folder first option

  10. 21 hours ago, imat1 said:

    Hello Hendra. I was able to fixed my problem. I took airplane rsw, gat and gnd from another server and put it inside mine.

    image.thumb.png.d694503e1dd07ee1434e7f71beb2cc0a.png

    One thing i noticed was the difference of color in this certain file (idk what we call them, i'm no mapper xD)

    image.thumb.png.26c31a80e6bac793056381963256bb77.png

    Note: The red one is from another server and the black one is from kRO data.grf

     

    Again. Thanks for helping me!!! /thx

    thanks forr this sharing information.

    I don't know what's the different, but glad to know your problem already solved.

    • MVP 1
  11. 15 minutes ago, imat1 said:

    What puzzled me more is the difference between @warp and the actual warp from the NPC (from izlude). The error is slightly different.

    image.thumb.png.f1662f938431e13b5f73d31b1cfbd108.png

      Reveal hidden contents

    5 Enable Proxy Support
    8 Custom Window Title
    9 Disable 1rag1 type parameters (Recommended)
    13 Disable Ragexe Filename Check (Recommended)
    14 Disable Hallucination Wavy Screen (Recommended)
    16 Disable Swear Filter
    19 Enable Title Bar Menu (legacy)
    23 Enable /who command (Recommended)
    24 Fix Camera Angles (Recommended)
    28 Increase Headgear ViewID
    30 Increase Zoom Out 50%
    34 Enable /showname (Recommended)
    36 Read msgstringtable.txt (Recommended)
    38 Remove Gravity Ads (Recommended)
    39 Remove Gravity Logo (Recommended)
    40 Restore Login Window (Recommended)
    41 Disable Nagle Algorithm (Recommended)
    43 Always Use Email for Char Deletion
    44 Translate Client (Recommended)
    46 Use Normal Guild Brackets (Recommended)
    47 Use Ragnarok Icon
    48 Use Plain Text Descriptions (Recommended)
    49 Enable Multiple GRFs (Recommended)
    50 Skip License Screen
    53 Use Ascii on All LangTypes (Recommended)
    64 @ Bug Fix (Recommended)
    65 Load Custom lua file instead of iteminfo*.lub (Recommended)
    67 Disable Quake skill effect
    71 Ignore Resource Errors
    72 Ignore Missing Palette Error
    73 Remove Hourly Announce (Recommended)
    74 Increase Screenshot Quality
    75 Enable Flag Emoticons
    84 Remove Serial Display (Recommended)
    90 Enable DNS Support (Recommended)
    91 Disconnect to Login Window
    97 Cancel to Login Window (Recommended)
    105 Hide Nav Button
    108 Hide Booking Button
    110 Hide Achievements Button
    113 Hide Quest Button
    204 Increase Attack Display
    208 Restore Cash Shop Icon
    212 Restore Roulette
    213 Disable Help Message on Login (Recommended)
    214 Restore Model Culling
    227 Change Walk To Delay.
    229 Enable Emblem hover for BG
    230 Always load Korea ExternalSettings lua file (Recommended)
    233 Hide SNS Button
    234 Ignore Lua Errors
    247 Change new char name field height
    253 Skip some hidden menu icon buttons
    256 Use Default Web Browser In Cashshop
    265 Set Shop Button
    270 Change AchievementList*.lub path
    271 Change MonsterSizeEffect*.lub path
    272 Change Towninfo*.lub path
    273 Change PetEvolutionCln*.lub path
    274 Change Tipbox*.lub path
    275 Change CheckAttendance*.lub path
    276 Change OngoingQuestInfoList*.lub path
    277 Change RecommendedQuestInfoList*.lub path
    278 Change PrivateAirplane*.lub path
    282 Change MVP hp bar size
    283 Change fade in/out delay
    286 Hide zero date (1969-01-01) in guild members window
    287 Change character display deletion time
    289 Fix Homunculus attack AI
    290 Hide build info in client (Recommended)
    291 Hide packets from peek (Recommended)
    293 Increase hair style limit for human only in game (old)
    305 Hide tip button
    316 Remove Equipment Swap Button
    325 Remove Equipment Title UI
    338 Additional client validation (Recommended)
    348 Send client flags to server (Recommended)
    362 Fixes the Korean Job name issue with LangType (Recommended)
    404 Use borderless mode in full screen (Recommended)

     

    Sorry, i can't seen your error image.

  12. 27 minutes ago, imat1 said:

     

    Hello! I didn't patch my client with read data folder first.

    image.png.40f4162a09fb3c80481d28eafb35457d.png

    I put airplane.rsw inside my data folder for the sake of peace of mind but to no avail. I'm planning to remove NPCs related to airports for now. 😭

    Note: I tried removing gefenia maps in my grf and it's giving me the same error and when i put them back in, everything's normal.

    I check airplane map already have in data.grf

    are you not using data,grf file?

    image.png.ecf880dac215791fb697d18cec54c9f1.png

  13. 3 hours ago, PreciousChan said:

    @hendra814
    ohh i didnt notice the message "pvp ranking"

    I test the mvp ranking and it was working fine until my players decide to hunt on dungeon / field for bosses then i check out the MVP Ranking NPC and only 1 Player is logging on the npc ranking list 

    What should i do???

    are you mean it's not working if have new player killing MVP

  14. 12 hours ago, PreciousChan said:

    for pvp ranking with sounds is from herc...i think it may not be compatible with my server....
    i only do rathena scripts...

    going to test the mvp ranking ❤️ 

    Thank You very much...

    I hope someone can help me with other scripts ❤️ 

    pvp ranking working on rathena, i put in my server.

    • Upvote 1
×
×
  • Create New...