Jump to content

  •  

simh

Member Since 24 Jan 2016
Offline Last Active Nov 23 2016 03:04 PM
-----

Topics I've Started

Automatic Bloody Branch Spawn

18 November 2016 - 10:27 PM

Hello,

 

currently i'm trying to develop a script that automatically spawns one random boss monster (out of bloody branch) on a given map. As soon as it gets killed it should wait for one hour to respawn another random boss monster.

 

Does anyone know why:

1. I'm not able to use the 'strnpcinfo'-commands below. I get an error that no player is attached, but i don't understand why there should be one, since i'm just querying the map of the npc and its unique name?

2. As soon as a boss monster is killed there should also spawn a tomb at the position where the monster was killed. It should disappear as soon as another boss monster spawns on the map. Is there a command to spawn a tomb? (Or to spawn and to remove a random self-scriped npc? I only found a code snippet for spawning a tomb in the map.c source file)

 

Here's my script:

-	script	SpawnPvE	FAKE_NPC,{
OnInit:
	// init map
	callfunc("mobspawn", 0, strnpcinfo(NPC_MAP), strnpcinfo(NPC_NAME_UNIQUE));
	end;
	
// when a player kills a monster
OnMonsterDead:
	callfunc("mobspawn", 3600000, strnpcinfo(NPC_MAP), strnpcinfo(NPC_NAME_UNIQUE));
	end;
}

function	script	mobspawn	{
	.@timeout = getarg(0);
	.@map$ = getarg(1);
	.@npcname$ = getarg(2);
	
	if (mobcount(.@map$, "all") < 1) {
		sleep(.@timeout);
		// bloody branch spawn
		monster(.@map$,0,0,--en--,-3,1,.@npcname$+"::OnMonsterDead");
	}	
}

pvp_n_3-1,0,0,0	duplicate(SpawnPvE)	SpawnPvE#1	FAKE_NPC
pvp_n_3-2,0,0,0	duplicate(SpawnPvE)	SpawnPvE#2	FAKE_NPC
pvp_n_3-3,0,0,0	duplicate(SpawnPvE)	SpawnPvE#3	FAKE_NPC
pvp_n_3-4,0,0,0	duplicate(SpawnPvE)	SpawnPvE#4	FAKE_NPC
pvp_n_3-5,0,0,0	duplicate(SpawnPvE)	SpawnPvE#5	FAKE_NPC

 

Thanks for your help!

-simh


Can't skill "Spiral Pierce"

07 February 2016 - 09:51 PM

Hello everyone,

 

i used the hercules jobmaster for my jobchange ($HERCULES_DIRECTORY/npc/custom/jobmaster.txt) to Knight and Lord Knight.

 

Unfortunately i can't skill "Spiral Pierce" on my Lord Knight.

 

Does anyone have a clue how to solve this issue?

 

Thanks in advance!

-simh


Equip switch during fight not taking effect

05 February 2016 - 11:56 PM

Hello everyone,

 

when i switch my equipment (shield) or switch my property while attacking a monster it does not take effect. I first have to stop attacking, then switch my equip (or property) and then re-attack that monster. I have that issue when attacking an incarnation of morroc with "warmth of the moon".

 

Does anyone have a simular issue or knows how to solve it?

 

I'm running the latest hercules on a raspberry pi 1 b model. Maybe my "server" is too weak and needs too much time to answer the equip-switching-request ...?! But i don't have any lags when i'm playing.

 

Thanks for your help in advance!

 

Best regards,

-simh


Client crashes when going to prontera

25 January 2016 - 04:50 PM

Hi,

 

when i move to prontera, my client crashes without giving me any information about why it crashes. That behavior only happens at prontera - If i go to another map the client works.

 

i'm using 2014-10-22bRagexe and updated my $HERCULES/db/pre-re/map_cache.dat and $HERCULES/db/re/map_cache.dat with the Old Prontera (see http://herc.ws/board...-old-prontera/)using WeeMapCache.

 

Unfortunately that didn't fix the error.

 

I followed this guide (https://rathena.org/...ne-2015-client/) to setup my RO-Client. Maybe i am missing some Client-Files?

 

Thanks for your help!

-simh


clif_parse: Received unsupported packet

25 January 2016 - 12:30 AM

Hello,

 

i receive the attached error, when i try to login to the game. Attached File  err_hercules.png   81.14K   23 downloads

 

I'm running the latest Hercules and am using a client with packetversion 20150916 (found that one in rAthena-Forum).

 

What i already did (that unfortunately didn't fix that error):

  • I used ./configure --enable-packetver=20150916
  • I changed my PACKETVER to 20150916 in src/common/mmo.h
  • I disabled packet_obfuscation in conf/battle/client.conf
  • I diffed my client with "Disable packet encryption" (diffed with the latest NEMO)

Does anyone know what's going on here? Maybe the client is not supported? If so, can you post me a link to a stable, working client that is not dead?

 

Thanks for your help!

-simh


Update:

I solved it! I guess that client is too new and not supported yet.

 

Now i'm using 20130605 Ragexe ;-)