Jump to content
  • 0

Question

Posted

good day i would like to ask why this script not working???

 

is there something wrong with this script? should i missed some details??

 

also please help me how to make this a random item thank you

-	script	max_lv	99,{

	// Configuration
	OnInit:
		.max_base = 175;
		.max_job = 60;
		.item_id = 19546;
		.amount = 1;
		end;
		
	// Script
	OnPCBaseLvUpEvent:
	OnPCJobLvUpEvent:
		// Determine if Base Level and Job Level are max
		if (BaseLevel == .max_base && JobLevel == .max_job) {
			// Receive reward
			getitem .19546, .1;
			
			// Display confirmation message
			message strcharinfo(0), "Congratulations! You have received "+ .amount +" "+ getitemname(.item_id) +" for reaching the max level!";
		}
		
		end;

}

 

6 answers to this question

Recommended Posts

  • 0
Posted

oops sorry for wrong post hahahaha

 

yes i already loaded that script but its not working as well 2 players already reach max lvl 175 and job 60 but they got nothing

  • 0
Posted
43 minutes ago, Questune09 said:

good day i would like to ask why this script not working???

 

is there something wrong with this script? should i missed some details??

 

also please help me how to make this a random item thank you


-	script	max_lv	99,{

	// Configuration
	OnInit:
		.max_base = 175;
		.max_job = 60;
		.item_id = 19546;
		.amount = 1;
		end;
		
	// Script
	OnPCBaseLvUpEvent:
	OnPCJobLvUpEvent:
		// Determine if Base Level and Job Level are max
		if (BaseLevel == .max_base && JobLevel == .max_job) {
			// Receive reward
			getitem .19546, .1;
			
			// Display confirmation message
			message strcharinfo(0), "Congratulations! You have received "+ .amount +" "+ getitemname(.item_id) +" for reaching the max level!";
		}
		
		end;

}

 

Typo:

getitem .19546, .1;

To

getitem .item_id, .amount;
  • Upvote 1
  • 0
Posted
15 hours ago, Kaze said:

Typo:


getitem .19546, .1;

To


getitem .item_id, .amount;

thank you how about making a random item??? if players reach the max lvl and max job lvl he will get a random item

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