Jump to content

Akbare-2nd

Members
  • Posts

    33
  • Joined

  • Last visited

Posts posted by Akbare-2nd

  1. 4 hours ago, Raki said:

    To be honest, I'm a little confused whether it's good to add an NPC Module and manually write a description of the npc, the purpose of the npc and so on.
    but I think this is good for beginners who don't know the details of the game, but then again this will increase the number of databases that must be imported, because currently the cus database that I have created is 6 custom databases.

    Cuplikan layar 2024-06-13 105954.png

    Actually, it doesn't matter how many custom database additions there are, of course it will be very useful for anyone who uses it,

    the usual one is probably the addition/creation of event banners on the front page easily, and for the blog feature it is very good to write how the game/server is running.

  2. On 5/19/2024 at 7:20 AM, Kater said:

     

    Yes, it would be a visual weapon.

    I still haven't managed to get the command right in itemdb, can you help me?

    The weapon visual corresponds to the weapon's item ID;

    you are using ID 24500

    for alchemist weapons is in the folder  |----/¿¬±Ý¼ú "ç                 Alchemist weapons

    for example

    image.png.cf9dc9dffb410c9e7b010026d36585a6.png

  3. On 5/26/2024 at 7:39 AM, luizinhomt said:

    Good evening, could someone help me make a script when the player enters the server and is not a VIP, a message will appear for him if he wants to buy the VIP, if he doesn't want to buy it now he can put it as a reminder in 7 days, if he doesn't do nothing the next day the message appears again when logging in if you are a vip the npc will not start when entering the server.
     

     

    -	script	Char Information	-1,{
    	OnPCLoginEvent:
    if(vip_status(VIP_STATUS_ACTIVE)){
    dispbottom "Your Premium Status ACTIVE",0x66FFFF;
    } else {
    dispbottom "Your Premium Status NOT ACTIVE",0x66FFFF;
    dispbottom "Please use premiums service to get other benefits",0x66FFFF;
    } 
    end;
    }

     

    • Love 1
  4. On 4/26/2024 at 2:49 AM, Ai4rei said:

    Apologies for the delay, I have been cloudflare'd out of the forums.

    If you have multiple GRFs, you have to define multiple patch processes in the config as per the documentation.

    So one section, ex. "[ROCred.Patchers.Main]", can be for your adata.grf and another one, ex. "[ROCred.Patchers.Event]", can be for your bdata.grf. There is no hard limit to the amount of GRFs.

    how to write it down in WebList=patchlist.txt

    thx u

  5. 6 hours ago, Gidz Cross said:

    I've added custom job but there is this problem with the garment.
    image.gif.7052c2dd38f7e52264bcd1597a71003d.gif

    As you can see, it is also displaying in front. Now  I know that i need to edit some lub files and perhaps add the job id but i don't know where to start. Any help would be appreciated.

    *EDIT

    FIXED

    How to fixed ?

  6. -	script	mallroom	-,{
    	end;
    OnEnter:
    	
    	if(getmapflag(strcharinfo(3),mf_town)){
    		announce strcharinfo(0)+" has entering Mall Room!",bc_all;
    		warp "yourmap",64,45;
    	}else{
    		message strcharinfo(0),"you have to be in town to use this command";
    	}
    	end;
    OnInit:
    	bindatcmd "mall",strnpcinfo(3)+"::OnEnter";
    	end;
    }

     

  7. On 10/21/2023 at 7:31 PM, Sehrentos said:

    Hey,

    I tried installing and compiling the project solution in visual studio, by following guides found in the forums, since the installation guidelines in the github also did not work.

    Problem is after successful compile, the map-server stops and report about missing msvcr110.dll and after finding the right dll file, then it crashes in 0xc000007b error.

    The project was rebuild in release mode x64.

    Windows 11 environment.

    try to install : https://www.mediafire.com/file/xb1pjxpsjipaqyq/Visual-C-Runtimes-All-in-One-Jul-2021.zip/file

  8. On 11/7/2023 at 12:19 AM, Alexandrite said:

    example as if I was knight is there a way to make an equip costume that make me look like a Lord Knight or another class?

    for example

    30000,2nd Class Costume,2nd Class Costume,12,10,,0,,2,,0,0xFFFFFFFE,2,2,1048576,,0,0,0,{},{ if(roclass(eaclass()|EAJL_UPPER)) changebase BaseJob; },{ changebase Class; }

     

  9. sir,

    I found this error, can you help?

    818461a2a5106848f267e5e8e22fadce.png.ccd856477105bd13f7e7d41c23a62c1f.png

    Full Script

    
    function	script	func_CreateCampFire	{
    	
    	.@cid = getcharid(3);
    	
    	.@range = getarg(0, 3); 	// Heal Range
    	.@duration = getarg(1, 60); // Duration
    	.@rate = getarg(2, 1); 		// Heal Rate
    
    	getmapxy(.@map$, .@mapx, .@mapy, BL_PC);
    
    	if(getmapxy(.@npc_map$, .@x, .@y, BL_NPC, sprintf("Camp Fire#CF_%d",.@cid)) == 0)
    		donpcevent "Camp Fire#" + sprintf("CF_%d", .@cid) + "::OnCampFireEnd";
    
    	showscript "Starting a Camp Fire...";
    	specialeffect(EF_FIREWALL2, AREA, convertpcinfo(.@cid,CPC_NAME));
    	progressbar "0xFFFFFF", 1;
    	
    	duplicatenpc("cf_main", "Camp Fire", sprintf("CF_%d", .@cid), .@map$, .@mapx, (.@mapy - 1), DIR_SOUTH, 10252, .@range, .@range);
    	
    	set(getvariableofnpc(getd(sprintf(".CF_%d_range", .@cid)), "Camp Fire#" + sprintf("CF_%d", .@cid)), .@range);
    	set(getvariableofnpc(getd(sprintf(".CF_%d_duration", .@cid)), "Camp Fire#" + sprintf("CF_%d", .@cid)), .@duration);
    	set(getvariableofnpc(getd(sprintf(".CF_%d_healrate", .@cid)), "Camp Fire#" + sprintf("CF_%d", .@cid)), .@rate);
    	donpcevent "Camp Fire#" + sprintf("CF_%d", .@cid) + "::OnCampFireStart";
    	
    	return;
    }
    
    function	script	func_UpdateCampFire	{
    
    	.@cid = getcharid(3);
    	
    	.@range = getarg(0, 3); 	// Heal Range
    	.@duration = getarg(1, 60); // Duration
    	.@rate = getarg(2, 1); 		// Heal Rate
    
    	getmapxy(.@map$, .@mapx, .@mapy, BL_PC);
    
    	if(getmapxy(.@npc_map$, .@x, .@y, BL_NPC, sprintf("Camp Fire#CF_%d",.@cid)) == 0) {
    		if (.@npc_map$ != .@map$ || distance(.@mapx, .@mapy, .@x, .@y) > 5) {
    			dispbottom "<Camp Fire> You're too far away from the Campfire.";
    		}
    		else {
    			showscript "!!";
    			specialeffect(EF_FIREWALL2, AREA, "Camp Fire#" + sprintf("CF_%d", .@cid));
    			
    			.@range = min(8, getvariableofnpc(getd(sprintf(".CF_%d_range", .@cid)), "Camp Fire#" + sprintf("CF_%d", .@cid)) + .@range);
    			.@duration = min(300, getvariableofnpc(getd(sprintf(".CF_%d_duration", .@cid)), "Camp Fire#" + sprintf("CF_%d", .@cid)) + .@duration);
    			.@rate = min(15, getvariableofnpc(getd(sprintf(".CF_%d_healrate", .@cid)), "Camp Fire#" + sprintf("CF_%d", .@cid)) + .@rate);
    			
    			set(getvariableofnpc(getd(sprintf(".CF_%d_range", .@cid)), "Camp Fire#" + sprintf("CF_%d", .@cid)), .@range);
    			set(getvariableofnpc(getd(sprintf(".CF_%d_duration", .@cid)), "Camp Fire#" + sprintf("CF_%d", .@cid)), .@duration);
    			set(getvariableofnpc(getd(sprintf(".CF_%d_healrate", .@cid)), "Camp Fire#" + sprintf("CF_%d", .@cid)), .@rate);
    		}
    	}
    	else {
    		dispbottom "<Camp Fire> Start a Campfire...";
    	}
    	
    	return;
    }
    
    
    -	script	Camp Fire::cf_main	FAKE_NPC,{
    	end;
    	
    OnCampFireStart:
    	getmapxy(.@map$, .@x, .@y, BL_NPC);
    	
    	.@npcname$ = strnpcinfo(2);
    	
    	do {
    		.@range = getd(sprintf(".%s_range", .@npcname$));
    		.@healrate = getd(sprintf(".%s_healrate", .@npcname$));
    		
    		specialeffect EF_DRAGONSMOKE, AREA;
    		
    		showscript "HEAL: "+.@healrate+"% | AREA:"+.@range+" | TIME: "+getd(sprintf(".%s_duration", .@npcname$));
    		
    		setd(sprintf(".%s_duration", .@npcname$)), getd(sprintf(".%s_duration", .@npcname$)) - 1;
    		
    		areapercentheal(.@map$, (.@x - .@range), (.@y - .@range), (.@x + .@range), (.@y + .@range), .@healrate, .@healrate);
    		sleep 1000;
    		
    		.@counter++;
    		if (.@counter > 0 && .@counter % 10 == 0 && .@healrate > 1) // every 10 seconds reduce heal rate
    			setd(sprintf(".%s_healrate", .@npcname$), getd(sprintf(".%s_healrate", .@npcname$)) - 1);
    		if (.@counter > 0 && .@counter % 30 == 0 && .@range > 1) // every 30 seconds reduce range
    			setd(sprintf(".%s_range", .@npcname$), getd(sprintf(".%s_range", .@npcname$)) - 1); 
    		
    	} while (getd(sprintf(".%s_duration", .@npcname$)) > 0);
    	
    	setd(sprintf(".%s_range", .@npcname$), 0);
    	setd(sprintf(".%s_duration", .@npcname$), 0);
    	setd(sprintf(".%s_healrate", .@npcname$), 0);
    	duplicateremove(strnpcinfo(3));
    	end;
    
    OnCampFireEnd:
    	.@npcname$ = strnpcinfo(2);
    	setd(sprintf(".%s_duration", .@npcname$), 0);
    	awake strnpcinfo(3);
    	end;
    
    OnTouch:
    	specialeffect(EF_HEAL, AREA, strcharinfo(0));
    	dispbottom("You are feeling warm and cozy.");
    	end;
    }

     

    when the npc is gone an error appears like this

    650cbdede9db01fb926b3050bd3dcea5.png.db5208610af61db7bc54164fd7e42740.png

    thx for advanced

  10. 22 hours ago, 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.

    this seems to be a pre-renewal, repack the pre-re mapchace with the existing map file and make sure the npc script used matches the map used.

×
×
  • Create New...