[wpdev-commits] xmlscripts/scripts/skills mining.py,1.3,1.4
Brought to you by:
rip,
thiagocorrea
|
From: <co...@us...> - 2003-10-02 20:33:52
|
Update of /cvsroot/wpdev/xmlscripts/scripts/skills
In directory sc8-pr-cvs1:/tmp/cvs-serv9409/scripts/skills
Modified Files:
mining.py
Log Message:
soundeffects
Index: mining.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/skills/mining.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** mining.py 2 Oct 2003 13:50:51 -0000 1.3
--- mining.py 2 Oct 2003 20:33:49 -0000 1.4
***************
*** 15,18 ****
--- 15,19 ----
#mining calling from pickaxe.py and shovel.py
+ oresound = 0x126
# Name, reqSkill, minSkill, maxSkill, successClilocId, itemId, color, mutateVeinChance%, VeinChanceToFallback%
***************
*** 62,65 ****
--- 63,70 ----
success = 0
+ char.addtimer( 1400, "skills.mining.effecttimer", [oresound] )
+ char.turnto( pos )
+ char.action( 11 )
+
# Are you skilled enough ? And here is ore ?
if resourcecount > 2 and char.skill[ MINING ] > reqskill:
***************
*** 147,149 ****
--- 152,159 ----
return OOPS
+ return OK
+
+ #Sound effect
+ def effecttimer( char, args ):
+ char.soundeffect( args[0] )
return OK
|