I want to fix this script

I want to modify this text when fighting each monster the player takes the gift

View attachment 7054
Code:
prontera,0,0,0,0	monster	Poring	1002,50,0,0,"poringprize::OnMobDead"

-	script	poringprize	-1,{

OnMobDead:
	getitem 969,1;
	poring_kill = poring_kill + 1;
	if ( poring_kill == 10 ) {
		
		poring_kill = 0;
	}
	end;
}
 
Great, but when monsters increase more than 1000, the script does not work, is there another modification?

prontera,0,0,0,0 monster Poring 1002,50,0,0,"poringprize::OnMobDead"

- script poringprize -1,{

OnMobDead:
getitem 969,1;
poring_kill = poring_kill + 1;
if ( poring_kill == 10 ) {

poring_kill = 0;
}
end;
}

prontera,0,0,0,0 monster Poring 1002,50,0,0,"poringprize::OnMobDead"

- script poringprize -1,{

OnMobDead:
getitem 969,1;
poring_kill = poring_kill + 1;
if ( poring_kill == 10 ) {

poring_kill = 0;
}
end;
}

Great, but when monsters increase more than 1000, the script does not work, is there another modification?

 
what your goal ?
why don't you just add the item do you want  to mob_db.conf?

 
Last edited by a moderator:
Back
Top