Advertisement
AhmedSokr

Untitled

Nov 13th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. public static unsafe Map dynamicMap;
  2.  
  3. #region Monster/items/only 1 in day
  4. case 30160:
  5. {
  6. switch (npcRequest.OptionID)
  7. {
  8. case 0:
  9. {
  10. if (client.Entity.Level >= 1)
  11. {
  12. dialog.Text("Cant join in Houes you Uesd It .");
  13. dialog.Option("Thanx [Gm].", 255);
  14. dialog.Avatar(116);
  15. dialog.Send();
  16. break;
  17. }
  18.  
  19. dialog.Text("The~Map~is~open.~Welcome~to~challenge~other~people.~The~admission~fee~is~only~50~silver.If~you~PK~in~the~map,~you~will~not~gain~or~lose~any~experience~or~items~equipped,~and~will~get~revived~at~the~place~you~die.The~Kungfu~circle~is~very~dangerous,~I~suggest~you~PK~in~area.");
  20. dialog.Option("Enter~the~map.", 1);
  21. dialog.Option("Just~passing~by.", 255);
  22. dialog.Avatar(7);
  23. dialog.Send();
  24. break;
  25. }
  26. case 1:
  27. {
  28. {
  29. if (!Kernel.Maps.ContainsKey(3081))
  30. new Map(3081, Database.DMaps.MapPaths[3081]);
  31. Map origMap = Kernel.Maps[3081];
  32. dynamicMap = origMap.MakeDynamicMap();
  33. client.Entity.Teleport(origMap.ID, dynamicMap.ID, 50, 40);
  34. }
  35. break;
  36. }
  37. }
  38. break;
  39. }
  40. #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement