Jump to content
  • 0

Why it doesn't spawn mobs


Question

Posted

and i also want to add death penalty each time the player dies 50% of his farmed items will be deleted 

Here is the Script

 

prontera,145,155,5    script    NFT Zone    757,{
waitingroom "NFT  Zone",0;

mes "Would you like to go to to the NFT Zone?";
switch(select("Yes[^FF0000"+getmapusers("guild_vs5.gat")+"^000000]:No")) {
case 1:
if(class == 0 || class == 0 || class == 0) {
warp "guild_vs5" ,50,50;
}
else {
mes "I'm sorry but you need to be a Novice in order to enter this room.";
close;
}

case 2:
close;
}

OnInit:
waitingroom "NFT Zone",0;
end;
}

guild_vs5,25,26,3 script Exit 729,{
mes "[^ffaa7fNFT Zone^000000]";
mes "Would you like to leave?";
menu "Yes let me leave!",-,"No I want to stay!",L_Stay;
mes "Goodbye!";
close2;
sleep 500;
warp "prontera",156,191;

L_Stay:
mes "Then stay in this room!";
close;
}
// Mob Spawn
guild_vs5,0,0,0,0    monster    Gcash Plant    1750,300,0,0,0
//mapflag
guild_vs5 mapflag nowarp
guild_vs5 mapflag nowarpto
guild_vs5 mapflag noteleport

5 answers to this question

Recommended Posts

  • 0
Posted (edited)
27 minutes ago, abdol said:

and i also want to add death penalty each time the player dies 50% of his farmed items will be deleted 

Here is the Script

 

prontera,145,155,5    script    NFT Zone    757,{
waitingroom "NFT  Zone",0;

mes "Would you like to go to to the NFT Zone?";
switch(select("Yes[^FF0000"+getmapusers("guild_vs5.gat")+"^000000]:No")) {
case 1:
if(class == 0 || class == 0 || class == 0) {
warp "guild_vs5" ,50,50;
}
else {
mes "I'm sorry but you need to be a Novice in order to enter this room.";
close;
}

case 2:
close;
}

OnInit:
waitingroom "NFT Zone",0;
end;
}

guild_vs5,25,26,3 script Exit 729,{
mes "[^ffaa7fNFT Zone^000000]";
mes "Would you like to leave?";
menu "Yes let me leave!",-,"No I want to stay!",L_Stay;
mes "Goodbye!";
close2;
sleep 500;
warp "prontera",156,191;

L_Stay:
mes "Then stay in this room!";
close;
}
// Mob Spawn
guild_vs5,0,0,0,0    monster    Gcash Plant    1750,300,0,0,0
//mapflag
guild_vs5 mapflag nowarp
guild_vs5 mapflag nowarpto
guild_vs5 mapflag noteleport

update and change your script from.

guild_vs5,0,0,0,0    monster    Gcash Plant    1750,300,0,0,0

to this

guild_vs5,0,0,0,0    monster    Gcash Plant    1750,300

Edited by AceofSpades
  • 0
Posted
22 minutes ago, AceofSpades said:

update and change your script from.

guild_vs5,0,0,0,0    monster    Gcash Plant    1750,300,0,0,0

to this

guild_vs5,0,0,0,0    monster    Gcash Plant    1750,300

still doesnt add mobs after reloading script 

  • 0
Posted
32 minutes ago, AceofSpades said:

check your server status what error did you encounter.... and make sure you have that mobs in your db

I Fixed it. and i just now want to add something like this 

only level 10 and below novice can enter

 

and death penalty

 

here is the new script 

 

 

 

prontera,145,158,5    script    NFT Zone    757,{
waitingroom "NFT Area",0;

mes "Would you like to go to to the NFT Zone?";
switch(select("Yes[^FF0000"+getmapusers("guild_vs5.gat")+"^000000]:No")) {
case 1:
if(class == 0 || class == 0 || class == 0) {
warp "guild_vs5" ,50,50;
}
else {
mes "I'm sorry but you need to be a Novice in order to enter this room.";
close;
}

case 2:
close;
}

OnInit:
waitingroom "NFT Zone",0;
end;
}
// Mob Spawn
guild_vs5,0,0,0,0    monster    Gcash Plant    1750,300,0,0,0
// Exit
guild_vs5,49,49,5    script    Exit#1    790,{
warp "prontera",155,181;
end;
OnInit:
waitingroom "Prontera",0,0;
end;
}
 

  • 0
Posted
prontera,145,158,5    script    NFT Zone    757,{
	mes "Would you like to go to to the NFT Zone?";
	switch(select("Yes[^FF0000"+getmapusers("guild_vs5.gat")+"^000000]:No"))
	{
		case 1:
			if(Class == 0 && BaseLevel <= 10)
				warp "guild_vs5" ,50,50;
			else
				mes "I'm sorry but you need to be a Novice in order to enter this room.";
			end;

		case 2:
			close;
	}

OnInit:
	waitingroom "NFT Zone",0;
	end;
}
guild_vs5	mapflag	nopenalty

// Mob Spawn
guild_vs5,0,0,0,0    monster    Gcash Plant    1750,300,0,0,0

// Exit
guild_vs5,49,49,5    script    Exit#1    790,{
	warp "prontera",155,181;
	end;
OnInit:
	waitingroom "Prontera",0,0;
	end;
}

 

 

Didn't notice you also wanted to delete half of players items on die, here is the full script.

prontera,145,158,5	script	NFT Zone	757,{
	mes "Would you like to go to to the NFT Zone?";
	switch(select("Yes[^FF0000"+getmapusers("guild_vs5.gat")+"^000000]:No"))
	{
		clear;
		case 1:
			if(Class == 0 && BaseLevel <= 10)
				warp "guild_vs5" ,50,50;
			else
				mes "I'm sorry but you need to be a Novice in order to enter this room.";
			end;

		case 2:
			close;
	}
end;
	
OnPCDieEvent:
	for(.@i = 0; .@i < getarraysize(.map_list$); ++.@i) {
		getmapxy(.@map$,.@x,.@y,BL_PC);
		if(.@map$ == .map_list$[.@i]) {
			if(Class == 0) {
				getinventorylist;
				for(.@i = 0;  .@i < @inventorylist_count; ++.@i) {
					delitem @inventorylist_id[.@i],@inventorylist_amount[.@i]/2;
				}
			}
		}
	}
end;
	

OnInit:
	setarray .map_list$, "guild_vs5"; // List of maps items will be deleted
	waitingroom "NFT Zone",0;
	end;
}
guild_vs5	mapflag	nopenalty

// Mob Spawn
guild_vs5,0,0,0,0	monster	Gcash Plant	1750,300,0,0,0

// Exit
guild_vs5,49,49,5	script	Exit#1	790,{
	warp "prontera",155,181;
	end;
OnInit:
	waitingroom "Prontera",0,0;
	end;
}

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