- remove item scripts long ago moved into items

- update scripts to remove path (init script does it for us)


git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@3003 282e977c-c81d-0410-88c4-b93c2d0d6712
master
temitchell 2004-12-06 04:48:06 +00:00
parent 8eff925ffa
commit 32e9cfab2c
17 changed files with 14 additions and 125 deletions

View File

@ -24,10 +24,6 @@
import CFPython
import sys
import os.path
sys.path.append(os.path.join(CFPython.GetDataDirectory(),CFPython.GetMapDirectory(),'python'))
import string
import random
import CFBank

View File

@ -24,10 +24,6 @@
import CFPython
import CFBoard
import sys
import os.path
sys.path.append(os.path.join(CFPython.GetDataDirectory(),CFPython.GetMapDirectory(),'python'))
import string
board = CFBoard.CFBoard()

View File

@ -21,10 +21,6 @@
#Updated to use new path functions in CFPython -Todd Mitchell
import CFPython
import sys
import os.path
sys.path.append(os.path.join(CFPython.GetDataDirectory(),CFPython.GetMapDirectory(),'python'))
import CFMail
import string

View File

@ -32,11 +32,6 @@ priceScrollOfLiteracy=5000
priceMailScroll=5
import CFPython
import sys
import os.path
sys.path.append(os.path.join(CFPython.GetDataDirectory(),CFPython.GetMapDirectory(),'python'))
import string
import CFLog
@ -50,7 +45,7 @@ log = CFLog.CFLog()
text = string.split(CFPython.WhatIsMessage())
if text[0] == 'help' or text[0] == 'yes':
message = 'How can I help you ? Here is a quick list of commands:\n\n- pen (%s platinum)\n- literacy (%s platinum)\n- mailscroll <friend> (%s platinum)\n- seen <friend> (free)\n'%(priceWritingPen,priceScrollOfLiteracy,priceMailScroll)
message = 'How can I help you ? Here is a quick list of commands:\n\n- pen (%s platinum)\n- literacy (%s platinum)\n- mailscroll <friend> (%s platinum)\n'%(priceWritingPen,priceScrollOfLiteracy,priceMailScroll)
CFPython.Say(whoami,message)
elif text[0] == 'pen':

View File

@ -23,13 +23,7 @@
# seen - tells player information from logger
import CFPython
import sys
import string
import os.path
sys.path.append(os.path.join(CFPython.GetDataDirectory(),CFPython.GetMapDirectory(),'python'))
import CFLog
activator=CFPython.WhoIsActivator()

View File

@ -21,10 +21,6 @@
#Updated to use new path functions in CFPython -Todd Mitchell
import CFPython
import sys
import os.path
sys.path.append(os.path.join(CFPython.GetDataDirectory(),CFPython.GetMapDirectory(),'python'))
import CFMail
import string
from time import localtime, strftime, time

View File

@ -4,9 +4,6 @@
#FYI - This one uses an object for cointype and not the money code :)
import CFPython
import sys
import os.path
sys.path.append(os.path.join(CFPython.GetDataDirectory(),CFPython.GetMapDirectory(),'python'))
import CFGamble
import CFItemBroker

View File

@ -3,9 +3,6 @@
# Standard type Gold Slots
import CFPython
import sys
import os.path
sys.path.append(os.path.join(CFPython.GetDataDirectory(),CFPython.GetMapDirectory(),'python'))
import CFGamble
import CFItemBroker

View File

@ -4,9 +4,6 @@
#FYI - This one uses an object for cointype and not the money code :)
import CFPython
import sys
import os.path
sys.path.append(os.path.join(CFPython.GetDataDirectory(),CFPython.GetMapDirectory(),'python'))
import CFGamble
import CFItemBroker

View File

@ -3,9 +3,6 @@
# Standard type Platinum Slots
import CFPython
import sys
import os.path
sys.path.append(os.path.join(CFPython.GetDataDirectory(),CFPython.GetMapDirectory(),'python'))
import CFGamble
import CFItemBroker

View File

@ -2,9 +2,6 @@
#to make a new kind of slot machine, copy this file, change the settings and point the slotmachine to the new file.
import CFPython
import sys
import os.path
sys.path.append(os.path.join(CFPython.GetDataDirectory(),CFPython.GetMapDirectory(),'python'))
import CFGamble
import CFItemBroker

View File

@ -1,5 +1,4 @@
import CFPython
import sys
import random
me = CFPython.WhoAmI()

View File

@ -1,5 +1,4 @@
import CFPython
import sys
import random
me = CFPython.WhoAmI()

View File

@ -11,8 +11,6 @@
# Please help by adding new styles of insults to this fine script.
import CFPython
import sys
sys.path.append('%s/%s/python' %(CFPython.GetDataDirectory(),CFPython.GetMapDirectory()))
from random import choice
def Insult(style):
@ -29,11 +27,20 @@ def Insult(style):
##TEXAS STYLE
elif style == "texas":
adj1 = ['stewpid', 'uglee', 'pea brained', 'dung-headed', 'hatless', 'witless', 'dumb']
adj2 = ['horse-knappin', 'hog-licking', 'knock-kneed', 'brown-nosed', 'lilly-livered' ]
adj1 = ['stewpid', 'uglee', 'pea brained', 'dung-headed', 'beady-eyed', 'hatless', 'witless', 'dumb']
adj2 = ['horse-knappin', 'hog-lickin', 'knock-kneed', 'jug-eared', 'pie-headed', 'snaggle-toothed', 'brown-nosed', 'lilly-livered' ]
noun = ['dipshit', 'city-slicker', 'root-head', 'cow-pie', 'greenhorn', 'idgit']
prefixA = ['Yer a','Yer Mama\'s a', 'Yew']
prefixAn = ['Yer a', 'Yer Mama\'s a', 'Yew']
prefixAn = ['Yer an', 'Yer Mama\'s an', 'Yew']
##DWARVEN STYLE
elif style == "dwarf":
adj1 = ['beardless', 'puny', 'shaven']
adj2 = ['elf-footed', 'dull-axed', 'tin-shielded' ]
noun = ['orc-lover', 'gobiln-kisser', 'tree-embracer']
prefixA = ['You are a','Your Matron\'s a', 'You']
prefixAn = ['You are an', 'Your Matron\'s an', 'You']
##NO STYLE
else:
@ -61,4 +68,4 @@ whoami=CFPython.WhoAmI()
#style of insult desired to hurl in event options
style = CFPython.GetEventOptions(whoami,1) # 1 is apply event
CFPython.Write(Insult(style),activator)
CFPython.Write(Insult(style),activator)

View File

@ -9,9 +9,6 @@
import CFPython
import sys
sys.path.append('%s/%s/python' %(CFPython.GetDataDirectory(),CFPython.GetMapDirectory()))
activator=CFPython.WhoIsActivator()
activatorname=CFPython.GetName(activator)
whoami=CFPython.WhoAmI()

View File

@ -1,33 +0,0 @@
import CFPython
import sys
import random
me = CFPython.WhoAmI()
ac = CFPython.WhoIsActivator()
r = random.random()
if (CFPython.IsApplied(me)):
if (r <= 0.01):
CFPython.SetIdentified(me,0)
CFPython.SetCursed(me, 1)
CFPython.SetDexterity(me, CFPython.GetDexterity(me)+1)
elif (r <= 0.02):
CFPython.SetIdentified(me,0)
CFPython.SetCursed(me, 1)
CFPython.SetIntelligence(me, CFPython.GetIntelligence(me)+1)
elif (r <= 0.03):
CFPython.SetIdentified(me,0)
CFPython.SetCursed(me, 1)
CFPython.SetConstitution(me, CFPython.GetConstitution(me)+1)
elif (r >= 0.99):
CFPython.SetIdentified(me,0)
CFPython.SetCursed(me, 1)
CFPython.SetDexterity(me, CFPython.GetDexterity(me)-1)
elif (r >= 0.98):
CFPython.SetIdentified(me,0)
CFPython.SetCursed(me, 1)
CFPython.SetIntelligence(me, CFPython.GetIntelligence(me)-1)
elif (r >= 0.97):
CFPython.SetIdentified(me,0)
CFPython.SetCursed(me, 1)
CFPython.SetConstitution(me, CFPython.GetConstitution(me)-1)

View File

@ -1,38 +0,0 @@
import CFPython
import sys
import random
me = CFPython.WhoAmI()
ac = CFPython.WhoIsActivator()
r = random.random()
if (r <= 0.01):
CFPython.Write("Your weapon suddenly seems lighter !",ac)
CFPython.SetDamage(me,CFPython.GetDamage(me)+10)
CFPython.SetIdentified(me,0)
CFPython.SetBeenApplied(me,0)
elif (r <= 0.02):
CFPython.Write("Your weapon suddenly seems darker !",ac)
CFPython.SetDamage(me,CFPython.GetDamage(me)-10)
CFPython.SetIdentified(me,0)
CFPython.SetBeenApplied(me,0)
elif (r <= 0.03):
CFPython.Write("Your weapon suddenly seems lighter !",ac)
CFPython.SetDamage(me,CFPython.GetDamage(me)+10)
CFPython.SetIdentified(me,0)
CFPython.SetBeenApplied(me,0)
elif (r <= 0.04):
CFPython.Write("Your weapon suddenly seems colder !",ac)
CFPython.SetAttackType(me,CFPython.AttackTypeCold() + CFPython.AttackTypePhysical())
CFPython.SetIdentified(me,0)
CFPython.SetBeenApplied(me,0)
elif (r <= 0.05):
CFPython.Write("Your weapon suddenly seems warmer !",ac)
CFPython.SetAttackType(me,CFPython.AttackTypeFire() + CFPython.AttackTypePhysical())
CFPython.SetIdentified(me,0)
CFPython.SetBeenApplied(me,0)
elif (r <= 0.06):
CFPython.Write("Your weapon suddenly emits sparks !",ac)
CFPython.SetAttackType(me,CFPython.AttackTypeElectricity() + CFPython.AttackTypePhysical())
CFPython.SetIdentified(me,0)
CFPython.SetBeenApplied(me,0)