setunitdata #462
Labels
component:core
A fault that lies within the main framework of rAthena
mode:prerenewal
A fault that exists within the pre-renewal mode
mode:renewal
A fault that exists within the renewal mode
priority:low
A fault that affects rAthena in one piece of functionality and is self-contained
test script
prt_fild08,149,360,4 script npcname 47,{
setarray .init,0;
setunitdata getnpcid(0,"npcname"),2,1111; // set HP 1111
setunitdata getnpcid(0,"npcname"),3,1024; // set max HP 1024
setunitdata getnpcid(0,"npcname"),8,9999; // set STR 9999
setunitdata getnpcid(0,"npcname"),9,9999; // set AGI 9999
setunitdata getnpcid(0,"npcname"),10,9999; // set VIT 9999
setunitdata getnpcid(0,"npcname"),11,9999; // set INT 9999
setunitdata getnpcid(0,"npcname"),12,9999; // set DEX 9999
setunitdata getnpcid(0,"npcname"),13,9999; // set LUK 9999
// show info
getunitdata getnpcid(0,"npcname"),.init; // get npc data
for(set .@i,0; .@i<getarraysize(.init); .@i++)
mes ""+.init[.@i];
close;
}
npc parameter (indexes)
2,3,8,9,10,11,12,13
Seem not work
version : 5a4cd74
The text was updated successfully, but these errors were encountered: