Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace auto-generated documentation #2

Open
guilherme-gm opened this issue May 2, 2019 · 0 comments
Open

Replace auto-generated documentation #2

guilherme-gm opened this issue May 2, 2019 · 0 comments

Comments

@guilherme-gm
Copy link
Owner

guilherme-gm commented May 2, 2019

Pretty much the entire command documentation was auto-generated from script_commands, while it may provide a lot of info, most of the time it looks bad on the editor, so they must be rewritten to a better format (e.g. using markdown, properly giving parameters info, etc.)

To update a command you have to update its json file at:
https://github.com/guilherme-gm/vscode-herc-lang-support/tree/master/server/src/commands

This is the format:

{
    "commandName": {
        "params": [
            { // Each { } represents one signature for the command
                "requiredParam1Name": "requiredParam1Type",
                "requiredParam2Name": "requiredParam2Type",
                "optionalParam3": {
                    "type": "optionalParam3type",
                    "default": "optionalParam3defaultValue"
                }
            }
        ],
        "doc": [ // Command documentation
            // Split it in multiple lines for readability, it doesn't affected generated text
           // Markdown supported
            "description",
            "descritpion"
        ],
        "paramDoc": { // parameters documentation
            "param1Name": "param1Desc",
            "param2Name": "param2Desc",
            "param3Name": "param3Desc"
        }
    }
}

Check getitem for a complete example.

List of Commands:

  • achievement_progress
  • activatepset
  • addchannelhandler
  • add_group_command
  • addmonsterdrop
  • addtimercount
  • addtimer
  • addtoskill
  • agitcheck2
  • agitcheck
  • agitend2
  • agitend
  • agitstart2
  • agitstart
  • airship_respond
  • announce
  • areaannounce
  • areamobuseskill
  • areamonster
  • areapercentheal
  • areawarp
  • atcommand
  • atoi
  • attachnpctimer
  • attachrid
  • autobonus2
  • autobonus3
  • autobonus
  • autoequip
  • awake
  • axtoi
  • basicskillcheck
  • bg_create_team
  • bg_destroy
  • bg_getareausers
  • bg_get_data
  • bg_join_team
  • bg_leave
  • bg_match_over
  • bg_monster
  • bg_monster_set_team
  • bg_team_setxy
  • bg_updatescore
  • bg_warp
  • bindatcmd
  • bonus2
  • bonus3
  • bonus4
  • bonus5
  • bonus
  • bpet
  • buyingstore
  • callfunc
  • callshop
  • callsub
  • camerainfo
  • can_use_command
  • cardscnt
  • changebase
  • changecamera
  • changecharsex
  • changelook
  • changequest
  • changesex
  • channelmes
  • charat
  • charcommand
  • charid2rid
  • charisalpha
  • charislower
  • charisupper
  • checkbound
  • checkcart
  • checkcell
  • checkchatting
  • checkequipedcard
  • checkfalcon
  • checkhomcall
  • checkidle
  • checkmount
  • checkoption1
  • checkoption2
  • checkoption
  • checkpcblock
  • checkvending
  • checkweight2
  • checkweight
  • checkwug
  • chr
  • clan_leave
  • clan_master
  • classchange
  • cleanarea
  • cleanmap
  • cleararray
  • clearitem
  • clone
  • close2
  • close
  • compare
  • completequest
  • cooking
  • copyarray
  • countbound
  • countitem2
  • countitem
  • countnameditem
  • countstr
  • cutin
  • data_to_string
  • day
  • deactivatepset
  • debugmes
  • defpattern
  • delchar
  • delequip
  • deletearray
  • deletepset
  • delitem2
  • delitem
  • delmonsterdrop
  • deltimer
  • delwaitingroom
  • delwall
  • detachnpctimer
  • detachrid
  • disable_items
  • disablenpc
  • disablewaitingroomevent
  • disguise
  • dispbottom
  • distance
  • divorce
  • doevent
  • donpcevent
  • downrefitem
  • dressroom
  • eaclass
  • emotion
  • enable_items
  • enablenpc
  • enablewaitingroomevent
  • enchantitem
  • end
  • equip2
  • equip
  • erasequest
  • escape_sql
  • expandInventoryAck
  • expandInventory
  • expandInventoryResult
  • explode
  • failedrefitem
  • failedremovecards
  • flagemblem
  • 'for '
  • freeloop
  • getareadropitem
  • getareausers
  • getargcount
  • getarg
  • getarrayindex
  • getarraysize
  • getbattleflag
  • getbrokencount
  • getbrokenid
  • getcalendartime
  • getcartinventorylist
  • getcastledata
  • getcastlename
  • getcharid
  • getcharip
  • getchildid
  • getdatatype
  • getd
  • getelementofarray
  • getequipcardcnt
  • getequipcardid
  • getequipid
  • getequipisenableopt
  • getequipisenableref
  • getequipisequiped
  • getequipisidentify
  • getequipname
  • getequipoption
  • getequippedoptioninfo
  • getequippercentrefinery
  • getequiprefinerycnt
  • getequipweaponlv
  • getexp
  • getfatherid
  • getgdskilllv
  • getgmlevel
  • getgroupid
  • getguildmasterid
  • getguildmaster
  • getguildmember
  • getguildname
  • gethominfo
  • getinventorylist
  • getInventorySize
  • getitem2
  • getitembound2
  • getitembound
  • getiteminfo
  • getitem
  • getitemname
  • getitemslots
  • getlook
  • getmapflag
  • getmapguildusers
  • getmapinfo
  • getmapusers
  • getmapxy
  • getmercinfo
  • getmobdrops
  • getmonsterinfo
  • getmotherid
  • getnameditem
  • getnpcclass
  • getnpcdir
  • getnpcid
  • getnpctimer
  • getpartnerid
  • getpartyleader
  • getpartymember
  • getpartyname
  • getpetinfo
  • getrandgroupitem
  • getrefine
  • getsavepoint
  • getscrate
  • getskilllist
  • getskilllv
  • getstatus
  • getstrlen
  • gettime
  • gettimer
  • gettimestr
  • gettimetick
  • 'getunitdata '
  • getunitname
  • getunits
  • getunittype
  • getusers
  • getusersname
  • getvariableofnpc
  • getvariableofpc
  • getwaitingroomstate
  • globalmes
  • goto
  • groupranditem
  • guardianinfo
  • guardian
  • guildchangegm
  • guildgetexp
  • guildopenstorage
  • guildskill
  • gvgoff
  • gvgon
  • hascashmount
  • has_instance2
  • has_instance
  • has_permission
  • hateffect
  • heal
  • hideoffnpc
  • hideonnpc
  • homevolution
  • hommutate
  • homshuffle
  • if
  • implode
  • initnpctimer
  • input
  • insertchar
  • instance_announce
  • instance_attach
  • instance_attachmap
  • instance_check_guild
  • instance_check_party
  • instance_create
  • instance_destroy
  • instance_detachmap
  • instance_id
  • instance_init
  • instance_mapname
  • instance_npcname
  • instance_set_respawn
  • instance_set_timeout
  • instance_warpall
  • isequippedcnt
  • isequipped
  • is_function
  • isloggedin
  • isnight
  • ispartneron
  • issit
  • isstr
  • itemeffect
  • itemheal
  • itempreview
  • itemskill
  • jobchange
  • jobname
  • join_clan
  • kickwaitingroomall
  • killmonsterall
  • killmonstergid
  • killmonster
  • log10
  • logmes
  • makeitem2
  • makeitem
  • makepet
  • makerune
  • mapannounce
  • maprespawnguildid
  • mapwarp
  • marriage
  • max
  • md5
  • menu
  • mercenary_create
  • mercenary_get_calls
  • mercenary_get_faith
  • mercenary_heal
  • mercenary_sc_start
  • mercenary_set_calls
  • mercenary_set_faith
  • mergeitem
  • mesf
  • mes
  • message
  • min
  • misceffect
  • mobattached
  • mobcount
  • monster
  • montransform
  • morphembryo
  • movenpc
  • msgtable2
  • msgtable
  • navigateto
  • needed_status_point
  • next
  • night
  • npcshopadditem
  • npcshopattach
  • npcshopdelitem
  • npcshopitem
  • npcskilleffect
  • npcskill
  • npcspeed
  • npcstop
  • npctalk
  • npcwalkto
  • nude
  • openauction
  • openmail
  • openshop
  • openstorage
  • openstylist
  • ord
  • packageitem
  • pcblockmove
  • pcfollow
  • pcre_match
  • pcstopfollow
  • percentheal
  • pet
  • petloot
  • petrecovery
  • petskillattack
  • petskillbonus
  • petskillsupport
  • petstat
  • playbgmall
  • playbgm
  • playerattached
  • pow
  • produce
  • progressbar
  • progressbar_unit
  • prompt
  • purchaseok
  • pushpc
  • pvpoff
  • pvpon
  • qicheck
  • qiclear
  • qiget
  • query_logsql
  • query_sql
  • questactive
  • questinfo
  • questprogress
  • queueadd
  • queuedel
  • queueiterator
  • queue
  • queueopt
  • queueremove
  • queuesize
  • rand
  • readbook
  • readparam
  • recovery
  • removechannelhandler
  • removemapflag
  • removespecialeffect
  • rentitem
  • repairall
  • repair
  • replacestr
  • requestguildinfo
  • resetlvl
  • resetskill
  • resetstatus
  • 'return {}'
  • rid2name
  • roclass
  • rodex_sendmail2
  • rodex_sendmail_acc2
  • rodex_sendmail_acc
  • rodex_sendmail
  • savepoint
  • sc_end
  • sc_start2
  • sc_start4
  • sc_start
  • searchitem
  • searchstores
  • select
  • sellitem
  • servicemessage
  • setarray
  • setbattleflag
  • setcart
  • setcashmount
  • setcastledata
  • setcell
  • setchar
  • setcurrency
  • setd
  • setequipoption
  • setfalcon
  • setfont
  • setgroupid
  • setiteminfo
  • setitemscript
  • set
  • setlook
  • setmapflag
  • setmapflagnosave
  • setmount
  • setnpcdir
  • setnpcdisplay
  • setnpcdistance
  • setnpctimer
  • setoption
  • setparam
  • setpcblock
  • setquestinfo
  • setquest
  • setunitdata
  • setunitname
  • setwall
  • shopcount
  • showdigit
  • showevent
  • showscript
  • sit
  • skilleffect
  • skill
  • skillpointcount
  • sleep2
  • sleep
  • soundeffectall
  • soundeffect
  • specialeffect2
  • specialeffect
  • sprintf
  • sqrt
  • sscanf
  • stand
  • startnpctimer
  • statusup2
  • statusup
  • stopnpctimer
  • stopselling
  • strcharinfo
  • strcmp
  • strmobinfo
  • strnpcinfo
  • strpos
  • strtol
  • strtolower
  • strtoupper
  • substr
  • successrefitem
  • successremovecards
  • summon
  • swap
  • tradertype
  • unbindatcmd
  • undisguise
  • unequip
  • unitattack
  • unitemote
  • unitkill
  • unitskilluseid
  • unitskillusepos
  • unitstop
  • unittalk
  • unitwalk
  • unitwarp
  • useatcmd
  • viewpoint
  • waitingroom2bg
  • waitingroom2bg_single
  • waitingroom
  • warpchar
  • warpguild
  • warp
  • warppartner
  • warpparty
  • warpportal
  • warpwaitingpc
  • wedding
@guilherme-gm guilherme-gm added help wanted Extra attention is needed good first issue Good for newcomers labels May 2, 2019
@guilherme-gm guilherme-gm removed good first issue Good for newcomers help wanted Extra attention is needed labels Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant