Broker 0 Posted March 10, 2014 (edited) 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! - 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;} Edited March 10, 2014 by Broker Quote Share this post Link to post Share on other sites
0 leloush 7 Posted March 10, 2014 (edited) OnInit: .sleeploop = 60000; // 1 minute .tick = 60; // recieve every - 60 minutes .afk = 1; // idle check - 1 minuteend;} Edited March 10, 2014 by leloush Quote Share this post Link to post Share on other sites
0 Broker 0 Posted March 10, 2014 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. Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted March 10, 2014 What is bro headgear? Quote Share this post Link to post Share on other sites
0 Broker 0 Posted March 10, 2014 (edited) a normal bro equip like Hat of the Sun God [0] Elven Sunglasses [1] etc.. Edited March 10, 2014 by Broker Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted March 11, 2014 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. Quote Share this post Link to post Share on other sites
0 Broker 0 Posted March 11, 2014 Thank u, working perfectly. But my equipments are without description, how can i fix it? Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted March 11, 2014 Thank u, working perfectly. But my equipments are without description, how can i fix it? Get an Updated Data Folder. Quote Share this post Link to post Share on other sites
0 Broker 0 Posted March 11, 2014 Do you have any updated data folder? Translated to portuguese if possible. Quote Share this post Link to post Share on other sites
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!
Share this post
Link to post
Share on other sites