Shrooms

Untitled

Jan 11th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. unsigned char MonsterIndex = 0;
  2. unsigned long ulEBX;
  3.  
  4. ulEBX = ReadPointer(MobBase, Mob1);
  5.  
  6. if (MonsterIndex == 0)
  7. {
  8. ulEBX = GetValue(ulEBX, Mob2);
  9. }
  10. else if (MonsterIndex == 1)
  11. {
  12. ulEBX = GetValue(ulEBX, -0x0C);
  13. ulEBX = GetValue(ulEBX, 0x14);
  14. }
  15. else if (MonsterIndex == 2)
  16. {
  17. ulEBX = GetValue(ulEBX, -0x0C);
  18. ulEBX = GetValue(ulEBX, Mob2);
  19. ulEBX = GetValue(ulEBX, 0x14);
  20. }
  21. else if (MonsterIndex == 3)
  22. {
  23. ulEBX = GetValue(ulEBX, -0x0C);
  24. ulEBX = GetValue(ulEBX, Mob2);
  25. ulEBX = GetValue(ulEBX, Mob2);
  26. ulEBX = GetValue(ulEBX, 0x14);
  27. }
  28.  
  29. if (!GetValue(ulEBX, MobDeath))
  30. {
  31. if (++MonsterIndex > 3)
  32. {
  33. MonsterIndex = 0;
  34. }
  35. continue;
  36. }
  37.  
  38. ulEBX = GetValue(ulEBX, Mob3);
  39. ulEBX = GetValue(ulEBX, Mob4);
  40.  
  41. Teleport(GetValue(ulEBX, MobX) - RangeX, GetValue(ulEBX, MobY) - RangeY);
Advertisement
Add Comment
Please, Sign In to add comment