Jump to content

Utility: Item/Variable(Points) reward function for beginners or lazy!


Mabuhay

Recommended Posts


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

Item/Variable(Points) reward function for beginners or lazy!


Hi, there! this functions is ideal for newbie scripters or just someone who wants to "add" or "modify" scripts with rewards. It may be item or variables such as points or stuff...

This function can also be used by experienced scripters who are lazy to code and stuff xD. Easy to use and all ?

 

Here are the sample npcs on how to use it. (included in the downloadable files)

// Sample NPC for using F_Reward_Item and F_Reward_Var
// For beginners.
prontera,150,180,0	script	F_Reward_Test	123,{
	mes "What do you want to get?";
	switch(select("Item","Points")) {
	case 1:	
		F_Reward_Item("501:10,502:5,503:10");
		break;
	case 2: 
		F_Reward_Var("#CASHPOINTS","Cash Points",100); 
		break;
	}
	mes "Enjoy!";
	close;
}

// This is just a pseudo-code, you can understand what I mean by this xD
// For advance scripters. You can do something like.
prontera,150,180,0	script	F_Reward_Test	123,{
	mes "get items";
	close2;
	F_Reward_Item(.itemlist$);
	end;
OnInit:
	.itemlist$ = "501:10,502:5,503:10";
	end;
}

 

I hope this will help! Keep those upvotes coming to motivate me moooore ? 

Enjoy the rest of the day!


  • Submitter
  • Submitted
    11/28/2019
  • Category
  • Video
  • Content Author
    Mabuhay

 

  • Upvote 1
  • MVP 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
Reply to this topic...

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