Jump to content
  • 0

Help on 2 NPCs/Scripts - Kafra Suprema e Evento Chefe do Mundo / World Boss.


lLoydxx

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  36
  • Reputation:   1
  • Joined:  10/30/20
  • Last Seen:  

Boa madrugada comunidade.

Alguém poderia me ajudar resolver o problema desses 2 NPCS/scripts

1 - Kafra Suprema
Comprei este NPC e o mesmo que a vendeu não da suporte, alguém poderia deixar todas as funções funcionando de forma correta, elas não estão funcionando aqui no meu emulador rathena.

2 - Este script é o evento Chefe do Mundo porém eu queria que ele funcionasse da seguinte forma ao matar 100k de mobs ele sumonaria o Chefe do Mundo e os jogadores teriam 2 horas para matar, caso não o matassem ele daria um resete sumindo com o Chefe do Mundo, tendo assim que matar 100k novamente para invocar o Chefe do Mundo novamente. Ele está totalmente bugado, configurei ele para matar 10 monstros invocar o Chefe porém ao invocar ele e matar 10 monstros +1 ele invoca novamente e anuncia de forma incorreta sem delay para que ele funcione como pedi acima.

Agradeço muito a ajuda de todos!

 

Scripts anexados.

 

Good morning community.

Could someone help me solve the problem of these 2 NPCS/scripts

1 - Supreme Kafra
I bought this NPC and the same one that sold it doesn't support, someone could leave all the functions working correctly, they are not working here in my rathena emulator.

2 - This script is the Boss of the World event but I wanted it to work like this when killing 100k mobs it would summon the Boss of the World and players would have 2 hours to kill, if they didn't kill it it would reset and disappear with the World Boss, thus having to kill 100k again to summon World Boss again. It is totally buggy, I configured it to kill 10 monsters to summon the Boss but when I summon him and kill 10 monsters +1 he summons again and incorrectly announces without delay so that it works as I asked above.

I really appreciate everyone's help!

 

Attached scripts.

chefe_do_mundo.txt Kafra Suprema.txt

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

On 11/13/2021 at 2:37 PM, lLoydxx said:

2 - This script is the Boss of the World event but I wanted it to work like this when killing 100k mobs it would summon the Boss of the World and players would have 2 hours to kill, if they didn't kill it it would reset and disappear with the World Boss, thus having to kill 100k again to summon World Boss again.

-	script	WorldBoss::alwbman	-1 ,{
	end;
	
OnNPCKillEvent:
	.wbKilledMob++;
	if(.wbKilledMob >= .killPopBoss) {
		.@map$ = .townMap$[rand(getarraysize(.townMap$) - 1)];
		areamonster .@map$, 0, 0, 250, 250, "--ja--", .wBossId, 1, strnpcinfo(3) + "::OnWBossDied";
		.boss_gid = $@mobid[0];
		initnpctimer;
		announce "[Chefe do Mundo]: Humanos tolos, como ousam me despertar? Voc阺 ir鉶 sentir a minha ira!", bc_all, 0xFF0000;	
		sleep 10000;
		announce "[Chefe do Mundo]: Muahahahahahaha Muahahahahahaha Muahahahahahaha...", bc_all, 0xFF0000;
		sleep 10000;
		announce "[Chefe do Mundo]: O Chefe do Mundo surgiu em >> " + .@map$ + " << para matar todos os aventureiros que o despertaram!", bc_all, 0xFF0000;
	}
	end;
	
OnWBossDied:
	announce "[Chefe do Mundo]: " + strcharinfo(0) + " acerta o golpe final e acaba de matar o Chefe do Mundo! Parab閚s!", bc_all, 0xFF0000;
	sleep 5000;
	announce "[Chefe do Mundo]: " + strcharinfo(0) + " acaba de receber uma grande recompensa por det?lo!", bc_all, 0xFF0000;
	sleep 5000;
	announce "[Chefe do Mundo]: N鉶 fique contente humano eu retornarei um dia!", bc_all, 0xFF0000;
	getitem .rewardId, .rewardCount;
OnTimer7200000: // after 2 hours
	stopnpctimer;
	.wbKilledMob = 0;
	if (unitexists(.boss_gid))
		unitkill .boss_gid;
	end;
	
OnInit:
	.killPopBoss = 10;
	setarray .townMap$[0],"prontera","geffen","morocc","payon","izlude","alberta","aldebaran","brasilis","dewata"; //to fill
	.wBossId = 2255;
	.rewardId = 14232;
	.rewardCount = 5;
	end;
}

 

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...