Jump to content

Ehwaz

Members
  • Posts

    50
  • Joined

  • Last visited

Posts posted by Ehwaz

  1. @hendra814

    Quote

    2. the item reward and item required for the quest already defined in the script. so player just take the quest and bring the item require to get the reward item.

    bring the item require to get the reward item ?

    It's just help you don't need to repeat countitem() too much

    Quest logic must define above function:

    Ex:

    If(BaseLevel > 99){
    	.@isSuccess = MakeItemReq(5353,1000000,501,1,502,2);
    }
    else {
    	mes "You not allow to make this item";
    }

    And ".@isSuccess" use to continue quest logic if you want, maybe after created Item NPC will "do something"

    Please ask if you still  does not understand ...

  2. MakeItemReq, check requirements to make a item


    This functions help you easy to create a Quest NPC use to create a item by bring for NPC items and Zeny

    If bring enough Zeny and Items, a menu confirm to make item will display

    Else will display "Close" Button

    Edit Menu text inside function.

    Usage:

    .@isSuccess = MakeItemReq(PRODUCT_ID,ZENY,ITEM1,ITEM1_QUANTITY,ITEM2,ITEM2_QUANTITY,.....)
    
    .@isSuccess = 0, you dont want to create this item
    .@isSuccess = 1, NPC created item for you

    // Sample Struct NPC //

    prontera,157,120,4	script	MakeItemReq	555,{
    	mes "[NPC_NAME]";
    	mes "Bla";
    	mes "Bla Bla";
    	mes "Bla Bla Bla";
    	mes "Bla Bla Bla Bla";
    	next;
    	mes "[NPC_NAME]";
    	
    	// MakeItemReq(PRODUCT_ID,ZENY,ITEM1,ITEM1_QUANTITY,ITEM2,ITEM2_QUANTITY,.....)
    	.@isSuccess = MakeItemReq(5353,1000000,501,1,502,2);
    	
    	// Doesn't add next, because next existed in function
    	if(.@isSuccess){
    		
    		mes "[NPC_NAME]";
    		mes "You success to create a item";
    	}
    	else {
    		mes "[NPC_NAME]";
    		mes "You dont need it";
    	}
    	close;
    }

    • Submitter
    • Submitted
      06/11/2018
    • Category
    • Video
    • Content Author
      Ehwaz

     

  3. Utility: Dynamic Shop Template


    Script functions help you easy to create and edit dynamic shop.

    Only support Zeny and Item as currency and OnBuy

    Install:

    1. Load file traderFunctions.txt

    2. Copy template from file sample_templ_shop.txt

    3. Edit shop name, list items and business logic you want

    4. Load shop you edited.

     

    guide.png


    • Submitter
    • Submitted
      06/01/2018
    • Category
    • Video
    • Content Author
      Ehwaz

     

    • Upvote 2
    • Love 1
  4. 1 hour ago, choidk said:

    Hi everyone, it's weird when I want to open a server where the players do not see each other.
    My friend and I want to run a server with only 2 players, maybe 5. And we do not want to see each other at all maps. Even the monsters they see are different.

    Like this:
    - First of all, we do not want to see each other.
    - Monsters are different to each other, this means that we do not fight each other's monsters, not pick up each other's items and do not see each other's skills.
    - Do not see each other's chat messages. Unable to make friends, private messages, party, guild, ...
    - We can only meet in Prontera or a special map.

    I can only write basic scripts so I'm looking forward to your suggestions and help.
    All suggestions from your friends will be recorded.
    Thank you all.

     /thx

    Make all map except prontera is a instance.

     

    • Love 1
  5. On 10/1/2017 at 1:09 PM, Quesooo said:

    can any one tell me why does +20 stats food box when player click it it only give +1?

     

    any solution also

     

    thank you

    Post your script !!

    Or edit Level of food in item script

    Maybe check is exist any number "1" and change to 20

×
×
  • Create New...