[Request] NPC Mythril Coin Exchanger

Broker

New member
Messages
37
Points
0
Hi, i'd like to request a NPC that we can exchange like 15 Mythril Coins (674) for 1 selected bro headgear on npc.

And about this script below i wanted to know how to configure it to earn each Mythril coins for 60min playing. Thx

Hope you can help me!

Code:
-	script	Presenca	-1,{OnPCLoginEvent:	while ( !getstatus(SC_JAILED) ) {		if ( checkvending() || checkchatting() || checkidle() >= .sleeploop / 1000 ) {			.@afk++;			if ( .@afk >= .afk && ( .@afk % .afk == 0 ) ) {				dispbottom "[AccessRO]: Voce esta Ausente por "+( .@afk * .sleeploop / 1000 )+" segundos";				.@tick = 0;			}		}		else {			.@afk = 0;			.@tick++;			if ( .@tick >= .tick ) {				dispbottom "Voce ganhou 1 Moeda Mythril por estar ativo por mais que "+( .@tick * .sleeploop / 1000 )+" seconds";				getitem 674,1;				.@tick = 0;			}		}		sleep2 .sleeploop;	}	end; // shouldn't reachOnInit:	.sleeploop = 5000; // every 5 seconds	.tick = 10; // loop 6 times of 5 seconds == 30 seconds	.afk = 2; // loop 3 times of 5 seconds = 10 seconds	end;}
 
Last edited by a moderator:
Code:
OnInit:    .sleeploop = 60000; // 1 minute    .tick = 60; // recieve every - 60 minutes     .afk = 1; // idle check - 1 minuteend;}
 
Last edited by a moderator:
Thank u @leloush , now i just need to make the NPC Shop. That is possible to exchange like 15 Mythril Coins (674) for 1 selected bro headgear on npc.

 
What is bro headgear?

 
a normal bro equip like 

Hat of the Sun God [0]

Elven Sunglasses [1] etc..

 
Last edited by a moderator:
a normal bro equip like 

Hat of the Sun God [0]

Elven Sunglasses [1] etc..
Here's the Shop

prontera,150,150,1 trader HeadgearShop 952,{ OnInit: tradertype(NST_CUSTOM); sellitem Helm_Of_Sun,15; //Sell for 15MC sellitem Elven_Sunglasses,15; end; /* allows currency to be Red_Potion */OnCountFunds: setcurrency(countitem(Mithril_Coin)); end;/* receives @price (total cost) */OnPayFunds: if( countitem(Mithril_Coin) < @price ) end; delitem Mithril_Coin,@price; purchaseok(); end;}
you can add more items below sellitem command.

 
Thank u, working perfectly. But my equipments are without description, how can i fix it?

 
Thank u, working perfectly. But my equipments are without description, how can i fix it?
Get an Updated Data Folder.

 
Back
Top