-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path@r.txt
37 lines (32 loc) · 1.08 KB
/
@r.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//===== rAthena/Hercules Script =======================================
//= Single NPC reloader
//===== By: ==================================================
//= luizragna
//===== Current Version: =====================================
//= 1.0
//===== Description: =========================================
//= Use @r <npc_name>
//= To reload a single npc
//= Sample-1:
//= to reload npc/custom/jobmaster.txt
//= use @r jobmaster
//= Sample-2:
//= to reload npc/custom/events/poring_race.txt
//= use @r events/poring_race
//===== Additional Comments: =================================
//= 1.0 First release.
//============================================================
- script Reloader#OP FAKE_NPC,{
OnInit:
bindatcmd "r",strnpcinfo(3)+"::OnAtcommandReload",99;
end;
OnAtcommandReload:
if (.@atcmd_parameters$[0] == "")
{
message(strcharinfo(PC_NAME), "Por favor, digite o nome do NPC!");
end;
}
atcommand "@unloadnpcfile npc/custom/"+.@atcmd_parameters$[0]+".txt";
sleep2 100;
atcommand "@loadnpc npc/custom/"+.@atcmd_parameters$[0]+".txt";
}