Jump to content
  • 0

Reward Max Lvl Script need help asap thnx!


Question

Posted (edited)

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

2 answers to this question

Recommended Posts

Posted

it should be 

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

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

Posted

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;

}

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