Jump to content
  • 0

How to fix map to get item?


ooGubAoo

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.06
  • Content Count:  43
  • Reputation:   1
  • Joined:  06/08/23
  • Last Seen:  

Quote

-    script    Freeitem    FAKE_NPC,{
    OnInit:
        .min_lvl = 70;
        .item_id = 501;
        .amount = 1;

        .item_name = getitemname(.item_id);
    end;

    OnClock0000:
        addrid(0);

        if(BaseLevel < .min_lvl) end;

        getitem(.item_id, .amount);
        message(strcharinfo(0), "ท่านได้ของรางวัลเป็น " +  .@item_name$ + ".");
}

Can i fix map Izlude to get item?

I must add what to fix map.

Thank you to help.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  896
  • Reputation:   117
  • Joined:  05/23/12
  • Last Seen:  

In the script is nothing depends on izlude.

 

Walk through:

OnClock loop throw every online player. Attach them and check the map of the player and give them an item.

 

Rynbef~

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.06
  • Content Count:  43
  • Reputation:   1
  • Joined:  06/08/23
  • Last Seen:  

On 11/1/2023 at 6:26 PM, Rynbef said:

In the script is nothing depends on izlude.

 

Walk through:

OnClock loop throw every online player. Attach them and check the map of the player and give them an item.

 

Rynbef~

How to change can get item in map izlude

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  232
  • Reputation:   86
  • Joined:  06/30/18
  • Last Seen:  

-    script    Freeitem    FAKE_NPC,{
    OnInit:
        .min_lvl = 70;
        .required_map$ = "izlude";
        .item_id = 501;
        .amount = 1;

        .item_name = getitemname(.item_id);
    end;

    OnClock0000:
        addrid(0);

        getmapxy(.@current_map$, .@x, .@y);

        if(BaseLevel < .min_lvl || .@current_map$ != .required_map$) end;

        getitem(.item_id, .amount);
        message(strcharinfo(0), "ท่านได้ของรางวัลเป็น " +  .@item_name$ + ".");
}

 

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.06
  • Content Count:  43
  • Reputation:   1
  • Joined:  06/08/23
  • Last Seen:  

On 11/3/2023 at 7:12 PM, Winterfox said:
-    script    Freeitem    FAKE_NPC,{
    OnInit:
        .min_lvl = 70;
        .required_map$ = "izlude";
        .item_id = 501;
        .amount = 1;

        .item_name = getitemname(.item_id);
    end;

    OnClock0000:
        addrid(0);

        getmapxy(.@current_map$, .@x, .@y);

        if(BaseLevel < .min_lvl || .@current_map$ != .required_map$) end;

        getitem(.item_id, .amount);
        message(strcharinfo(0), "ท่านได้ของรางวัลเป็น " +  .@item_name$ + ".");
}

 

Thank You very much.

Thank to help every time.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

 addrid(0);

change to

 addrid(5, 0, "izlude");

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...