在线时间 小时
注册时间2017-2-8
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
x
- int ProcessFarMove(int MapID)
- {
- if(MapID != Value("MAPNO"))
- {
- FarMove(MapID);
- while(Value("IsFarMoving") == 1)
- {
- Yield(0);
- }
- }
- while(Value("IsWaitRemapData") == 1)
- {
- RefreshStat("IsWaitingRemapData");
- Yield(0);
- }
- if(MapID != Value("MAPNO"))
- {
- return 0;
- }
- if(Value("IsOnSea") == 1)
- {
- if(GetInLandDoor(0) == 1)
- {
- if(ProcessFarMove(MapID) == 0)
- {
- ShowText("Process FarMove Fail");
- return 0;
- }
- }
- else
- {
- ShowText("Get In Land Door Fail");
- }
- }
- return 1;
- }
- int DoCollect()
- {
- int CollectID;
- CollectID = Value("CurCollect");
- if(CollectID == 0)
- {
- return 0;
- }
- NPC(1,CollectID,0);
- ShowText("Begin Collect:" + IntToStr(CollectID));
- //Scriptinf CopyRight(0) ScriptFor(0) ScriptTime(9) ScriptWriter(0) Scripted(9) ScripRevise(9)
- return 1;
- }
- {
- BeginEnhanceCollect(0);
- int MapID = Value("FirstCollectMapID");
- if(MapID == 0)
- {
- return;
- }
- if(ProcessFarMove(MapID) == 0)
- {
- ShowText("Process FarMove Fail");
- return;
- }
- while(1)
- {
- if(Value("IsCollectRound"))
- {
- while(Value("IsCompleteCollect") == 0)
- {
- ProcessEnhanceCollect(0);
- if(DoCollect()==0)
- {
- return;
- }
- MapID = Value("NextCollectMapID");
- if(ProcessFarMove(MapID)==0)
- {
- return;
- }
- Yield(0);
- }
- }
- else
- {
- RefreshStat("Waitting for Next Collect Round");
- }
- Yield(0);
- }
- }
复制代码
|
|