Jump to content
  • 0
exploit

Custom mob sprite is still Poring

Question

I'm trying to create a custom mob for Punching Bag script by Secret so that it has different attributes, like Demi-Human Punching Bag, Emperium Punching Bag, and so. The custom mob is working, the only problem is the sprite is Poring.

I'm using this version of rAthena 58e82dc14978461268352c3db04a5965ad75d240 and 2015-11-04 client. Here's what I have.

 

Server side

db\import\mob_db.txt

mob_db.txt

4250,EMP_BAG,Emperium Punching Bag,Emperium Punching Bag,99,668000,0,107250,37895,2,3220,4040,35,45,1,152,96,85,120,95,10,10,2,6,67,0x1973,100,1068,768,576,13000,608,1000,750,400,923,3800,1466,200,2256,200,2607,800,714,500,617,3000,984,4300,985,5600,0,0,0,0,4147,1
4251,DEMIHUMAN_BAG,Demi-Human Punching Bag,Demi-Human Punching Bag,99,668000,0,107250,37895,2,3220,4040,35,45,1,152,96,85,120,95,10,10,2,6,67,0x1973,100,1068,768,576,13000,608,1000,750,400,923,3800,1466,200,2256,200,2607,800,714,500,617,3000,984,4300,985,5600,0,0,0,0,4147,1


src\map\mob.cpp

mob.cpp

#define MIN_MOB_DB 1000
#define MAX_MOB_DB 5000

 

npc\custom\PunchingBag\Emperium.txt

Emperium.txt

prontera,158,162,0	script	EmperiumPunchingBag#0	844,{
	end;
	
OnMyMobDead:
OnInit:
	getunitdata(getnpcid(0), [email protected]);
	monster strnpcinfo(4),[email protected][UNPC_X],[email protected][UNPC_Y],"Emperium Punching Bag",4250,1,strnpcinfo(0)+"::OnMyMobDead";
	[email protected] = atoi(strnpcinfo(2));
	.gid[[email protected]] = [email protected][0];
	.mhp[[email protected]] = strmobinfo(4,4250);
	setunitdata .gid[[email protected]],UMOB_MODE,[email protected][UMOB_MODE]|0x4000000|0x0200000; // Set MD_STATUS_IMMUNE (0x4000000) because EDP/burn/%MHP based status can skew the DPS counter so much.
	initnpctimer;
	end;
	
OnTimer5000:
	[email protected] = atoi(strnpcinfo(2));
	if(unitexists(.gid[[email protected]])){
		getunitdata(.gid[[email protected]],[email protected]);
		[email protected] = (.mhp[[email protected]] - [email protected][UMOB_HP]);
		if([email protected] > 0){
			npctalk "Emperium Punching Bag: I've taken " + ([email protected]/5) + " DPS in last 5 seconds.";
			setunitdata .gid[[email protected]],UMOB_HP,.mhp[[email protected]];
			specialeffect EF_HEAL;
		}
	}
	initnpctimer;
}

 

npc\custom\PunchingBag\DemiHuman.txt

DemiHuman.txt

prontera,152,162,0	script	Demi-HumanPunchingBag#0	844,{
	end;
	
OnMyMobDead:
OnInit:
	getunitdata(getnpcid(0), [email protected]);
	monster strnpcinfo(4),[email protected][UNPC_X],[email protected][UNPC_Y],"Demi-Human Punching Bag",4251,1,strnpcinfo(0)+"::OnMyMobDead";
	[email protected] = atoi(strnpcinfo(2));
	.gid[[email protected]] = [email protected][0];
	.mhp[[email protected]] = strmobinfo(4,4251);
	setunitdata .gid[[email protected]],UMOB_MODE,[email protected][UMOB_MODE]|0x4000000|0x0200000; // Set MD_STATUS_IMMUNE (0x4000000) because EDP/burn/%MHP based status can skew the DPS counter so much.
	initnpctimer;
	end;
	
OnTimer5000:
	[email protected] = atoi(strnpcinfo(2));
	if(unitexists(.gid[[email protected]])){
		getunitdata(.gid[[email protected]],[email protected]);
		[email protected] = (.mhp[[email protected]] - [email protected][UMOB_HP]);
		if([email protected] > 0){
			npctalk "Demi-Human Punching Bag: I've taken " + ([email protected]/5) + " DPS in last 5 seconds.";
			setunitdata .gid[[email protected]],UMOB_HP,.mhp[[email protected]];
			specialeffect EF_HEAL;
		}
	}
	initnpctimer;
}

 

Client side (I still have this files in the folder, not grf)

data\luafiles514\lua files\datainfo\jobname.lub

jobname.lub

	[jobtbl.JT_EMP_BAG] = "BARRICADE",
	[jobtbl.JT_DEMIHUMAN_BAG] = "BARRICADE",

 

data\luafiles514\lua files\datainfo\npcidentity.lub

npcidentity.lub

	JT_EMP_BAG = 4250,
	JT_DEMIHUMAN_BAG = 4251,

 

diffpatchersetting.log

 

I've read I think every topic concerning this problem, but no luck. Hoping someone can help me.

 

Edited by exploit
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
On 3/10/2020 at 10:57 AM, Emistry said:

if i recall correctly, mob id range are limited between 1000~3999 , 4000+ are reserved for clones and etc.... and would display as poring for your custom mob.

Link to comment
Share on other sites

  • 0
12 minutes ago, Emistry said:
On 3/10/2020 at 10:57 AM, Emistry said:

if i recall correctly, mob id range are limited between 1000~3999 , 4000+ are reserved for clones and etc.... and would display as poring for your custom mob.

According to my npcidentity.lub 1000~3999 is filled. What can I do?

Edited by exploit
Link to comment
Share on other sites

  • 0

i am sure there are plenty of empty ID that are usable between 1000~3999 ....

otherwise use a newer client that support a new mob_id starting around 10000+ i think, but I am not sure if rAthena current support it.

Link to comment
Share on other sites

  • 0

Hello bro i got problem in your script how to fix this thanks bro!

 

[Warning]: buildin_monster: Attempted to spawn non-existing monster class 4250
[Debug]: Source (NPC): EmperiumPunchingBag#0 at prontera (158,162)
[Warning]: buildin_monster: Attempted to spawn non-existing monster class 4251
[Debug]: Source (NPC): Demi-HumanPunchingBag#0 at prontera (152,162)
[Status]: Event 'OnInit' executed with '1395' NPCs.
[Status]: Event 'OnInterIfInit' executed with '0' NPCs.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.