The code won't fit... Pastebin.
http://pastebin.myrror.net/3015
Modifié par Peepsy, 25 octobre 2011 - 04:23 .
Modifié par Peepsy, 25 octobre 2011 - 04:23 .
case 4: // Moving WEST
167 {
168 --nCurAreaX;
169 sDestAreaX = GetNumberPadding(nCurAreaX) + IntToString(abs(nCurAreaX));
170 oArea = GetObjectByTag(sDestAreaX + sCurAreaY + sCurAreaZ);
171 lLoc = Location(oArea,Vector(fMaxAreaDim- fLandingOffset,vPCVector.y),fPCFacing);
172 if (nDEBUG) if (GetIsPC(oPC)) SendMessageToPC(oPC,"Moving West:" + "\\nDestination Area X TAG is " + sDestAreaX + "." + "\\nDestination Area Y TAG is " + sCurAreaY + ".");
173 if ((oArea != OBJECT_INVALID) && (GetAreaFromLocation(lLoc) == oArea))
174 {
175 SetLocalInt(oPC,"m_nZoning",TRUE);
176 TransportEffect(oPC,fTransitionDelay);
177 if (GetIsPC(oPC)) FloatingTextStringOnCreature("Moving West...",oPC);
178 DelayCommand(fTransitionDelay,AssignCommand(oPC,JumpToLocation(lLoc)));
179 DelayCommand(fTransitionDelay,SetLocalInt(oPC,"m_nZoning",FALSE));
180 DelayCommand(fTransitionDelay,ApplyEffectAtLocation(DURATION_TYPE_INSTANT,eZoneEffect3,lLoc));
181 }
182 break;
183 }