Jump to content
  • 0
Sign in to follow this  
astralprojection

Any work in progress .....

Question

{
	Id: 12221
	AegisName: "Megaphone_"
	Name: "Megaphone"
	Type: "IT_DELAYCONSUME"
	Buy: 2
	Weight: 10
	Trade: {
		nodrop: true
		notrade: true
		noselltonpc: true
		nocart: true
		nogstorage: true
		nomail: true
		noauction: true
	}
	Script: <" callfunc "F_Megaphone"; ">
},

 

function	script	F_Megaphone	{
	if (Class == 0) {
		dispbottom "Sorry, you can't use the channel while still a Novice";
		end;
	}
	if (strcharinfo(PC_MAP) == "sec_pri" ) {
		dispbottom "Sorry, you can't use the channel in jail.";
		end;
	}
	input @megaphone$;
	loudhailer(@megaphone$);
	end;
}

1. Using novice use megaphone = "Sorry, you can't use the channel while still a Novice
2 try again = Any work in progress (NPC dialog....

any idea where i messed it up? 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
On 4/21/2022 at 5:45 PM, IndieRO said:

as you can see on the function 
megaphone can't use by job Novice

Yes its true but it should return the dispbottom message if used by novice.
The problem after  2nd try (still novice)  it display  .... Any work in progress (NPC dialog.... and need to relog to use again.

Edited by astralprojection

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.