Developer Store
Support
Member Forums

Screenshots
FAQ
Documentation
License
Known Issues
Downloads

MMOWorkshop.com Store Opened!
Torque MMO Kit - Open Sourced!
Torque MMO Kit - 1.5.2 Port Alpha Test
Torque MMO Kit - OSX Status

GarageGames.com irc.prairiegames.com
#mmoworkshop

PyTorque
TGB Web Browser


DarkBaneStudios

hallsofvalhalla - After a long epiphany
Leathel - FoHO pre-Alpha 2.42
OldRod - More Musings on the MMO Industry
xapken - nice
J.C. Smith - 0.0.4.1 Build Notes
Wolf Dreamer - Pointless blog of pointless things
AthlonJedi2 - Server Nuked !!!!!
gamer_goof - New character model GIRL1 available only $4
... MORE BLOGS!

Lets talk skills.
Mob chase range?
Auction House + Internal Mail Sy...
Crafting Wiki
Every Day a new question... :)
Web Host
Seeking experienced programmer
Integrating Green-Ear SDK (paid)
where character information is s...
Spells Problem...

This is the definition of the SimItem class used to hold information about the dropped item. I put that in simulation/simobject.py:

class SimItem(pb.Cacheable):
    def __init__(self, id, transform, name):
        self.observer = None
        self.id = id;
        self.transform = transform
        self.position = tuple(transform[:3])
        self.rotation = tuple(transform[3:])
        self.name = name;

    def getStateToCacheAndObserveFor(self,perspective,observer):
        self.observer = observer
        state = {}
        state['id'] = self.id
        state['position'] = self.position
        state['rotation'] = self.rotation
        state['name'] = self.name
        return state
    
    
    def stoppedObserving(self, perspective, observer):
        self.observer = None

class SimItemGhost(pb.RemoteCache):
    def __init__(self):
        self.position = "0 0 0"

    def setCopyableState(self, state):
        self.id = state['id']
        self.position = state['position']
        self.rotation = state['rotation']
        self.name = state['name']
    
    def observe_updatePosition(self,position,canKite):
        self.position = position
    
    def observe_updateTransform(self,position,rotation,waterCoverage):
        self.position = position
        self.rotation = rotation
    
pb.setUnjellyableForClass(SimItem, SimItemGhost)