Jump to content
  • 0

script not working


Quesooo

Question


  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

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;

}

 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

Any errors? And are you sure that the script is loaded?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   55
  • Joined:  12/02/11
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   55
  • Joined:  12/02/11
  • Last Seen:  

25 minutes ago, Questune09 said:

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

 

Just check OnInit: to modify your likes.

http://immortalsro.com/rAScripts/lvlup_rewards.txt
 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

thank you again

Link to comment
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.   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.

×
×
  • Create New...