PDA

View Full Version : Open API keys


Treadon
9th October 2006, 02:24 AM
The have been changed. Get the new ones at:
http://www.treadon.us/more/api.php

Also, i've started work on the wiki page:
http://www.oddthought.com/wiki/index.php?title=DopeWars_Online_API

And added a link to the API page on the main page:
http://www.treadon.us

ibmonkey
9th October 2006, 05:19 AM
i've put together what data all the user.* APIs can give you. its been useful to see what you can pull out from the database. sorry if there are any mistakes, and the only one i couldnt work out was the "payout" in user.account.getinfo

__________________________________________________ _______________

user.account.getInfo

Id
Handle
Flag (flag name ie "UK")
Skin (chosen skin ie "skins/lime/")
Ads (Ads on flag (0 or 1))
Rank
Worth (number incl decimal places)
Money (same as worth)
Station (station id)
Tokens (integer)
Coat (coat id)
Cartel (cartel id)
Cabinet (on cabinet flag (0 or 1)
CartelNews (cartel news flag)
CartelDisc (cartel discussion flag)
CartelJoin (server time that player joined cartel)
Guns (amount of guns)
Vests
Thugs
LabSize (in sq ft)
LabSet (id of drug produced)
JunkiesTraining
JunkiesWorking
Stamina (ie 100)
Payout
SewingMachines
GunPresses
Shakes
TextBooks

Credits>>
Botany (number of credits)
Pimpology
Homec
Shop
Theft

__________________________________________________ _______________


user.account.coatInfo

CoatID
CoatName
CoatSize
CoatPrice

CoatItem>>
DrugID
DrugName
DrugAmount

__________________________________________________ _______________


user.cartel.getInfo

CartelID (Cartel id number)
Name (Cartel Name)
Worth (Total worth of the cartel)
MemberCount
Founder (player id of founder)
Founded (long string of numbers, server time i think)

MemberList>> (returns all members of the cartel)
Member>>
ID (player id)
Handle (player's handle)
Worth (player worth incl decimal places)
Flag (flag of player ie "UK")

__________________________________________________ _______________


user.cartel.getNews

CartelID
News (can be a very long string of the whole news text)

__________________________________________________ _______________


user.room.coatList

Coat>> (a full list of details of each coat available to the room)
CoatID
CoatName
CoatPockets
CoatPrice

__________________________________________________ _______________


user.room.drugList

Drug>> (like the coat list, returns all drugs available for the room)
DrugID
DrugName

__________________________________________________ _______________


user.room.stationList

Station>> (same again, returns station list for the room)
StationID
StationName
TravelCost (how many token to get there)

__________________________________________________ _______________

DnD
9th October 2006, 09:01 AM
oh yay :S