Jump to content
  • 0

Item Crafter NPC


Ice Bear

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   26
  • Joined:  11/20/11
  • Last Seen:  

Item Crafter NPC

 

This NPC Requires Specific Amount of Items to Craft One Item by a % chance to sucess or fail

 

For Example

You Need to Sacrifice

10 Golds

10 TCG

10 Red Potion

To Recieve 1 Poring Coin by 10% chances Only

 

If AnyOne Like To Help Me Here Thanks :))

Link to comment
Share on other sites

11 answers to this question

Recommended Posts


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

like this ?

http://pastebin.com/raw.php?i=W4UXJLw9

 

OnInit:
// craft settings
.craft_rate = 50;
setarray .item_id,607,608;
setarray .item_amount,1,2;
.item_id_size = getarraysize( .item_id );

// item gain
.craft_gain = 7539;
end;
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  108
  • Reputation:   1
  • Joined:  02/10/12
  • Last Seen:  

sir @Emistry can I make a request for this script?

1. I want to add more items to craft
    (ex. custom shield, boots, etc..)
2. need a payment.. and then when it failed to craft, the payment increases..
3. it will increase amount of the item needed when failed also..

I know this is too much..

Edited by blakbord
i need to add some question
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

prontera,1,2,3	script	Coin Crafter	49,{
mes "[ Coin Crafter ]";
mes "Hello there!";
mes "I can help you to craft a ^0000FFPoring Coin^000000, but with only 10% chance of success.";
mes "Do you want to continue?";
next;
menu "Yes",Craft,"No",Quit;
Craft:
if((countitem(7227)>=10) && (countitem(969)>=10) && (countitem(501)>=10)) {
	delitem 7227,10; delitem 969,10; delitem 501,10;
	mes "[ Coin Crafter ]";
	if(rand(100)<10) {
	mes "Here you are!";
	getitem 7539,1;
	next;
	mes "[ Coin Crafter ]";
	mes "Do you want me to craft some more?";
	next;
	menu "Yes",Craft,"No",Quit;
	} else {
	mes "I'm sorry, but I have failed to craft the Poring Coin.";
	mes " ";
	mes "Do you want me to try again?";
	next;
	menu "Yes",Craft,"No",Quit;
	}
mes "[ Coin Crafter ]";
mes "I need these things:";
mes "^FF000010x Golds";
mes "10x TCG";
mes "10x Red Potions^000000";
next;

Quit:
mes "[ Coin Crafter ]";
mes "Come and see me again!";
close;
}

 

/ok 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  106
  • Reputation:   0
  • Joined:  11/16/11
  • Last Seen:  

how about making this npc lots of item can craft with different requirements (like setting array)

and announce when success crafted

and also the crafted item get the name of the crafter 

sorry bad english

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

You could use the Quest shop ;)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  106
  • Reputation:   0
  • Joined:  11/16/11
  • Last Seen:  

that is not crafting there is no percent rate on there!
and also effect of like casting skills when crafting

 

i will try this thanks emistry please help me also here http://rathena.org/board/topic/81011-any-one-can-edit-this-script/#entry191637

On 4/5/2013 at 2:52 AM, Emistry said:

like this ?

http://pastebin.com/raw.php?i=W4UXJLw9

 


OnInit:
// craft settings
.craft_rate = 50;
setarray .item_id,607,608;
setarray .item_amount,1,2;
.item_id_size = getarraysize( .item_id );

// item gain
.craft_gain = 7539;
end;

My problem is the crafted item removed the slot i add an item with slot and when i success in crafted the slot of the item is remove

Edited by hexor9
Link to comment
Share on other sites


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

item that have "player name" are not suppose to have any item slots.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  106
  • Reputation:   0
  • Joined:  11/16/11
  • Last Seen:  

how i can remove that dont have named of crafter

Link to comment
Share on other sites


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

how i can remove that dont have named of crafter

hmm ? elaborate your request or problems in details...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  106
  • Reputation:   0
  • Joined:  11/16/11
  • Last Seen:  

how i will make this npc crafter not crafting a item with the name of a crafter or 

i removing the crafter named when success so the 

  1. // item gain
  2. .craft_gain = 7539; HAVE SLOT
Link to comment
Share on other sites


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

change

getnameditem( .craft_gain,strcharinfo(0) );

 

to

getitem .craft_gain,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...