Autopilot (for FB Airline Manager)

Posted by: Fahad Alduraibi  /  Category: Games, Tricks
After being bored with Airline Manager in Facebook in which you have to keep watching your airplanes when they arrive to send them in another flight, I decided to write my own script to use with greasemonkey in FireFox to do that thing for me. Basically, you will need a computer that is connected to the internet and running for most of the time. Install Firefox and add the Greasemonkey add-on to it, then install my script in greasmonkey and enable it if it is not enabled by default. Now when you visit the flight section of the game under facebook you will see the Auto Pilot control box (shown below) in the left column. Simply set the time that you want the script to repeat the task then click on the button. That’s it, now just watch the script fly the first 10 ready airplanes and the count down will start to trigger the next run.
كثير منا يجد العاب الفيسبوك (Facebook) مملة بعد فترة من اللعب بسبب ان اسلوب اللعب يصبح متكر ورتيب ومن امثلتها لعبه مدير الطيران (Airline manager) اذ يجب عليك متابعه مئات من الطائرات وانتظار وصولها لكي تقوم بارسالها مرة اخرى في رحلة جديدة، فلذك السبب قمت ببرمجة برنامج صغير يعمل في متصفح الفايرفوكس (Firefox) تحت اضافة قريسمونكي (Greasemonkey). فاذا كنت من من يلعب هذه اللعبة وعندك جهاز متصل بالانترنت ويعمل بشكل مستمر فكل ما عليك هو تركيب متصفح الفايرفوكس واضافة القريسمونكي له ثم تحميل برنامجي فيه ومن ثم قم بقتح صفحة اللعبة من الفيسبوك واضغط على رابط الطيران (Flight) و سوف تجد ادوات التحكم ظاهرة في الجهه اليسرى من الصفحة كما تراها في الصورة التالية. قم بتحديد الزمن الذي تريدة لتكرار عملية الطيران ثم اضغط زر (Auto Pilot) فسيقوم البرنامج بارسال اول 10 طائرات جاهزة ثم سيكرر العملية بعد انقضاء العد التنازلي.

Auto Pilot control box
Here is an image showing the position on the control box in the page: هذه الصوره توضح موقع ادوات التحكم في الصفحة:
Autopilot-AirlineManager
Version: 1.2.3
Change log:

1.2.3:

  • Fuel, now you can auto buy fuel by checking the fuel checkbox and setting the maximum amount needed and the highest price. It will check once every hour.
    (I found a way to fly the airplanes even with no fuel (negative amount) and was about to include it in the script but thought that would be cheating so I did not.)

1.2.2:

  • Added ability to buy catering by selecting the type and amount, so it buys them before flying the airplanes. But you have to make sure that you put the right amount for the selected catering type (minimum and maximum) by following the values giving by the game otherwise it will not buy them. And when the catering finishes it will buy them again in the next round.

1.2.1:

  • Added Note taker to keep notes about the game, like airport names, what to buy next…etc.
  • Fixed a bug in autoupdate if the version file on the server is not accessible.
  • Added a timeout for waiting loops so they will not loop forever in case a page did not load correctly.
  • Refresh (reload) the facebook page, including AM page, every 20 iterations to overcome a bug in AM (which i have no control over) that appears after keeping the script running for long time.

1.2.0:

This version went through a restructuring of the code. In the previous versions I was injecting the whole code inside the AM page (AM iframe inside Facebook page to be precise) and because of that I was also storing the script settings as AM cookies. This approach is simple and makes interacting with the page easy, however, it makes it easy for AM admins to detect the script by either adding a function that searches for my functions or the entries in the cookies. In order to solve this problem I changed the way the script works. Now when you open the AM game under Facebook my script will be loaded twice, the first instance will load under Facebook frame and it will inject the AP Control box in that frame, which AM has no access to so they cannot detect it. The second instance will load under AM frame, however, it will not inject anything but rather will remain in Greasemonkey sandbox and that is also hidden from AM cannot be detected. The last thing is the settings which are now being stored in Firefox itself under GM settings using GM functions (GM_getValue & GM_setValue). The two script instances are working separately and cannot communicate with each other since they run under different domains (facebook.com & airlinemanager.activewebs.dk) as this is a security feature enforced by Firefox to prevent malicious websites from accessing other websites functions and variables. To overcome this obstacle I used the GM stored settings which are shared by both instances to communicate. In addition to all of that I added some randomization to the timer so executing the tasks will not happen at the exact intervals.

  • Replaced using (eval) which can be harmful with location.assign
  • Settings are not stored in AM cookies anymore.
  • No code injection in AM page.
  • Time randomization.
  • Repairs and C-Check have their own check box so you can do one and not the other.
  • Auto check for script update every 3 days.
  • The timer now loops every 5 seconds instead of every 1 second to reduce the load on the browser.

* Note:

  • I recommend removing the stored cookies by the older version (delete all cookies if you are not sure how).
  • Even with all of these precautions this automating script can still be detected by AM admin if they want to, even though I don’t expect them to do it but they can detect and close your AM account. (Farmville knows about the automation tools and the users who use them but they did not prevent/block them because it did not harm them, rather it might have increase their users by keeping the lazy ones like me.)
  • I expect this version to have many bugs, because I did many changes. Also there are still some changes that I wanted to do but decided to release this first and work later on these changes and whatever bugs you guys find.

1.1.2:

  • More enhancement to the C-Check and Repair, it should miss less repairs and checks now. Basically I increased the waiting delay between tasks to give more time for the pages to load before starting the new one. If your internet connection is slow and the script does not work as it should then try increasing the delay by modifying this part of the script “fDelay=5000″, 5000 means 5 seconds, set the value to something suitable for your net speed.
  • Repairs and C-Checks will not work after the new AM update (April-08), so in order to keep using the script to fly airplanes uncheck the repair box, and kindly wait for the coming update.

1.1.1:

  • Solved the problem of not working under Firefox 3.6.x.
  • Removed the dependency on jQuery.
  • Fixed a bug that causes the control box not to show if the airline is not AM trusted.
  • The C-Check and Repairs are not perfect and it get missed sometimes

1.1.0:

  • Major change in how the script works.
  • Added the ability to repair airplanes and do C-Check before flying them.
  • Save control box settings in AM cookies.
  • Will load on all AM pages not just the Flight page.
  • Fixed the file name so it will install directly by greasmonkey
  • This version does not work with the new Firefox 3.6.x, I am trying to solve this issue.

1.0.0:

  • Inisial release.
سجل التغييرات:

1.2.3:

  • بالامكان الان شراء الوقود بشكل تلقائي، كل ما عليك هو تفعيل الخيار ثم تحديد الكمية القصوي في خزان الوقود واعلى سعر للشراء. سيقوم البرنامج بالتحقق من سعر الوقود والشراء كل ساعة.
    (توصلت الى طريقة لشغيل الطائرات حلى في حال نفاذ الوقود (خزان الوقود بالسالب) لكن قمت بحدفها من البرنامج لانني اعتبرتها غش صريح)

1.2.2:

  • امكانية شراء الاطعمة على الطائرة، كل ما عليك هو اختيار نوع وكمية الوجبات لكن يجب الالتزام بقوانين اللعبة من ناحية الكمية المحدده (اعلى وادنى حد). وفي حال نفاذ المخزون سيتم شراء كمية اخري قبل بدء الرحلة الجديدة.

1.2.1:

  • اضافة مدونة تمكنك من حفظ بعض المعلومات الخاصة باللعبة مثل اسماء المطارات واسعار الطائرات…الخ.
  • اصلاح مشكلة في عملية التحديث التلقائي في حال تعثر الارتباط مع خادم التحديث.
  • تعديل في البرنامج لمنعه من العمل بشكل خاطي (دوامة ابدية) في حال عدم تحميل الصفحة بشكل صحيح.
  • تحديث صفحة الفيسبوك في كل 20 مرة لحل مشكلة موجودة في صفحة AM تتراكم بعد فترة من العمل.

1.2.0:

  • تعديلات كبيرة في البرنامج. البرنامج الان يعمل من القريسمونكي وليس من داخل الصفحة وذلك لتقليل امكانية اكتشافة من قبل مصممي اللعبة.
  • عدم استخدام امر eval واستبدالة بـ location.assign.
  • اضافة وقت عشوائي للعد التنازلي لتقليل امكانية اكتشاف البرنامج من قبل مصممي اللعبة.
  • ايقاف استخدام الكوكيز الخاصة بموقع AM والاستعاضة بحفظ الاعدادات في الفايرفوكس.
  • البحث عن تحديث للبرنامج من الموقع كل ثلاث ايام.
  • العداد التنازلي يتغير كل 5 ثواني بدل كل ثانية وذلك لتقليل الحمل على المتصفح.
  • عزل عملية الاصلاح والصيانة فيمكن تنفيذ احدهما وترك الاخرى.

1.1.2:

  • تعديل بسيط على البرنامج لتحسين عملية اصلاح الاعطال والصيانة. قمت بزيادة وقت الانتظار في تنفيذ الاوامر لاعطاء فرصة للصفحة الموقع ان تكمل الفتح. فاذا كان اتصال الانترنت بطيئا وكان البرنامج لايعمل بشكل صحيح بسبب البطء يمكنك زيادة وقت الانتظار بتعديل القيمة التالية في ملف البرنامج “fDelay=5000″، القيمة 5000 تعني 5 ثواني، قم بتغييرها لقيمة تتناسب مع سرعة النت عندك.
  • الاصلاحات والصيانة لم تعد تعمل بعدما تم تعديل في اللعبة (8 ابريل) فالى ان يتم حل هذه المشكلة يمكنك استخدام البرنامج بالغاء خيار الاصلاح (Repair).

1.1.1:

  • حل مشكلة عدم عمل البرنامج مع فايرفوكس 3.6
  • الغاء الاعتمادية على كود jQuery
  • اصلاح خلل قد يسبب عدم عمل ادوات التحكم اذا كانت الخطوط غير حاصلة على AM trusted.
  • عميلة الاصلاح والصيانة غير دقيقة واحيانا لا تنفذ

1.1.0:

  • تغيير كبير في طريقة عمل البرنامج
  • امكانية اصلاح الطائرات وعمل الصيانة
  • حفظ اعدادات المستخدم في الكوكيز
  • البرنامج يعمل من اي صفحة من صفحات AM
  • تعديل اسمل الملف لكي يتم تحميلة الى قريسمونكي مباشرة
  • الاصدار هذا لايعمل من فايرفوكس الجديد 3.6 لكن هناك محاولات لحل المشكلة.

1.0.0:

  • الاصدار الاولي
Disclaimer: The author of this script cannot be held responsible for any thing that might result from using this code, so use it at your own risk. تنويه: المبرمج لن يتحمل مسئولية اي اضرار قد تنجم عن استخدام هذا البرنامج، فاستخدمة على مسؤليتك.

طريقة تخصيص اعداد الاوفيس 2007

كتبة: فهد الدريبي  /  التصنيف: Tricks, Windows

إذا كنت تعمل في مجال تقنية المعلومات (IT) او انك ذو المام بتركيب البرامج وتقوم بتركيب برنامج الاوفيس 2007 على العديد من الاجهزة فان هذا الموضوع قد يساعدك في جعل تلك المهمة اسهل بكثير مما اعتدت عليه.

توفر ميكروسوفت امكانية تعديل وتخصيص الاعدادات الافتراضية لبرنامج اعداد الاوفيس (Setup) مما يمكنك من تركيب البرنامج فيما بعد بضغطة زر واحدة، واليكم الطريقة بالصور.

عذيب ومشاكل اتصال الوايماكس

كتبة: فهد الدريبي  /  التصنيف: Networks, Tricks

في البداية اهني من يوجد عندهم تغطية لشبكة الوايماكس (WiMAX) الخاصة بشركة عذيب (Go) بتلك الخدمة اللتي انقذتنا من احتكار شركة الاتصالات. عند بدء الخدمة اشرت على احد اخوتي بالغاء خدمة الدي اس ال (DSL) والاشتراك مع “قو” بسرعة 2 ميقا، قمت بتجربة السرعة مع موقع Speedtest لخادمين في الرياض واوروبا وكانت النتائج تبعث على السرور وانمتى ان تبقى كذلك خصوصا بعد ازدياد عدد المشتركين.

Go-Speedtest-Riyadh

Go-Speedtest-Rome

اقرأ أكثر…

الكتابة من اليمين لليسار في GMail

كتبة: فهد الدريبي  /  التصنيف: Tricks

اذا كنت من مستخدمي بريد الجيميل (GMail) بالواجهه الانجليزية فلربما احتجت الى تحويل اتجاه انسياب النص من اليسار لليمين الى الاتجاة العربي وهو من اليمين لليسار. امكانية التغيير متوفرة في الجيميل اذا كانت واجهة الاستخدام عربية عن طريق ازرار في شريط الادوات ولكنها مخفية في الواجهة الانجليزية ونتحتاج الى تفعيل.

طريقة التفعيل سهلة جدا وهذه هي الخطوات:

  1. انتقل الى صفحة الاعدادات عن طريق اختيار “Settings” من الزاوية اليمنى في اعلى الشاشة.
  2. في اول صفحة الاعدادات وفي نهاية السطر Language اضغط على “Show all language options”.
  3. سيظهر لك خياران الاول لاخفاء الازرار والثاني لتفعيلها قم باختيار الثاني (الوضع ON) ثم احفظ التعديلات.
  4. قم بانشاء رسالة جديدة وسوف تجد ازرار تغيير الاتجاة موجودة في شريط الادوات.

احصل على بطل في ترافيان بدون أن تخسر جندي او فارس

كتبة: فهد الدريبي  /  التصنيف: Games, Tricks

(الطريقة هذه لا تعمل الان… يبدو ان الشركة قد حلت المشكلة)

هذا الموضوع يتحدث عن خدعة بسيطة اكتشفتها خلال لعبي للعبة الحرب ترافيان. كما يعلم لاعبوا ترافيان انه بامكانك الحصول على بطل واحد في قريتك وذلك بتدريب احد جنودك او فرسانك في قصر الابطال تدريب خاص يحول ذلك الجندي او الفارس الى بطل قوي. لكن هل بامكانك تدريب بطل مع ابقاء ذلك الجندي او الفارس؟ اقرأ أكثر…

Get a Travian Hero without losing a soldier or a knight

Posted by: Fahad Alduraibi  /  Category: Games, Tricks

This is a small trick that I found while i was playing Travian, the online real-time war game. Travian players know that you can have only one hero for you village, and this hero is just one of your regular soldiers or knights that you choose to have a special training that makes him much stronger. So as I have said you have to taking an existing soldier and convert him to a hero. But what if you can train a hero from nothing and without losing any soldier or knight? Read more…