Jump to content
  • 0

Editing Race to 99 script


celeron0134

Question


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  194
  • Reputation:   1
  • Joined:  12/13/16
  • Last Seen:  

prontera,158,181,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;
}

good evening .. how will i add top 100 level 99 (like a rank) from 1st to 100th

and different rewards for the top 3

with a pub saying Level 99 Rewarder

thankyou so much

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

prontera,158,181,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;
    ++$ItemGive;
	if ($ItemGive == 1) {
		getitem 501, 100;
		getitem 501, 100;
		getitem 501, 100;
		getitem 501, 100;
	}
	else if ($ItemGive == 2) {
		getitem 501, 100;
		getitem 501, 100;
		getitem 501, 100;
	}
	else if ($ItemGive == 3) {
		getitem 501, 100;
		getitem 501, 100;
	}
	else {
		getitem 501, 100;
	}
    getreward = 1;
    sleep 2000;
    announce "There are "+(100 - $ItemGive)+" rewards left to give!", bc_all;
    end;
	
	OnInit:
		waitingroom "Level 99 Rewarder", 0;
		end;
}

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

Store char_id as array and pick first 3 arrays to give them prize.

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