Jump to content

Question

Posted

OnNpcKillEvent:
    if ( getmonsterinfo(killedrid,MOB_MVPEXP) > 0 ) { // Mob MVP exp > 0 means MvP
        dispbottom "You killed "+rid2name(killedrid)+"!";
        set #MVPPOINTS, #MVPPOINTS + 1; // +1 MVP Points if you kill a MVP.
        end;
    }

 

how can create a npc point. for MVP point every killed MVP got 1 point then can trade the point to item.

im usang EA Svn.

3 answers to this question

Recommended Posts

Posted

you can trade some points vs some item with the script

// Menu Selection
select("Shop 1","Shop 2","Shop 3");

replace to

// Menu Selection
select("","","Shop 3");

 

and in case 3 set your items vs varaible

		Case 3:
			// Currency [ Item ID / Variable Name ]
			set @Currency$,"#CASHPOINTS";
			// Item ID Lists
			setarray @ItemLists[0],2306,2302,2303,2304,2305,2301;
			// Item Price
			setarray @ItemCost[0],20,22,34,445,52,641;
			break;

replace to

		Case 3:
			// Currency [ Item ID / Variable Name ]
			set @Currency$,"#MVPPOINTS";// your variable need
			// Item ID Lists
			setarray @ItemLists[0],2306,2302,2303,2304,2305,2301;
			// Item Price
			setarray @ItemCost[0],20,22,34,445,52,641;
			break;

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