Jump to content
  • 0

Only new character will participate on Events


Nyx21

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  02/04/21
  • Last Seen:  

Hello scriptwriter can anyone help on this script,

I want to repeat the race 99/70 event but I want only new character will participate in that event.
The old character that not yet reach 99/70 max level will not allowed to join on the events.
Here is the script. please anyone guide me or edit this script to work on my explanation.

 prontera,140,178,5    script    Race-To-99    100,{
    if (BaseLevel < 99) {
        npctalk "Sorry, Only Lvl 99 can claim the reward!";
        end;
    }
    if (JobLevel < 70) {
        npctalk "Sorry, Only Job Lvl 70 can claim the reward!";
        end;
    }
    if ($ItemGive == 100) {
        npctalk "Sorry, all rewards has been taken!";
        end;
    }
    if (getreward) {
        npctalk "Sorry, Nothing for you!";
        end;
    }
    announce "Congratulations! "+strcharinfo(0)+" has claimed his reward for Race to 99 Event", bc_all;
    getitem 501, 100;
    ++$ItemGive;
    getreward = 1;
    sleep 2000;
    announce "There are "+(100 - $ItemGive)+" rewards left to give!", bc_all;
    end;
}

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  211
  • Reputation:   17
  • Joined:  12/23/11
  • Last Seen:  

Just create event after login.

If char job = novice and blvl = 1 and jlvl = 1 

set var = 1

 

  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  02/04/21
  • Last Seen:  

On 2/26/2021 at 12:17 AM, botka4aet said:

Just create event after login.

If char job = novice and blvl = 1 and jlvl = 1 

set var = 1

 

Sir can you apply on the script.
I am sorry I don't know how to setup.

Hope you help me.. thanks in advanced 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   25
  • Joined:  12/24/14
  • Last Seen:  

Try this :

Quote

prontera,140,178,5	script	Race-To-99	100,{
	if ($ItemGive == 100) {
		npctalk "Sorry, all rewards has been taken!";
		end;
	}
	if (BaseLevel < 99 && JobLevel < 70) {
		npctalk "Sorry, Only Base Lv 99 & Job Lv 70 can claim the reward !";
		end;
	}
	if (getreward == 2) {
		npctalk "Sorry, Nothing for you!";
		end;
	}
	if (getreward == 1) {
		announce "Congratulations! "+strcharinfo(0)+" has claimed his reward for Race to 99 Event", bc_all;
		getitem 501, 100;
		++$ItemGive;
		getreward = 2;
		announce "There are "+(100 - $ItemGive)+" rewards left to give!", bc_all;
		end;
	}
	npctalk "Race To 99 !!";
end;
OnPCLoginEvent:
	if (BaseLevel == 1 && JobLevel == 1 && BaseJob == Job_Novice) {
		set getreward,1;
	}
end;
}

 

 

Edited by mR L
make nice
  • Like 1
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...