Jump to content
  • 0

Reward Max Lvl Script need help asap thnx!


louigui0224

Question


  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  139
  • Reputation:   0
  • Joined:  06/22/14
  • Last Seen:  

i dont know if there is any wrong in this script but i recieved error on map server.

•prontera.gat,153,198,5 script Reward NPC 99,{

set .@MaxBLevel,150;
set .@MaxJLevel,70;
set .@item,501;


if (BaseLevel != 150.@MaxBLevel || JobLevel != 70.@MaxJLevel || LReward == 1) end;
mes "Congratulations, you've achieve the max level in the server, here's your reward!";
getitem .@item,1;
set #LReward,1;
close;


}
 
 
and look at this image
 
post-26871-0-77897900-1403606641_thumb.png
Edited by Missingno
Codeboxed
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  86
  • Reputation:   6
  • Joined:  06/24/14
  • Last Seen:  

it should be 

•prontera.gat,153,198,5 script Reward NPC 99,{

prontera.gat,153,198,5<tab>script<tab>Reward NPC<tab>99,{

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   41
  • Joined:  02/05/14
  • Last Seen:  

Give this a try (automated):

-	script	max_lv	99,{

	// Configuration
	OnInit:
		.max_base = 150;
		.max_job = 70;
		.item_id = 501;
		.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 .item_id, .amount;
			
			// 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

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