40 lines
663 B
Plaintext
40 lines
663 B
Plaintext
void main()
|
|
{
|
|
|
|
int iEnchNum = GetLocalInt(OBJECT_SELF,"times");
|
|
|
|
if (iEnchNum==1)
|
|
|
|
{
|
|
ExecuteScript("rnd_addrwep",OBJECT_SELF);
|
|
return;
|
|
}
|
|
|
|
else if (iEnchNum==2)
|
|
|
|
{
|
|
ExecuteScript("rnd_addacb",OBJECT_SELF);
|
|
ExecuteScript("rnd_addrwep",OBJECT_SELF);
|
|
return;
|
|
}
|
|
|
|
else if (iEnchNum==3)
|
|
|
|
{
|
|
ExecuteScript("rnd_addwmisc",OBJECT_SELF);
|
|
ExecuteScript("rnd_addrwep",OBJECT_SELF);
|
|
ExecuteScript("rnd_addacb",OBJECT_SELF);
|
|
return;
|
|
}
|
|
|
|
else if (iEnchNum==4)
|
|
|
|
{
|
|
ExecuteScript("rnd_addwmisc",OBJECT_SELF);
|
|
ExecuteScript("rnd_addacb",OBJECT_SELF);
|
|
ExecuteScript("rnd_addrwep",OBJECT_SELF);
|
|
ExecuteScript("rnd_addskl",OBJECT_SELF);
|
|
return;
|
|
}
|
|
}
|