Jump to content

Onairda

Members
  • Posts

    181
  • Joined

  • Last visited

Posts posted by Onairda

  1. Hello Everyone,

    I have created an instance with the setting NoNPC: true. This prevents copying NPCs from the source map.

    How can I enable my custom NPC inside the instance? Even though I have set NoNPC, the script I am using (see below) is not enabling the NPC inside the instance.

     

    // Instance Controller NPC (Triggers OnInstanceInit)
    moc_fild17,37,289,0	script	InstanceSpawner#DD	1001,{
    	end;
    
    OnInstanceInit:
    	// Broadcast to the instance map
    	mapannounce instance_mapname("moc_fild17"), "[System]: The monsters have arrived!", bc_map;
    
    	// Spawn mobs in the instance
    	monster instance_mapname("moc_fild17"), 50, 50, "Phreeoni Minion", 1002, 10;
    	monster instance_mapname("moc_fild17"), 53, 53, "Phreeoni", 1159, 1;
    
    	// Enable the instance NPC
    	enablenpc instance_npcname("PhreeoniHelper#DD");
    	end;
    }
    
    // Instance-Only NPC (initially hidden)
    moc_fild17,42,292,0	script	PhreeoniHelper#DD	100,{
    
    	mes "Hello!";
    	mes "Welcome to the Phreeoni Instance.";
    	close;
    
    OnInit:
    	// Hide globally — needed due to NoNpc: true
    	hideonnpc strnpcinfo(0);
    	end;
    }

    Thank you!!

  2. On 6/8/2016 at 1:52 AM, Akkarin said:

    It wouldn't create unless I used quotes, which was weird enough. Maybe I wasn't typing it right. I'll give it another whirl now I've got my head out of rathena/FluxCP lol

    /omg

     

    Update:

     

     

    Still using the same code as above:

    switch(instance_create("Prison Break",IM_CHAR,getcharid(0))){
    				case -1:
    				mes "^FF0000-1 Invalid Type^000000.";
    				close;
    			case -2: 
    				mes "^FF0000-2 Char/Party/Guild not exist^000000.";
    				close;
    			case -3:
    				mes "^FF0000-3 Instance Already Exists?!^000000.";
    				close;
    			case -4:
    				mes "^FF0000-4 No Free Instances. MAX_INSTANCE?!^000000.";
    				close;
    			default:
    				break;
    			}
    

    Removing the " " 's gives me this error on the console:

    [Error]: instance_create: character 150000 not found for instance 'Prison Break'.

    And returns error value -2.

     

    Very confused.


    Hello Is IM_CHAR now stable? 

    I tried creating my instance using IM_CHAR but not creating instanceid

  3. I have a custom skills in map/skill.cpp

    Could someone give me a syntax to insert data in SQL 

    Table Name: CustomMonster
    Fields: id, char_id, mob_id, mob_name

    what sysntax I can use to insert the data?
     

    Quote

        case SG_CUSTOMMMONSTER:  
        {
            if (!sd || !bl || bl->type != BL_MOB)
                break;

            struct mob_data* md = (TBL_MOB*)bl;

            // Check if monster is if custom
            if (md->db->mexp != 999999) {
                clif_displaymessage(sd->fd, "This monster custom!.");
                
            //INSERT TO SQL  PLEASE GIVE SYNTAX THAT will insert the char_id, mob_id, and mob_name to Table CustomMonster

                break
            }

  4. Done!

     

    go to src/map/clif.cpp
     

    For Roulette Icon

    void clif_roulette_open( struct map_session_data* sd ){
    	nullpo_retv( sd );
    
    	struct packet_roulette_open_ack p;
    
    	p.PacketType = 0xa1a;
    	p.Result = 0; // result
    	p.Serial = 0; // serial
    	p.Step = (sd->roulette.claimPrize) ? sd->roulette.stage - 1 : 0;
    	p.Idx = (sd->roulette.claimPrize) ? sd->roulette.prizeIdx : -1;
    	p.AdditionItemID = -1; //! TODO: Display bonus item
    	p.GoldPoint = sd->roulette_point.gold;
    	p.SilverPoint = sd->roulette_point.silver;
    	p.BronzePoint = sd->roulette_point.bronze;
    
    	sd->state.roulette_open = true;
    
    	clif_send( &p, sizeof( p ), &sd->bl, SELF );
    }

    Change to

    void clif_roulette_open( struct map_session_data* sd ){
    	nullpo_retv( sd );
    	npc_event_do_id("NPCNAME::OnLabel", sd->status.account_id);
    }

     

    NPC:

    -	script	NPCNAME	-1,{
    OnLabel:
    	mes "add whatever you want.";
    	end;
    }


    then under cliff, searched the Cash Shop button and do the same.

    • MVP 1
  5. I have now solve this without following and installing the video above.

     

    1st: Diff client 'Enable HTTP Emblem' (FOR GIF if you don't like GIF emblem don't enable it), 'Always call SelectKoreaClientInfo()'.

    2nd: luafiles514/lua files/service_korea/ ExternalSettings_kr.lub and  ExternalSettings_kr_sak.lub : 

    AssistAddr = "127.0.0.1:8080"  the port is based on the web_conf mine is 8080.

    MakeableRace = { Doram = false }
    -- Change the "AssistAddr" to your IP
    AssistAddr = "127.0.0.1:8080"
    Url = { TwitterUrl = "http://ipaddress:8080" }
    AccountLinkedUserDataUrl = {
    	Save = "http://ipaddress here:8080/userconfig/save",
    	Load = "http://ipaddress here:8080/userconfig/load"
    }
    TwitterDataUrl = {
    	Auth = "http://ipaddress here:8080/twitter/user-auth",
    	Upload = "http://ipaddress here:8080/twitter/upload"
    }
    EmblemDataUrl = {
    	Upload = "http://ipaddress here:8080/emblem/upload",
    	Download = "http://ipaddress here:8080/emblem/download"
    }


    3rd: Clientinfo: should be Korea in service Type/

    <clientinfo>
    	<desc>Ragnarok Client Information</desc>
    	<servicetype>korea</servicetype>
    	<servertype>primary</servertype>
    	<connection>
         <display>Ragnarok</display>
    		<balloon>Server</balloon>
          		<address>15.235.225.202</address>
          		<port>6900</port>
          		<version>55</version>
          		<langtype>1</langtype>
    		<registrationweb></registrationweb>
    		<loading>
    			<image>loading00.jpg</image>
    			<image>loading01.jpg</image>
    			<image>loading02.jpg</image>
    			<image>loading03.jpg</image>
    			<image>loading04.jpg</image>
    			<image>loading05.jpg</image>
    			<image>loading06.jpg</image>
    		</loading>
    		<yellow>
                <admin>2000000</admin>
                <admin>2000002</admin>
                <admin>2000003</admin>
            </yellow>
    		<aid>
    			<admin>2000000</admin>
    		</aid>
        </connection>
    	
    </clientinfo>

    Restart your server! 

  6. Hello Everyone,

    In my client version 2020-01-08a, no emblems are displaying. The 24-bit .bmp and GIF emblems are not applying or showing in-game. I checked the 'Enable HTTP Emblem on Ragexe' option during diffing, but it is still not working.

    Now my question, is the below tutorial is still required to make the emblem work? until now 2024?

    , t

  7. On 6/19/2024 at 10:33 PM, hendra814 said:

    i can open the client with new recomended option 

    - addtional client validation (recomended)

    - always load Korea ExternalSetting lua files (recomended)but this error still appear, even already using default chris translation project for 20220330 client (using read data folder)

      Reveal hidden contents

     

     

    image.png.279bfd22d4ea5212d6ec089c2e143152.png

     

    image.png.6f822c843298533a58d335bb30988137.png

    image.png.7a8413db5fca9347d56df10a61c3a6e3.png

    image.png.7337698148fb9395e61efca68a2464c7.png

    image.png.cdd35b33da81421779b31d02146fe25c.png

    image.png.76293b4527a9cfaee462af485fc13961.png

    image.png.c644e932922b23944583430cdd44779e.png

    image.png.8f083607194966dcfabb5c45626a13d3.png

     

    and this error when using read GRF

    image.png.742045652b30656d89436abc84a82ade.png

     

    this is how i get client data and system folder for this issue

    - run client generator

    image.png.497735f904ef562be6b60891d9d5e845.png

    - press 1 for renewal

    image.png.baeb7ed7a88cc4562f4b91e446ddaac9.png

    -  choose 10 for 20220330 client

    image.png.c1386cdd63eb3dcff6cb1f5ea8c51a3b.png

    - proceed the request
    image.png.29391991d863f7e491bc61699a635751.png

    is it already correct?

    image.png

    image.png

    image.png

    image.png

    Hello where do you get the ClientGenerator.bat? I am planning to download new 2022 clients + the data folder side

  8. EDITED: Working now!, Forgot to removed the hashtag before the word 'Body' #Body


    db/import/mob_avail.txt

    Take note: Mob name should always CAPITAL Character to work. 

    Body:
      # Examples
      - Mob: PORING
        Sprite: BAPHOMET

     

  9. Hello,

    Can someone help me to edit this script to only count 1 hour and 20 minutes then refresh again to 1 hour and 20 minutes:

    because I have an event that starts every 1 hour and 20 minutes.  

     

    prontera,150,150,5	script	HourTimer	111,{
    OnInit:
    while( .@a != 1 ){
    	delwaitingroom;
    	waitingroom ""+gettimestr( "%H:%M:%S %p",15),0;
    	sleep 1000;
    }
    end;
    
    }

     

  10. Hello

     

    Good day!

     

    I am planning to create a Global function that will be used by different NPCs at the same time, and this Global function requires the variable. please see the below.

    I have an Idea in C#, but not sure how this will work with Rathena

    //------------------------

    Test.txt - SCript

    Prontera,150,150  - - - -{


    mes "Input  1st Number:";

    input .@FirstNumber;

    next;


    mes "Input  2nd Number:";

    input .@SecondNumber;

    .@total = callfunc add_numbers(.@FirstNumber, .@secondNumber)

    }

     

    //------------------------

    GlobalFunc.txt - Script

    GLOBAL function add_numbers(a, b)

     result = a + b

    query_sql(Insert result to addition_tbl) 

    return result

    end
     

  11. 20 hours ago, Botaring said:

    May I ask how did you make your webserver work?

    What type of program do you use to diff HTTP Emblem? I use warp and it doesn't have that on 2021-11-03

    I change my exe to 2020 that supports HTTP emblem, then thats it. 

    I used NEMO by the way.

     

     

  12. On 12/4/2020 at 11:10 PM, Ai4rei said:

    Create a thread in a DLL, that displays a topmost window with a bitmap in it and close it when the main window is created (which can be detected in various ways, for example polling with FindWindow). That DLL must be added to client's imports (or recycle an existing one if you know how).


    Edit:

    For example like this: https://github.com/ai4rei/splash

     

    On 12/5/2020 at 2:58 AM, Froost said:

    Hello sorry for the long response :D.

    I tried creating a custom DLL. However, I don't know how to load it using use custom DLL in NEMO, maybe you can help me? I tried loading in the DLL I've created but not working 
    image.png.e3470b57bd6d8830e5493069505a7f87.png

    image.png.5b172abaad98a35361dc873cd100d447.png

    Here is the error:

    image.thumb.png.9770553f8ea65b45732387fa66499e5a.png

    bump thank you

    done it using Visual Studio.  Thank you!

  13. My Webserv.bat is working and no error. However, it don't know where to place the emblem folder and the emblem's.

    Im using 2019 client will it work?

     

    On 9/19/2023 at 2:52 PM, Botaring said:

    It's just this, sir:
     

    web_port: 8888

     

    Mine has been solved. its working fine now :).

    You need to diff HTTP Emblem - before it works.

×
×
  • Create New...