스몬 게임을 자동으로 하시는 분들이 늘고 있습니다. 저도 얼마전에 자동 퀘스트 관련하여 완성을 했는데요. 이와 관련된 API들을 정리해봅니다. #### 1. 사용자의 현재 quest 상태 알아오기 https://steemmonsters.com/players/quests?username=myid  중요 데이터의 의미 - total_items : quest로 이긴 게임 수 - completed_items : quest 완료를 위하여 필요한 승 수 (No neutral의 경우에는 3) - claim_trx_id : quest 완료 후 클레임하여 받은 카드에 대한 정보 - claim_date : quest 완료 후 claim을 한 날짜 #### quest의 종류 현재 quest의 종류는 아래와 같이 7가지입니다. ~~~ QUEST_NAME = {'Rising Dead' : 'Black', 'Pirate Attacks' : 'Blue', "Stir the Volcano" : 'Red', "Lyanna's Call" : 'Green', 'Defend the Borders' : 'White', 'Stubborn Mercenaries' : 'No Neutral', 'Proving Grounds' : 'Tournament', 'Gloridax Revenge' : 'Dragon', } ~~~ ### 2. 다음 quest 요청하기 # 23시간이 지나면 새로운 quest를 요청할 수 있습니다. 따라서 이전 quest의 'created_date'와 현재 시각과의 차이가 23이 넘으면 새로운 quest를 요청하면 됩니다. 우선 quest 요청을 보내는 custom_json 함수를 만듭니다. ~~~ def do_quest_custom_json(acc, id, type, txid=0) : pwd = players_posting_key[acc] my_steem = Steem(keys=pwd) my_acc = Account(acc, steem_instance=my_steem) # 새로운 quest 요청 if id == "sm_claim_reward" : json_data = {"type": type, "quest_id":txid, "app": 'steemmonsters/0.7.0'} else : json_data = {"type": type, "app": 'steemmonsters/0.7.0'} ret = my_steem.custom_json(id, json_data, required_posting_auths=[acc]) ~~~ 앞으로는 이 함수를 이용하면 됩니다. 새로운 quest는 아래와 같은 값으로 콜을 하면 됩니다. do_quest_custom_json(account_name, "sm_start_quest", "daily") 새롭게 받은 quest가 마음에 안들면 최초 한번은 바꿀 수 있습니다. 이때는 아래와 같이 콜을 하면 됩니다. do_quest_custom_json(account_name, 'sm_refresh_quest', "daily") ### 3. quest 결과 claim하기 quest가 끝났는지는 앞에서 설명한대로 아래 두 변수를 확인하면 됩니다. - total_items : quest로 이긴 게임 수 - completed_items : quest 완료를 위하여 필요한 승 수 (No neutral의 경우에는 3) total_items가 completed_items 보다 크면 아래 함수를 콜하면 됩니다. do_quest_custom_json(account_name, "sm_claim_reward", "quest", quest_info['id']) claim을 한 후 스몬 공홈으로 접속을 해 보면 클레임한 카드를 열어보라고 나옵니다. 하지만 peakmon에서 확인을 해보면 이미 클레임한 카드의 종류가 나옵니다. 즉 공홈에서 열어보는 행위와 상관없이 카드는 결정이 되어 본인의 계정에 들어와 있습니다. 일단은 여기까지. 좀 더 하자면 claim으로 받은 카드를 시장에 파는 것까지 개발하면 그야말로 완전 자동으로 동작하는 일퀘머쉰이 될 것 같습니다.
author | tradingideas |
---|---|
permlink | 2gpfyj-api |
category | sct |
json_metadata | {"tags":["sct","sct-kr","sct-freeboard","s","union","mini","spt","zzan","dblog","marlians"],"image":["https://cdn.steemitimages.com/DQmY6njm8B8ecoQaWLJJx81jFMgsShYqTcNawC8oj6JwZZD/image.png"],"links":["https://steemmonsters.com/players/quests?username=myid"],"app":"steemcoinpan/0.1","format":"markdown","canonical_url":"https://www.steemcoinpan.com/@tradingideas/2gpfyj-api"} |
created | 2020-01-17 08:31:00 |
last_update | 2020-01-17 08:49:57 |
depth | 0 |
children | 1 |
last_payout | 2020-01-24 08:31:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 6.011 HBD |
curator_payout_value | 5.390 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 2,264 |
author_reputation | 473,979,989,726,345 |
root_title | "[개발] 스팀몬스트 퀘스트 관련 API들" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 94,475,906 |
net_rshares | 41,840,620,125,075 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gerber | 0 | 216,062,329,787 | 4% | ||
daan | 0 | 148,670,866,672 | 2% | ||
alexsandr | 0 | 23,641,691,181 | 20% | ||
exyle | 0 | 380,306,183,843 | 4% | ||
kopasi | 0 | 65,960,555,758 | 100% | ||
netaterra | 0 | 194,938,538,174 | 15% | ||
discernente | 0 | 7,484,372,904 | 1% | ||
jack8831 | 0 | 26,539,838,466 | 50% | ||
steemitboard | 0 | 16,434,606,791 | 1% | ||
elevator09 | 0 | 21,998,984,810 | 10% | ||
msg768 | 0 | 2,547,960,124 | 5% | ||
girina79 | 0 | 71,523,456,037 | 40% | ||
rycharde | 0 | 1,170,894,717 | 2.8% | ||
jamjamfood | 0 | 59,460,571,397 | 16% | ||
stylegold | 0 | 713,088,160 | 100% | ||
realmankwon | 0 | 48,569,265,419 | 100% | ||
ryanhkr | 0 | 44,375,700,543 | 100% | ||
techken | 0 | 0 | 0.28% | ||
jwolf | 0 | 50,680,313,072 | 100% | ||
dudiland | 0 | 1,363,178,809 | 100% | ||
zinasura | 0 | 395,258,127,965 | 10% | ||
solar-junely | 0 | 71,595,716,154 | 100% | ||
accelerator | 0 | 39,857,690,648 | 2.8% | ||
zeky | 0 | 8,207,262,858 | 100% | ||
gank | 0 | 342,252,771,786 | 100% | ||
tradingideas | 0 | 409,236,340,577 | 100% | ||
blockbrothers | 0 | 60,441,991,528 | 2% | ||
y-o-u-t-h-m-e | 0 | 1,464,917,071,789 | 50% | ||
isi3 | 0 | 170,556,690,338 | 100% | ||
goodhello | 0 | 356,081,070,930 | 100% | ||
jewel-lover | 0 | 73,488,136,515 | 100% | ||
backdm | 0 | 10,173,227,395 | 50% | ||
jacobyu | 0 | 446,250,930,574 | 100% | ||
sweetpapa | 0 | 4,676,927,279 | 12.5% | ||
bji1203 | 0 | 341,490,676,544 | 15% | ||
gfriend96 | 0 | 21,008,803,580 | 100% | ||
vaansteam | 0 | 156,563,496,773 | 30% | ||
kyju | 0 | 20,842,539,615 | 21% | ||
banguri | 0 | 33,871,293,003 | 50% | ||
fenrir78 | 0 | 157,851,841,775 | 100% | ||
cadawg | 0 | 12,401,122,370 | 2.8% | ||
rainingfall | 0 | 3,643,485,192 | 10% | ||
raise-me-up | 0 | 0 | 0.01% | ||
bozz | 0 | 2,621,532,279 | 1% | ||
yann03 | 0 | 446,215,540 | 25% | ||
earlmonk | 0 | 448,821,855 | 4% | ||
lovelyyeon | 0 | 31,177,308,219 | 100% | ||
bestboom | 0 | 12,142,468,431 | 4% | ||
strosalia | 0 | 20,063,288,023 | 100% | ||
bongje | 0 | 61,316,576,060 | 35% | ||
emotionalsea | 0 | 1,083,751,518 | 31% | ||
jungch98 | 0 | 5,193,024,371 | 100% | ||
alitavirgen | 0 | 30,304,212,253 | 18% | ||
sunny1124 | 0 | 35,245,646,050 | 61% | ||
garrettwallace | 0 | 1,009,623,113 | 18% | ||
jaydih | 0 | 528,879,364,787 | 18% | ||
andrewma | 0 | 0 | 0.2% | ||
kcc | 0 | 911,742,609,412 | 100% | ||
thally | 0 | 3,431,193,692 | 100% | ||
afewroom | 0 | 16,075,953,005 | 100% | ||
readygo | 0 | 613,683,698 | 100% | ||
bigjoy | 0 | 11,436,742,942 | 52% | ||
china-mobile | 0 | 311,288,346 | 20% | ||
luminaryhmo | 0 | 744,974,019 | 100% | ||
newbijohn | 0 | 39,921,859,807 | 100% | ||
opixer | 0 | 865,495,587,241 | 100% | ||
netizens | 0 | 52,828,278 | 100% | ||
lucky2 | 0 | 365,362,336,155 | 100% | ||
mozer | 0 | 743,476,856 | 31% | ||
tiffany4ever | 0 | 1,046,127,521 | 100% | ||
teamvn | 0 | 24,703,855,917 | 50.03% | ||
glory7 | 0 | 80,790,916,489 | 100% | ||
volare511 | 0 | 637,955,125 | 50% | ||
jk6276 | 0 | 3,100,385,579 | 5% | ||
china.mobile | 0 | 246,510,024 | 5% | ||
dlike | 0 | 154,730,947,805 | 2.2% | ||
triptolemus | 0 | 15,725,507,994 | 4% | ||
lucky222 | 0 | 29,280,607,574 | 100% | ||
garamee21 | 0 | 1,887,069,121 | 10% | ||
cryptopaxnet | 0 | 2,511,982,581 | 90% | ||
kabasakal | 0 | 159,056,750 | 31% | ||
honeybeerbear | 0 | 21,462,066,903 | 100% | ||
muzehan | 0 | 913,547,704 | 100% | ||
smonia | 0 | 10,684,176,464 | 100% | ||
edgarare1 | 0 | 799,270,946 | 2% | ||
swiftcash | 0 | 22,365,114,967 | 5% | ||
entrust | 0 | 9,503,902,030 | 50% | ||
smon-fan | 0 | 7,124,301,600 | 100% | ||
kakakk | 0 | 5,620,696,894 | 50% | ||
primeradue | 0 | 3,931,067,188 | 4% | ||
playsteemmonster | 0 | 949,122,222 | 100% | ||
smonian | 0 | 4,044,844,082 | 100% | ||
permaculturedude | 0 | 740,327,862 | 2% | ||
smon-joa | 0 | 237,696,011,730 | 100% | ||
skymin | 0 | 82,267,732,057 | 50% | ||
jk6276.mons | 0 | 2,019,612,044 | 50% | ||
felixpower | 0 | 12,301,384 | 10% | ||
anti-fraud | 0 | 19,306,500,137 | 20% | ||
kr-fund | 0 | 2,889,568,129 | 25% | ||
mustard-seed | 0 | 54,305,757,151 | 18% | ||
jcarvoting | 0 | 4,060,333,314 | 90% | ||
maxkim | 0 | 862,790,432 | 100% | ||
axeminni | 0 | 0 | 4% | ||
sct.tom | 0 | 14,008,137,625 | 100% | ||
sct.adv | 0 | 28,420,034,941 | 100% | ||
fsm-liquid | 0 | 10,297,348,997 | 4% | ||
lovelyyeon.sct | 0 | 53,141,391,211 | 100% | ||
map10k | 0 | 24,235,973,761 | 8% | ||
jstory | 0 | 3,086,212,827 | 40% | ||
lovelyyeon.cur | 0 | 4,516,559,931 | 100% | ||
naha.spt | 0 | 650,505,949 | 100% | ||
korea.test | 0 | 601,742,365 | 100% | ||
wonsama.sct | 0 | 1,020,835,069 | 100% | ||
isi3.aaa | 0 | 944,807,296 | 25% | ||
isi3.sct | 0 | 3,358,303,187 | 100% | ||
moonhodler | 0 | 1,299,356,713 | 14% | ||
goodhello.spt | 0 | 907,255,084 | 100% | ||
sky.spt | 0 | 479,919,018 | 100% | ||
zzan.adv | 0 | 261,932,357 | 25% | ||
sct.min | 0 | 24,621,271,258 | 100% | ||
goodhello.sct | 0 | 282,422,787 | 100% | ||
zaku-spt | 0 | 8,876,076,703 | 100% | ||
union.sct | 0 | 4,770,058,166 | 100% | ||
team1p | 0 | 3,794,604,214 | 100% | ||
triplea.bot | 0 | 1,798,412,348 | 4% | ||
steem.leo | 0 | 115,163,122,984 | 3.8% | ||
everythingsmgirl | 0 | 1,122,469,192 | 100% | ||
realmankwon.scot | 0 | 18,346,443,291 | 100% | ||
r-spt | 0 | 128,806,947 | 30% | ||
newiz.sct | 0 | 3,277,096,593 | 100% | ||
leo.voter | 0 | 495,598,437,300 | 1.8% | ||
cn-sct | 0 | 1,957,422,551 | 2% | ||
windmolen | 0 | 1,941,292,250 | 100% | ||
sct1004 | 0 | 567,013,186 | 25% | ||
mapxv | 0 | 19,366,618,057 | 2.24% | ||
tina-tina | 0 | 806,613,373 | 100% | ||
thranax | 0 | 17,175,284,180 | 23% | ||
peterpa.cur | 0 | 951,213,854 | 25% | ||
plcl | 0 | 613,485,896 | 100% | ||
sct.krwp | 0 | 13,831,209,788,771 | 20.73% | ||
leo.syndication | 0 | 1,561,160,248 | 4% | ||
maxuva | 0 | 1,559,738,974 | 2.8% | ||
maxuvb | 0 | 1,162,884,189 | 2.8% | ||
maxuvc | 0 | 1,676,093,534 | 2.8% | ||
maxuvd | 0 | 1,166,324,331 | 2.8% | ||
maxuve | 0 | 7,896,416,444 | 1.96% | ||
jieuni | 0 | 445,410,861 | 100% | ||
jhzzanglove | 0 | 306,061,780 | 100% | ||
soo002 | 0 | 310,659,067 | 100% | ||
sqljoker | 0 | 31,136,437 | 2% | ||
sct.curator | 0 | 21,632,529,325 | 26.31% | ||
therealyme | 0 | 9,133,205,468 | 3.6% | ||
khalsct | 0 | 920,098,268 | 75% | ||
inandout | 0 | 155,369,031 | 100% | ||
kopasi.sct | 0 | 17,307,029,340,471 | 100% | ||
mcgome | 0 | 1,505,831,107 | 100% | ||
youngtopia | 0 | 764,694,862 | 100% | ||
thebilpcointrain | 0 | 16,141,846 | 1% | ||
bilpcoin.pay | 0 | 132,778,490 | 1% | ||
ysm1360 | 0 | 764,472,838 | 100% | ||
dblogbasicincome | 0 | 96,721,186 | 7% | ||
toni.spt | 0 | 209,305,095 | 26.36% | ||
miti.spt | 0 | 357,754,239 | 70% | ||
khalspt | 0 | 634,896,384 | 50% | ||
martians | 0 | 0 | 2.8% | ||
ncm.wicked | 0 | 539,736,803 | 100% | ||
ncm.defying | 0 | 539,737,021 | 100% | ||
ncm.gravity | 0 | 539,737,074 | 100% | ||
ncm.hamilton | 0 | 539,736,762 | 100% | ||
ncm.whos | 0 | 539,737,093 | 100% | ||
ncm.next | 0 | 539,736,869 | 100% | ||
ncm.fire | 0 | 539,737,285 | 100% | ||
ncm.life | 0 | 539,756,497 | 100% | ||
ncm.death | 0 | 539,728,634 | 100% | ||
zzan.sct | 0 | 2,402,207,919 | 100% | ||
zerba | 0 | -9,223,176 | -10% | ||
goodhellonode | 0 | 36,868,226,807 | 100% | ||
dblogvoter | 0 | 68,795,761 | 2% | ||
tonystarkalive | 0 | 28,797,109 | 2% | ||
reward.tier3 | 0 | 1,692,759,926 | 100% | ||
bilpcoinpower | 0 | 289,676,462 | 10% |
Congratulations @tradingideas! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : <table><tr><td><img src="https://steemitimages.com/60x70/http://steemitboard.com/@tradingideas/payout.png?202001171545"></td><td>You received more than 20000 as payout for your posts. Your next target is to reach a total payout of 30000</td></tr> </table> <sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@tradingideas) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=tradingideas)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> To support your work, I also upvoted your post! ###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
author | steemitboard |
---|---|
permlink | steemitboard-notify-tradingideas-20200117t165147000z |
category | sct |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2020-01-17 16:51:45 |
last_update | 2020-01-17 16:51:45 |
depth | 1 |
children | 0 |
last_payout | 2020-01-24 16:51:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 939 |
author_reputation | 38,975,615,169,260 |
root_title | "[개발] 스팀몬스트 퀘스트 관련 API들" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 94,486,263 |
net_rshares | 0 |