N1kX
Модостроитель
- Регистрация
- 13 Ноя 2009
- Сообщения
- 6.176
- Благодарности
- 5.697
- Баллы
- 910
Для начала все повторять бессмыслено. Это лишнее. УдалитьN1kX, блин, все равно не выходит. Как понимаю, что бы это сработало, нужно прописать какое-нибудь условие - попробовал так, что бы заработало после разговора с диего, но все равно не получается. что я делаю не так? может, упустил чего?
var int CubePuted;
var int StatuePuted;
func void PutCube ()
{
if(Npc_KnowsInfo(hero,INFO_DIEGO_GAMESTART))
{
CubePuted = hlp_random (9)+1;
var string CubePlace;
CubePlace = "CUBE_";
CubePlace = ConcatStrings(CubePlace,inttostring(CubePuted));
Wld_InsertItem (crw_armor, CubePlace);
StatuePuted = hlp_random (9)+1;
var string StatuePlace;
StatuePlace = "CUBE_";
StatuePlace = ConcatStrings(StatuePlace,inttostring(StatuePuted));
Wld_InsertItem (crw_armor, StatuePlace);
if (CubePuted == 0) { Wld_InsertItem (crw_armor, "blade"); }else
if (CubePuted == 1) { Wld_InsertItem (crw_armor, "cord"); }else
if (CubePuted == 2) { Wld_InsertItem (crw_armor, "lee"); }else
if (CubePuted == 3) { Wld_InsertItem (crw_armor, "cavalorn"); }else
if (CubePuted == 4) { Wld_InsertItem (crw_armor, "fisk"); }else
if (CubePuted == 5) { Wld_InsertItem (crw_armor, "drax"); }else
if (CubePuted == 6) { Wld_InsertItem (crw_armor, "drak"); }else
if (CubePuted == 7) { Wld_InsertItem (crw_armor, "sly"); };
CubePuted = 999;
};
};
if (CubePuted == 0) { Wld_InsertItem (crw_armor, "blade"); }else
if (CubePuted == 1) { Wld_InsertItem (crw_armor, "cord"); }else
if (CubePuted == 2) { Wld_InsertItem (crw_armor, "lee"); }else
if (CubePuted == 3) { Wld_InsertItem (crw_armor, "cavalorn"); }else
if (CubePuted == 4) { Wld_InsertItem (crw_armor, "fisk"); }else
if (CubePuted == 5) { Wld_InsertItem (crw_armor, "drax"); }else
if (CubePuted == 6) { Wld_InsertItem (crw_armor, "drak"); }else
if (CubePuted == 7) { Wld_InsertItem (crw_armor, "sly"); };
Удалить
CubePuted = 999;
Daedalus:
var int CubePuted;
var int StatuePuted;
func void PutCube ()
{
CubePuted = hlp_random (9)+1;
var string CubePlace;
CubePlace = "CUBE_";
CubePlace = ConcatStrings(CubePlace,inttostring(CubePuted));
Wld_InsertItem (crw_armor, CubePlace);
StatuePuted = hlp_random (9)+1;
var string StatuePlace;
StatuePlace = "CUBE_";
StatuePlace = ConcatStrings(StatuePlace,inttostring(StatuePuted));
Wld_InsertItem (crw_armor, StatuePlace);
};
Daedalus:
PutCube();