Jump to content

Martin Potter

Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    5 S Lake St Lake View, Io

Martin Potter's Achievements

Poring

Poring (1/15)

  • First Post

Recent Badges

1

Reputation

  1. To modify your script so that the NPC checks for 6 different item requirements before allowing the player to use the warp, you need to enhance the F_Warp function to handle multiple items and their respective quantities. Here is a modified version of your script that checks for 6 different items and their amounts before warping the player: lhz_dun03,239,78,4 script Bio Entrance 651,{ function F_Warp; if (countitem(501) > 0 && countitem(502) > 0 && countitem(503) > 0 && countitem(504) > 0 && countitem(505) > 0 && countitem(506) > 0) goto case_1; else { mes "You do not have the required items to use this warp."; close; } case_1: F_Warp([501, 502, 503, 504, 505, 506], [1, 1, 1, 1, 1, 1], "lhz_dun04", 244, 61); end; end; function F_Warp { .@items = getarg(0); .@amounts = getarg(1); .@map$ = getarg(2, ""); .@x = getarg(3, 0); .@y = getarg(4, 0); for (.@i = 0; .@i < getarraysize(.@items); .@i++) { if (countitem(.@items[.@i]) < .@amounts[.@i]) { mes "You do not have enough of item " + .@items[.@i] + " to use this warp."; close; } } for (.@i = 0; .@i < getarraysize(.@items); .@i++) { delitem .@items[.@i], .@amounts[.@i]; } warp .@map$, .@x, .@y; return; } } fireboy and watergirl
  2. The issue seems to be related to network configuration and IP addresses used in your server settings. Here’s a breakdown of the possible issues and solutions: Problem Identification IP Binding: bind_ip: 127.0.0.1 restricts the server to accept connections only from the local machine. This configuration means your server is not listening to external connections properly, causing the clients to timeout. Mismatch in IPs: Your char_ip and map_ip should be consistent and properly configured to allow connections within your LAN. Subnet Configuration: Ensure that your subnet is correctly set up to allow internal communication between the server and clients.
×
×
  • Create New...