Jump to content

Random spawn by quest


Recommended Posts

  • Active Member

Hi guys,

how can I do random spawn into a map when I'll warp? I need a quest for this. For example I warp into a map and spawn at top corner of map and when I go again into the map I will spawn at the bottom corner.

Thank you for your answers!

Kind Regards ReFresh

I'll be always helpful! 👊 

Link to comment
Share on other sites

  • Active Member
On 7/19/2016 at 10:33 AM, iltizio said:

local list = {{2453,8758},{5678,88766}}

local index = number(0,table.getn(list)-1)

local x = list[index][0]

local y = list[index][1]

Can you implement it to this quest?

Edited by ReFresh
  • Good 1

I'll be always helpful! 👊 

Link to comment
Share on other sites

  • Active Member
15 hours ago, kodepiko said:

I can do this for you but at first you need to give me INDEX of this map, and LOCAL coordinates (for ex. 200, 68  of every corner / bottom) and mob vnum

Thank you. There is the quest: http://pastebin.com/mrQu0FGw

And coordinates are here:

{6000, 288400}, {11900, 291700}, {19800, 287400}, {16100, 293300}, {10600, 295700}, {19200, 299500}, {12500, 293800}

  • Love 1

I'll be always helpful! 👊 

Link to comment
Share on other sites

  • Active Member
19 hours ago, kodepiko said:

Here is quest: http://pastebin.com/3zDpuL01

I don't know your mob vnum so you need to replace MOB_VNUM and MAP_INDEX with index of map you are warping to..

I asked for local coordinates, not global... I told you local are for ex. 568, 115 (exactly x, y of your character on minimap) - so you need to change them :)

Thank you very much! I didn't know that it's so easy :D

I'll be always helpful! 👊 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 113

      Ulthar SF V2 (TMP4 Base)

    2. 2

      Feeding game source to LLM

    3. 0

      Target Information System

    4. 2

      Feeding game source to LLM

    5. 2

      anti exp explanation pls

    6. 2

      Feeding game source to LLM

    7. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.