Jump to content
  • 0

How to fix map to get item?


Question

Posted
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.

5 answers to this question

Recommended Posts

  • 0
Posted

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~

  • 0
Posted
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

  • 0
Posted
-    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
  • 0
Posted
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.

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.

  • Recently Browsing   0 members

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