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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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