SphereCommunity
mine - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Expired/Outdated Versions (/Forum-Expired-Outdated-Versions)
+--- Forum: Sphere 55i Help (/Forum-Sphere-55i-Help)
+--- Thread: mine (/Thread-mine)

Pages: 1 2


mine - mrkarlo - 05-08-2012 05:16 AM

hey! please tell me, how can i release this thing. when you digg wit pickaxe, the ore mines only wit one piles of ore?


RE: mine - mrkarlo - 08-07-2012 02:03 AM

Please help!


RE: mine - mrkarlo - 11-13-2012 11:43 PM

for example: in tile we have iron ore with amount=10. How to make digg this 10 with one piles of ore?


RE: mine - RanXerox - 11-14-2012 01:26 AM

The REGIONRESOURCE definition works like this:

Code:
[REGIONRESOURCE mr_iron]
SKILL=1.0,60.0   //The min,max mining skill required to reap min,max amount
AMOUNT=9,30      //The min,max of ore in each tile
REAPAMOUNT=1,3   //The min,max amount that can be mined at one time
REAP=i_ore_iron  //The type of ore to mine
REGEN=60*60*10   //The amount of time before the tile can be mined again

I think if REAPAMOUNT is not set at all then you can mine up to the maximum.


RE: mine - mrkarlo - 11-14-2012 02:27 AM

thaaaanks RanXerox!! very good,nice.


RE: mine - mrkarlo - 11-17-2012 06:30 AM

i have a question, please help me! how to disable mining skillgain when you smelt 1+1+1+1+!+1 ores?
I whant that mining will gain only wit hard digging.


RE: mine - Skul - 11-17-2012 05:51 PM

redo smelting entirely with @itemdclick and return 1, here's a little piece of code that might help:
Code:
on=@itemtargon_item
if (<act.type>==t_forge)
  if (<targ.type>==t_ore)
    if (((<targ.topobj.uid>==<uid>) || (<targ.distance> < 4)) && (<targ.canseelos>))
      //might need to add in your own skill test and gain
      serv.newitem=<targ.tdata1>
      new.amount=<targ.amount>
      trysrc <uid> new.bounce
      targ.remove
      return 1 //halt default process
    endif
  endif
endif

on=@itemdclick
if (<act.type>==t_ore)
  if (<isneartype t_forge 3>)
    //might have to add in your own skill test and gain
    serv.newitem=<act.tdata1>
    new.amount=<act.amount>
    trysrc <uid> new.bounce
    act.remove
    return 1
  endif
endif



RE: mine - mrkarlo - 11-17-2012 08:56 PM

thanks Skul! I made event.
Code:
on=@itemtargon_item
..........
and wit on=@itemdclick. Its works! Sorry, but what you mean
Code:
might have to add in your own skill test and gain



RE: mine - Skul - 11-17-2012 10:42 PM

What I meant by that was you might have to add your own success rate and skillgain so player's can still gain from smelting and fail at smelting.


RE: mine - mrkarlo - 11-18-2012 12:41 AM

thanks! sorry for impudence, can you give me some example? Just 3-4 lines.