您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 市场营销 > 新漂流幻境炼金循环脚本(中级)
boolShiftStory(intWareID){if(IsWareUpStair(WareID)==1){if(Value(IsManUpStair)!=1){GoUpStair(0);}if(Value(IsManUpStair)!=1){ShowText(GoUpStairError);returnfalse;}}else{if(Value(IsManUpStair)==1){GoDownStair(0);}if(Value(IsManUpStair)==1){ShowText(GoDownStairError);returnfalse;}}returntrue;}boolScriptContinueMakeItem(intItemID){if(ContinueMakeItem(ItemID)==1){while(IsMakingItem(ItemID)==1){Yield(0);}ShowText(CompleteMakeItem);returntrue;}returnfalse;}intMakeItem45005(intItemCount)//制作普通木头{if(IsFindItem(45005,ItemCount)==1){return1;}return0;}intMakeItem45001(intItemCount)//制作普通木材{if(IsFindItem(45001,ItemCount)==1){return1;}if(IsHaveNecessaryItem(45001)!=1){ShowText(HavenotNecessaryItem45001);return0;}if(!ShiftStory(38058)){return0;}ScriptContinueMakeItem(45001);if(IsFindItem(45001,ItemCount)==1){return1;}intCount=0;intSubCount;while(CountItemCount){MakeItem45001Material();if(MakeItem(45001)!=1){SubCount=0;intSucc=0;while(SubCount1){MakeItem45001Material();if(MakeItem(45001)==1){Succ=1;break;}SubCount++;Yield(0);}if(Succ==0){ShowText(MakeItem(45001)Failure);return0;}}while(IsMakingItem(45001)==1){RefreshStat(IsMakingItem45001);Yield(0);}if(IsFindItem(45001,ItemCount)==1){break;}Count++;Yield(0);}if(IsFindItem(45001,ItemCount)==1){return1;}return0;}voidMakeItem45001Material(){if(MakeItem45005(1)==0){ShowText(MakeItem45005Failure);return;}}intMakeItem37089(intItemCount)//制作柴薪{if(IsFindItem(37089,ItemCount)==1){return1;}if(IsHaveNecessaryItem(37089)!=1){ShowText(HavenotNecessaryItem37089);return0;}if(!ShiftStory(38058)){return0;}ScriptContinueMakeItem(37089);if(IsFindItem(37089,ItemCount)==1){return1;}intCount=0;intSubCount;while(CountItemCount){MakeItem37089Material();if(MakeItem(37089)!=1){SubCount=0;intSucc=0;while(SubCount1){MakeItem37089Material();if(MakeItem(37089)==1){Succ=1;break;}SubCount++;Yield(0);}if(Succ==0){ShowText(MakeItem(37089)Failure);return0;}}while(IsMakingItem(37089)==1){RefreshStat(IsMakingItem37089);Yield(0);}if(IsFindItem(37089,ItemCount)==1){break;}Count++;Yield(0);}if(IsFindItem(37089,ItemCount)==1){return1;}return0;}voidMakeItem37089Material(){if(MakeItem45001(1)==0){ShowText(MakeItem45001Failure);return;}}boolMakeItem47009()//制作瓦斯{if(IsHaveNecessaryItem(47009)!=1){ShowText(HavenotNecessaryItem47009);returnfalse;}if(!ShiftStory(38023)){returnfalse;}if(ScriptContinueMakeItem(47009)){returnfalse;}MakeItem47009Material();if(MakeItem(47009)!=1){intCount=0;intSucc=0;while(Count1){MakeItem47009Material();if(MakeItem(47009)==1){Succ=1;break;}Count++;Yield(0);}if(Succ==0){ShowText(MakeItem(47009)Failure);returnfalse;}}while(IsMakingItem(47009)==1){RefreshStat(IsMakingItem47009);Yield(0);}returntrue;}boolMakeItem32024()//制作馒头{intDropRecycleItemCount=50;inti=0;intItemID=47009;//瓦斯intDropRecycleItemOrd;if(!MakeItem47009())returnfalse;ActiveNormalAI(0);//必须禁用普通状态aiwhile(iDropRecycleItemCount){//ItemID=GetDropRecycleItemID(i);DropRecycleItemOrd=GetFirstItemOrd(ItemID);while(DropRecycleItemOrd!=0){DropRecycleItemOrd=GetFirstItemOrd(ItemID);DropRecycleItem(DropRecycleItemOrd);Yield(0);}i++;}ActiveNormalAI(1);}voidMakeItem47009Material(){if(MakeItem37089(1)==0){ShowText(MakeItem37089Failure);return;}}intMakeItem45007(intItemCount)//制作柳安木{if(IsFindItem(45007,ItemCount)==1){return1;}return0;}intMakeItem45003(intItemCount)//制作柳安木材{if(IsFindItem(45003,ItemCount)==1){return1;}if(IsHaveNecessaryItem(45003)!=1){ShowText(HavenotNecessaryItem45003);return0;}if(!ShiftStory(38058)){return0;}ScriptContinueMakeItem(45003);if(IsFindItem(45003,ItemCount)==1){return1;}intCount=0;intSubCount;while(CountItemCount){MakeItem45003Material();if(MakeItem(45003)!=1){SubCount=0;intSucc=0;while(SubCount1){MakeItem45003Material();if(MakeItem(45003)==1){Succ=1;break;}SubCount++;Yield(0);}if(Succ==0){ShowText(MakeItem(45003)Failure);return0;}}while(IsMakingItem(45003)==1){RefreshStat(IsMakingItem45003);Yield(0);}if(IsFindItem(45003,ItemCount)==1){break;}Count++;Yield(0);}if(IsFindItem(45003,ItemCount)==1){return1;}return0;}voidMakeItem45003Material(){if(MakeItem45007(1)==0){ShowText(MakeItem45007Failure);return;}}boolMakeItem37006()//制作木制小齿轮{if(IsHaveNecessaryItem(37006)!=1){ShowText(HavenotNecessaryItem37006);returnfalse;}if(!ShiftStory(38036)){returnfalse;}if(ScriptContinueMakeItem(37006)){returnfalse;}MakeItem37006Material();if(MakeItem(37006)!=1){intCount=0;intSucc=0;while(Count1){MakeItem37006Material();if(MakeItem(37006)==1){Succ=1;break;}Count++;//Yield(0);}if(Succ==0){ShowText(MakeItem(37006)Failure);returnfalse;}}while(IsMakingItem(37006)==1){RefreshStat(IsMakingItem37006);Yield(0);}returntrue;}voidMakeItem37006Material(){if(MakeItem45003(1)==0){ShowText(MakeItem45003Failure);return;}}intMakeItem45008(intItemCount)//制作桧木{if(IsFindItem(45008,ItemCount)==1){return1;}return0;}voidMakeItem45004()//制作桧木材{if(IsHaveNecessaryItem(45004)!=1){ShowText(HavenotNecessaryItem45004);return;}if(!ShiftStory(38058)){return;}if(ScriptContinueMakeItem(45004)){return;}MakeItem45004Material();if(MakeItem(45004)!=1){intCount=0;intSucc=
本文标题:新漂流幻境炼金循环脚本(中级)
链接地址:https://www.777doc.com/doc-4264728 .html