- Mesaj
- 1.310
- Çözümler
- 73
- Beğeni
- 4.909
- Puan
- 1.859
- Ticaret Puanı
- 0
Sıfırdan biyolog sistemi yapmaya çalışıyorum şimdilik sadece json dosyasını ve bu dosyadaki verilerin game source tarafında okunup bir vector e atanması işini hallettim. Devamı gelicek ama ne zaman belli değil.
json:
{
"biyolog_recipes":
[
{
"mission_id": 1,
"mission_level": 30,
"chance": 100,
"steps":
[
{ "type": "ITEM", "vnum": 50001, "count": 3 },
{ "type": "SOUL", "vnum": 70001, "count": 1 },
{ "type": "REWARD", "vnum": 5001, "count": 3 }
],
"affects":
[
{ "type": 1, "value": 5 },
{ "type": 2, "value": 10 },
{ "type": 3, "value": 15 }
]
},
{
"mission_id": 2,
"mission_level": 40,
"chance": 90,
"steps":
[
{ "type": "ITEM", "vnum": 50002, "count": 3 },
{ "type": "SOUL", "vnum": 70002, "count": 1 },
{ "type": "REWARD", "vnum": 5002, "count": 3 }
],
"affects":
[
{ "type": 1, "value": 5 },
{ "type": 2, "value": 10 },
{ "type": 3, "value": 15 }
]
},
{
"mission_id": 3,
"mission_level": 50,
"chance": 70,
"steps":
[
{ "type": "ITEM", "vnum": 50003, "count": 3 },
{ "type": "SOUL", "vnum": 70003, "count": 1 },
{ "type": "REWARD", "vnum": 5003, "count": 3 }
],
"affects":
[
{ "type": 1, "value": 5 },
{ "type": 2, "value": 10 },
{ "type": 3, "value": 15 }
]
}
]
}