Jump to content
  • 0
Begin

Branch on specific map only

Question

4 answers to this question

Recommended Posts

  • 0
{
	Id: 604
	AegisName: "Branch_Of_Dead_Tree"
	Name: "Dead Branch"
	Type: "IT_DELAYCONSUME"
	Buy: 50
	Weight: 50
	BuyingStore: true
	Script: <"
		if ( strcharinfo(PC_MAP) == "prontera" ) {
			monster "this",-1,-1,"--ja--",-1,1,"";
			delitem 604, 1;
		}
		">
},

isn't that's the same answer I had said in rathena ?

Share this post


Link to post
Share on other sites
  • 0
On 6/4/2018 at 1:46 PM, AnnieRuru said:

{
	Id: 604
	AegisName: "Branch_Of_Dead_Tree"
	Name: "Dead Branch"
	Type: "IT_DELAYCONSUME"
	Buy: 50
	Weight: 50
	BuyingStore: true
	Script: <"
		if ( strcharinfo(PC_MAP) == "prontera" ) {
			monster "this",-1,-1,"--ja--",-1,1,"";
			delitem 604, 1;
		}
		">
},

isn't that's the same answer I had said in rathena ?

getting this error

 

[Error]: script:op_2: invalid data for operator C_LOR
[Debug]: Data: number value=0
[Debug]: Data: string value="06guild_01"
[Debug]: Source (NPC): FAKE_NPC (invisible/not on a map)
 tried to put 

    if ( strcharinfo(PC_MAP) == "prontera" || "06guild_01" || "morocc" ) {

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, ThyroDree said:

getting this error

 

[Error]: script:op_2: invalid data for operator C_LOR
[Debug]: Data: number value=0
[Debug]: Data: string value="06guild_01"
[Debug]: Source (NPC): FAKE_NPC (invisible/not on a map)
 tried to put 

    if ( strcharinfo(PC_MAP) == "prontera" || "06guild_01" || "morocc" ) {

Syntax is wrong

  if ( strcharinfo(PC_MAP) == "prontera" || strcharinfo(PC_MAP) == "06guild_01" || strcharinfo(PC_MAP)  == "morocc" ) {

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

×
×
  • Create New...

Important Information

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