-
re: [Release] zTeam Season 8 Episode 2 (Source)
Can someone tell the legend of these two files? For I am trying to set up so that is only making the first and second quest ever other does not
QuestInfo:
Code:
18
// Quest 1
1
// Conditio
0 1 3 0 0 10 // What the legend of these codes?
// Reward
1 1 0 0 0 2000 // What the legend of these codes?
2 0 0 0 0 0 0
end
// Quest 2
2
// Conditio
0 1 3 0 0 20
// Reward
1 1 0 0 0 2000
2 0 0 0 0 0 0
end
// Quest 3
3
// Conditio
0 1 7 0 0 15
// Reward
1 1 0 0 0 6000
2 0 0 0 0 0 0
end
// Quest 4
4
0 1 7 0 0 15
// Reward
1 1 0 0 0 6000
2 3 3 3 3 3 3
end
// Quest 5
5
0 1 6 0 0 15
// Reward
1 1 0 0 0 6000
2 3 3 3 3 3 3
end
// Quest 6
6
0 1 31 0 0 15
// Reward
1 1 0 0 0 6000
2 3 3 3 3 3 3
end
// Quest 7
7
0 1 421 0 0 15
// Reward
1 1 0 0 0 6000
2 3 3 3 3 3 3
end
// Quest 8
8
2 3 3 3 3 3 3
end
// Quest 10
10
0 1 14 0 0 20
// Reward
1 1 0 0 0 10000
1 2 0 0 0 10000
2 9 9 9 9 9 9
end
// Quest 11
11
0 1 24 0 0 20
// Reward
1 1 0 0 0 10000
1 2 0 0 0 10000
2 9 9 9 9 9 9
end
// Quest 12
12
0 1 32 0 0 20
// Reward
1 1 0 0 0 10000
1 2 0 0 0 10000
2 9 9 9 9 9 9
end
// Quest 13
13
0 1 419 0 0 20
// Reward
1 1 0 0 0 10000
1 2 0 0 0 10000
2 9 9 9 9 9 9
end
// Quest 14
14
2 9 9 9 9 9 9
end
QuestProgess:
Quote:
//ID minlvl maxlvl 1 menu 2 menu 3menu DW DK ME MG DL SUML RF
0 1 400 0 1 0 2 -1 -1 1 1 1 1 1 1 1 legend ??
3 5 25 0 4 0 8 -1 -1 0 1 0 0 1 0 1 legend ??
3 5 25 0 5 0 8 -1 -1 1 0 0 1 0 0 1
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
walter29
Can someone tell the legend of these two files? For I am trying to set up so that is only making the first and second quest ever other does not
QuestInfo:
Code:
18
// Quest 1
1
// Conditio
0 1 3 0 0 10 // What the legend of these codes?
// Reward
1 1 0 0 0 2000 // What the legend of these codes?
2 0 0 0 0 0 0
end
// Quest 2
2
// Conditio
0 1 3 0 0 20
// Reward
1 1 0 0 0 2000
2 0 0 0 0 0 0
end
// Quest 3
3
// Conditio
0 1 7 0 0 15
// Reward
1 1 0 0 0 6000
2 0 0 0 0 0 0
end
// Quest 4
4
0 1 7 0 0 15
// Reward
1 1 0 0 0 6000
2 3 3 3 3 3 3
end
// Quest 5
5
0 1 6 0 0 15
// Reward
1 1 0 0 0 6000
2 3 3 3 3 3 3
end
// Quest 6
6
0 1 31 0 0 15
// Reward
1 1 0 0 0 6000
2 3 3 3 3 3 3
end
// Quest 7
7
0 1 421 0 0 15
// Reward
1 1 0 0 0 6000
2 3 3 3 3 3 3
end
// Quest 8
8
2 3 3 3 3 3 3
end
// Quest 10
10
0 1 14 0 0 20
// Reward
1 1 0 0 0 10000
1 2 0 0 0 10000
2 9 9 9 9 9 9
end
// Quest 11
11
0 1 24 0 0 20
// Reward
1 1 0 0 0 10000
1 2 0 0 0 10000
2 9 9 9 9 9 9
end
// Quest 12
12
0 1 32 0 0 20
// Reward
1 1 0 0 0 10000
1 2 0 0 0 10000
2 9 9 9 9 9 9
end
// Quest 13
13
0 1 419 0 0 20
// Reward
1 1 0 0 0 10000
1 2 0 0 0 10000
2 9 9 9 9 9 9
end
// Quest 14
14
2 9 9 9 9 9 9
end
QuestProgess:
use these files to be guided by the questgens.
guide explained by : @PSalazar
==== QUEST INFO =====
//========================================== ==========================================================
//[1] Index [QuestProgress.txt] = =[7] Default ~ 1 =
//[2] Condition Default ~ 1 = =[8] 1 = Exp | 2 = Zen | 4 = Item | 16 = Contribution =
//[3] ID Monster [Monster.xml] = =[9] Item ID =
//[4] Sub Index [QuestProgress.txt] = =[10] Item Index =
//[5] Sub Index [QuestProgress.txt] = =[11] Level Item +1 +2 +3 +4 etc.. =
//[6] Count Monster = =[12] Count Item =
//========================================== ==========================================================
// [Index]
1
//[1]-[2].[3]-[4]-[5]-[6]
0 - 1 - 3 - 1 - 1 - 1
//[7]-[8]-[9]-[10]-[11]-[12]
1 - 1 - 0 - 0 - 0 - 2000
1 - 2 - 0 - 0 - 0 - 2000
1 - 4 - 8 - 1 - 15 - 1
1 - 16 - 1 - 1 - 1 - 800
end
===== QUEST PROGRESS =====
// ========= ======= ===========
// = Index = = NPC = = Default =
// ========= ======= ===========
19 543 -1
//==============================
//[1] Index =
//[2] Min Lvl =
//[3] Max Lvl =
//[4] Default ~ 0 =
//[5] Sub Index =
//[6] Default ~ 0 =
//[7] Default ~ 2 =
//[8] Default ~ -1 =
//[9] Default ~ -1 =
//[10] Dark Wizard =
//[11] Dark Knight =
//[12] Fairy Elf =
//[13] Magic Gladiador =
//[14] Dark Lord =
//[15] Summoner =
//==============================
//[1]-[2]-[3]-[4]-[5]-[6]-[7]-[8]-[9]-[10]-[11]-[12]-[13]-[14]-[15]
0 - 240 - 299 - 0 - 1 - 0 - 2 - -1 - -1 - 1 - 0 - 0 - 0 - 0 - 0
end
-
re: [Release] zTeam Season 8 Episode 2 (Source)
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Here's QuestInfo and QuestProgress for Gens.
Add these to their respective files.
Credits: Wortex, PSalazar (for Contrib struct, hope it works!)
QuestProgress.txt
Code:
// ------------------------------
// Gens Vanert
// ------------------------------
// Index NPC ID MapSubIndex (Default -1)
16 543 -1
// ------------------------------
//ID MiLVL MaLVL x Obj x End x x DW BK ELF MG DL SUM
0 150 219 0 2 0 1 -1 -1 1 1 1 1 1 1
3 220 249 0 5 0 4 -1 -1 1 1 1 1 1 1
6 250 299 0 8 0 7 -1 -1 1 1 1 1 1 1
9 300 379 0 11 0 10 -1 -1 1 1 1 1 1 1
12 380 1001 0 14 0 13 -1 -1 1 1 1 1 1 1
end
// ------------------------------
// Gens Duprian
// ------------------------------
// Index NPC ID MapSubIndex (Default -1)
17 544 -1
// ------------------------------
//ID MiLVL MaLVL x Obj x End x x DW BK ELF MG DL SUM
0 150 219 0 2 0 1 -1 -1 1 1 1 1 1 1
3 220 249 0 5 0 4 -1 -1 1 1 1 1 1 1
6 250 299 0 8 0 7 -1 -1 1 1 1 1 1 1
9 300 379 0 11 0 10 -1 -1 1 1 1 1 1 1
12 380 1001 0 14 0 13 -1 -1 1 1 1 1 1 1
end
QuestInfo.txt
Code:
// ------------------------------
// Gens Vanert
// ------------------------------
16
//ID
0 // Quest 1
// Condition
//x MobKill MobNR x x Count
0 1 46 0 0 50
// Reward
1 1 0 0 0 100000 // <Exp
1 4 14 35 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 3 3 3 3 3 3
end
// --------------------------------------------------------
3 // Quest 2
// Condition
//x MobKill MobNR x x Count
0 1 308 0 0 50
// Reward
1 1 0 0 0 200000 // <Exp
1 4 14 35 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 6 6 6 6 6 6
end
// --------------------------------------------------------
6 // Quest 3
// Condition
//x MobKill MobNR x x Count
0 1 351 0 0 50
// Reward
1 1 0 0 0 300000 // <Exp
1 4 14 36 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 9 9 9 9 9 9
end
// --------------------------------------------------------
9 // Quest 4
// Condition
//x MobKill MobNR x x Count
0 1 486 0 0 50
// Reward
1 1 0 0 0 400000 // <Exp
1 4 14 37 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 12 12 12 12 12 12
end
// --------------------------------------------------------
12 // Quest 5
// Condition
//x MobKill MobNR x x Count
0 1 442 0 0 50
// Reward
1 1 0 0 0 450000 // <Exp
1 4 14 37 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 0 0 0 0 0 0
end
end
// ------------------------------
// Gens Duprian
// ------------------------------
17
//ID
0 // Quest 1
// Condition
//x MobKill MobNR x x Count
0 1 52 0 0 50
// Reward
1 1 0 0 0 150000 // <Exp
1 4 14 38 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 3 3 3 3 3 3
end
// --------------------------------------------------------
3 // Quest 2
// Condition
//x MobKill MobNR x x Count
0 1 306 0 0 50
// Reward
1 1 0 0 0 250000 // <Exp
1 4 14 38 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 6 6 6 6 6 6
end
// --------------------------------------------------------
6 // Quest 3
// Condition
//x MobKill MobNR x x Count
0 1 352 0 0 50
// Reward
1 1 0 0 0 350000 // <Exp
1 4 14 39 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 9 9 9 9 9 9
end
// --------------------------------------------------------
9 // Quest 4
// Condition
//x MobKill MobNR x x Count
0 1 489 0 0 50
// Reward
1 1 0 0 0 450000 // <Exp
1 4 14 40 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 12 12 12 12 12 12
end
// --------------------------------------------------------
12 // Quest 5
// Condition
//x MobKill MobNR x x Count
0 1 448 0 0 50
// Reward
1 1 0 0 0 500000 // <Exp
1 4 14 40 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 0 0 0 0 0 0
end
end
P.S. You'll need to fill in the gaps. I'll do that, but on a later date, if you're impatient, move your lazy ass.
-
re: [Release] zTeam Season 8 Episode 2 (Source)
anyone can upload muserver files with all fixes from this thread ?! Thank you
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
Wortex
Here's QuestInfo and QuestProgress for Gens.
Add these to their respective files.
Credits: Wortex, PSalazar (for Contrib struct, hope it works!)
QuestProgress.txt
Code:
// ------------------------------
// Gens Vanert
// ------------------------------
// Index NPC ID MapSubIndex (Default -1)
16 543 -1
// ------------------------------
//ID MiLVL MaLVL x Obj x End x x DW BK ELF MG DL SUM
0 150 219 0 2 0 1 -1 -1 1 1 1 1 1 1
3 220 249 0 5 0 4 -1 -1 1 1 1 1 1 1
6 250 299 0 8 0 7 -1 -1 1 1 1 1 1 1
9 300 379 0 11 0 10 -1 -1 1 1 1 1 1 1
12 380 1001 0 14 0 13 -1 -1 1 1 1 1 1 1
end
// ------------------------------
// Gens Duprian
// ------------------------------
// Index NPC ID MapSubIndex (Default -1)
17 544 -1
// ------------------------------
//ID MiLVL MaLVL x Obj x End x x DW BK ELF MG DL SUM
0 150 219 0 2 0 1 -1 -1 1 1 1 1 1 1
3 220 249 0 5 0 4 -1 -1 1 1 1 1 1 1
6 250 299 0 8 0 7 -1 -1 1 1 1 1 1 1
9 300 379 0 11 0 10 -1 -1 1 1 1 1 1 1
12 380 1001 0 14 0 13 -1 -1 1 1 1 1 1 1
end
QuestInfo.txt
Code:
// ------------------------------
// Gens Vanert
// ------------------------------
16
//ID
0 // Quest 1
// Condition
//x MobKill MobNR x x Count
0 1 46 0 0 50
// Reward
1 1 0 0 0 100000 // <Exp
1 4 14 35 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 3 3 3 3 3 3
end
// --------------------------------------------------------
3 // Quest 2
// Condition
//x MobKill MobNR x x Count
0 1 308 0 0 50
// Reward
1 1 0 0 0 200000 // <Exp
1 4 14 35 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 6 6 6 6 6 6
end
// --------------------------------------------------------
6 // Quest 3
// Condition
//x MobKill MobNR x x Count
0 1 351 0 0 50
// Reward
1 1 0 0 0 300000 // <Exp
1 4 14 36 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 9 9 9 9 9 9
end
// --------------------------------------------------------
9 // Quest 4
// Condition
//x MobKill MobNR x x Count
0 1 486 0 0 50
// Reward
1 1 0 0 0 400000 // <Exp
1 4 14 37 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 12 12 12 12 12 12
end
// --------------------------------------------------------
12 // Quest 5
// Condition
//x MobKill MobNR x x Count
0 1 442 0 0 50
// Reward
1 1 0 0 0 450000 // <Exp
1 4 14 37 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 0 0 0 0 0 0
end
end
// ------------------------------
// Gens Duprian
// ------------------------------
17
//ID
0 // Quest 1
// Condition
//x MobKill MobNR x x Count
0 1 52 0 0 50
// Reward
1 1 0 0 0 150000 // <Exp
1 4 14 38 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 3 3 3 3 3 3
end
// --------------------------------------------------------
3 // Quest 2
// Condition
//x MobKill MobNR x x Count
0 1 306 0 0 50
// Reward
1 1 0 0 0 250000 // <Exp
1 4 14 38 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 6 6 6 6 6 6
end
// --------------------------------------------------------
6 // Quest 3
// Condition
//x MobKill MobNR x x Count
0 1 352 0 0 50
// Reward
1 1 0 0 0 350000 // <Exp
1 4 14 39 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 9 9 9 9 9 9
end
// --------------------------------------------------------
9 // Quest 4
// Condition
//x MobKill MobNR x x Count
0 1 489 0 0 50
// Reward
1 1 0 0 0 450000 // <Exp
1 4 14 40 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 12 12 12 12 12 12
end
// --------------------------------------------------------
12 // Quest 5
// Condition
//x MobKill MobNR x x Count
0 1 448 0 0 50
// Reward
1 1 0 0 0 500000 // <Exp
1 4 14 40 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 0 0 0 0 0 0
end
end
P.S. You'll need to fill in the gaps. I'll do that, but on a later date, if you're impatient, move your lazy ass.
so did you figure out what evry numbers supposed to mean? where did you get info about 0 to 5 or 0 to 2 for example on questprogress.txt? Did you extraact it from client or something? thx
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
Wortex
Here's QuestInfo and QuestProgress for Gens.
Add these to their respective files.
Credits: Wortex, PSalazar (for Contrib struct, hope it works!)
QuestProgress.txt
Code:
// ------------------------------
// Gens Vanert
// ------------------------------
// Index NPC ID MapSubIndex (Default -1)
16 543 -1
// ------------------------------
//ID MiLVL MaLVL x Obj x End x x DW BK ELF MG DL SUM
0 150 219 0 2 0 1 -1 -1 1 1 1 1 1 1
3 220 249 0 5 0 4 -1 -1 1 1 1 1 1 1
6 250 299 0 8 0 7 -1 -1 1 1 1 1 1 1
9 300 379 0 11 0 10 -1 -1 1 1 1 1 1 1
12 380 1001 0 14 0 13 -1 -1 1 1 1 1 1 1
end
// ------------------------------
// Gens Duprian
// ------------------------------
// Index NPC ID MapSubIndex (Default -1)
17 544 -1
// ------------------------------
//ID MiLVL MaLVL x Obj x End x x DW BK ELF MG DL SUM
0 150 219 0 2 0 1 -1 -1 1 1 1 1 1 1
3 220 249 0 5 0 4 -1 -1 1 1 1 1 1 1
6 250 299 0 8 0 7 -1 -1 1 1 1 1 1 1
9 300 379 0 11 0 10 -1 -1 1 1 1 1 1 1
12 380 1001 0 14 0 13 -1 -1 1 1 1 1 1 1
end
QuestInfo.txt
Code:
// ------------------------------
// Gens Vanert
// ------------------------------
16
//ID
0 // Quest 1
// Condition
//x MobKill MobNR x x Count
0 1 46 0 0 50
// Reward
1 1 0 0 0 100000 // <Exp
1 4 14 35 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 3 3 3 3 3 3
end
// --------------------------------------------------------
3 // Quest 2
// Condition
//x MobKill MobNR x x Count
0 1 308 0 0 50
// Reward
1 1 0 0 0 200000 // <Exp
1 4 14 35 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 6 6 6 6 6 6
end
// --------------------------------------------------------
6 // Quest 3
// Condition
//x MobKill MobNR x x Count
0 1 351 0 0 50
// Reward
1 1 0 0 0 300000 // <Exp
1 4 14 36 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 9 9 9 9 9 9
end
// --------------------------------------------------------
9 // Quest 4
// Condition
//x MobKill MobNR x x Count
0 1 486 0 0 50
// Reward
1 1 0 0 0 400000 // <Exp
1 4 14 37 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 12 12 12 12 12 12
end
// --------------------------------------------------------
12 // Quest 5
// Condition
//x MobKill MobNR x x Count
0 1 442 0 0 50
// Reward
1 1 0 0 0 450000 // <Exp
1 4 14 37 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 0 0 0 0 0 0
end
end
// ------------------------------
// Gens Duprian
// ------------------------------
17
//ID
0 // Quest 1
// Condition
//x MobKill MobNR x x Count
0 1 52 0 0 50
// Reward
1 1 0 0 0 150000 // <Exp
1 4 14 38 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 3 3 3 3 3 3
end
// --------------------------------------------------------
3 // Quest 2
// Condition
//x MobKill MobNR x x Count
0 1 306 0 0 50
// Reward
1 1 0 0 0 250000 // <Exp
1 4 14 38 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 6 6 6 6 6 6
end
// --------------------------------------------------------
6 // Quest 3
// Condition
//x MobKill MobNR x x Count
0 1 352 0 0 50
// Reward
1 1 0 0 0 350000 // <Exp
1 4 14 39 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 9 9 9 9 9 9
end
// --------------------------------------------------------
9 // Quest 4
// Condition
//x MobKill MobNR x x Count
0 1 489 0 0 50
// Reward
1 1 0 0 0 450000 // <Exp
1 4 14 40 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 12 12 12 12 12 12
end
// --------------------------------------------------------
12 // Quest 5
// Condition
//x MobKill MobNR x x Count
0 1 448 0 0 50
// Reward
1 1 0 0 0 500000 // <Exp
1 4 14 40 0 3 // <Item
1 16 1 1 1 5 // <Contrib
// Next Stage
2 0 0 0 0 0 0
end
end
P.S. You'll need to fill in the gaps. I'll do that, but on a later date, if you're impatient, move your lazy ass.
Friend's something wrong in these settings because it is not working to use the quests because I try to select the quest and will not
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
Bloder
80 users online the server has therefore no lag people could come , be put after locking and password
any solution ?
Someone found a fix for this problem? or know where to start searching?
-
re: [Release] zTeam Season 8 Episode 2 (Source)
How disables the auto create account?
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
Onne
How disables the auto create account?
Edit Settings files in a folder zMultiServer1.
AutoRegistration = 1
Change from 1 to 0
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Fixear on any managed server Experience if leveara down to 0 as if you were in 9999 someone could solve that?
Alguno logró fixear sobre la Experiencia del server si la bajan a 0 leveara como si estubiera en 9999 alguien pudo solucionar eso ?
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
PSalazar
Fixear on any managed server Experience if leveara down to 0 as if you were in 9999 someone could solve that?
Alguno logró fixear sobre la Experiencia del server si la bajan a 0 leveara como si estubiera en 9999 alguien pudo solucionar eso ?
Exp Full Working :)
Español :
La Experiencia funciona muy bien. te fijastes en cambiar la exp master y la exp comun ? porque ami me funciona de 10 subo la experencia 9999 sube lvl muy rapido la bajo a 80 y tardo mucho en subir de lvl :)...
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
PSalazar
Hola @
Callejero ami me anda mal le baje la EXP de Master Level y Level normal a 0 y levea muy rápido como si estuviera en 9999
lol for that you need at 0 curious but did not leave the test and not uploaded a lvl
Español:
jejeje nose para que la necesitas en 0 pero de curioso hice la prueba lo deje y no subio un lvl :P
-
re: [Release] zTeam Season 8 Episode 2 (Source)
@Wortex : quests still not working for me....i added those lines at the txt files but still getting "no quest available" message (tried with lvl 100 & lvl 398 or 399, so not a lvl req issue.)....any clues?
@PSalazar lograron hacer andar las quest gens ustedes? A mi me siguen sin funcionar u.u
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Hello guys! give me unpacked main? for hook new dll, or main that does not use commonz for login.
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Hola @ianvalls90 sobre las gens si logre hacerlas funcionar la cosa es editarlos pronto subiré las quest ya echas para que no tengan problema :)
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
jackbot
Since my whole source zgs are different so I cant share the whole zgs for PKClear
Here ill leave u source and way to add them.
PKReset.h
Code:
#pragma once// -------------------------------------------------------------------------------
#include "user.h"
#include "..\common\winutil.h"
// -------------------------------------------------------------------------------
#define MAX_PKCLEAR_ITEM 10
// -------------------------------------------------------------------------------
struct PKCLEAR_ITEM_DATA
{
WORD ID;
BYTE MinLevel;
BYTE MaxLevel;
BYTE MinDur;
BYTE MaxDur;
};
// -------------------------------------------------------------------------------
class PKClear
{
public:
PKClear();
~PKClear();
// ----
void Init();
void Load();
void ReadData(char * File);
// ----
bool SearchItem(LPOBJ lpUser, BYTE QuestItemID);
bool DeleteItem(LPOBJ lpUser, BYTE QuestItemID);
bool CheckReq(LPOBJ lpUser);
// ----
bool Dialog(LPOBJ lpUser, LPOBJ lpNpc);
// ----
private:
WORD m_NpcID;
BYTE m_NpcMap;
BYTE m_NpcX;
BYTE m_NpcY;
BYTE m_ReqPK;
WORD m_ReqLevel;
WORD m_ReqReset;
DWORD m_Cost[4];
DWORD m_Cost1[4];
PKCLEAR_ITEM_DATA m_ItemData[MAX_PKCLEAR_ITEM];
BYTE m_ItemLoaded;
// ----
}; extern PKClear g_PKClear;
// -------------------------------------------------------------------------------
PKReset.cpp
Code:
#include "StdAfx.h"#include "PKReset.h"
#include "GameMain.h"
#include "..\include\ReadScript.h"
#include "..\common\winutil.h"
#include "logproc.h"
// -------------------------------------------------------------------------------
PKClear g_PKClear;
// -------------------------------------------------------------------------------
PKClear::PKClear()
{
this->Init();
}
// -------------------------------------------------------------------------------
PKClear::~PKClear()
{
}
// -------------------------------------------------------------------------------
void PKClear::Init()
{
this->m_NpcID = -1;
this->m_NpcMap = -1;
this->m_NpcX = 0;
this->m_NpcY = 0;
this->m_ReqPK = 4;
this->m_ReqLevel = 1;
this->m_ReqReset = 0;
this->m_ItemLoaded = 0;
ZeroMemory(this->m_ItemData, sizeof(this->m_ItemData));
ZeroMemory(this->m_Cost, sizeof(this->m_Cost));
}
// -------------------------------------------------------------------------------
void PKClear::Load()
{
this->Init();
this->ReadData(gDirPath.GetNewPath("Custom\\PKClear.txt"));
}
// -------------------------------------------------------------------------------
void PKClear::ReadData(char * File)
{
SMDToken Token;
SMDFile = fopen(File, "r");
// ----
if( !SMDFile )
{
MsgBox("[PKClear] %s file not found", File);
return;
}
// ----
int Category = -1;
// ----
while(true)
{
Token = GetToken();
// ----
if( Token == END )
{
break;
}
// ----
Category = TokenNumber;
// ----
while(true)
{
if( Category == 0 ) //-> NPC
{
Token = GetToken();
// ----
if( !strcmp("end", TokenString) )
{
break;
}
// ----
this->m_NpcID = TokenNumber;
// ----
Token = GetToken();
this->m_NpcMap = TokenNumber;
// ----
Token = GetToken();
this->m_NpcX = TokenNumber;
// ----
Token = GetToken();
this->m_NpcY = TokenNumber;
}
else if( Category == 1 ) //-> Requirements
{
Token = GetToken();
// ----
if( !strcmp("end", TokenString) )
{
break;
}
// ----
this->m_ReqPK = TokenNumber;
// ----
Token = GetToken();
this->m_ReqLevel = TokenNumber;
// ----
Token = GetToken();
this->m_ReqReset = TokenNumber;
}
else if( Category == 2 ) //-> Cost
{
Token = GetToken();
// ----
if( !strcmp("end", TokenString) )
{
break;
}
// ----
this->m_Cost[0] = TokenNumber;
// ----
Token = GetToken();
this->m_Cost[1] = TokenNumber;
// ----
Token = GetToken();
this->m_Cost[2] = TokenNumber;
// ----
Token = GetToken();
this->m_Cost[3] = TokenNumber;
}
else if( Category == 3 ) //-> Item list
{
Token = GetToken();
// ----
if( !strcmp("end", TokenString) )
{
break;
}
// ----
WORD ItemType = TokenNumber;
Token = GetToken();
WORD ItemIndex = TokenNumber;
this->m_ItemData[this->m_ItemLoaded].ID = ITEMGET(ItemType, ItemIndex);
// ----
Token = GetToken();
this->m_ItemData[this->m_ItemLoaded].MinLevel = TokenNumber;
// ----
Token = GetToken();
this->m_ItemData[this->m_ItemLoaded].MaxLevel = TokenNumber;
// ----
Token = GetToken();
this->m_ItemData[this->m_ItemLoaded].MinDur = TokenNumber;
// ----
Token = GetToken();
this->m_ItemData[this->m_ItemLoaded].MaxDur = TokenNumber;
// ----
this->m_ItemLoaded++;
}
}
}
// ----
fclose(SMDFile);
LogAddTD("[PKClear] %s file is loaded (Items: %d)", File, this->m_ItemLoaded);
}
// -------------------------------------------------------------------------------
bool PKClear::SearchItem(LPOBJ lpUser, BYTE QuestItemID)
{
WORD ItemID = this->m_ItemData[QuestItemID].ID;
// ----
for( int i = INVETORY_WEAR_SIZE; i < MAIN_INVENTORY_SIZE; i++ )
{
if( !lpUser->pInventory[i].IsItem() || lpUser->pInventory[i].m_Type != ItemID )
{
continue;
}
// ----
if( lpUser->pInventory[i].m_Level < this->m_ItemData[QuestItemID].MinLevel
|| lpUser->pInventory[i].m_Level > this->m_ItemData[QuestItemID].MaxLevel )
{
continue;
}
// ----
if( lpUser->pInventory[i].m_Durability < (float)this->m_ItemData[QuestItemID].MinDur
|| lpUser->pInventory[i].m_Durability > (float)this->m_ItemData[QuestItemID].MaxDur )
{
continue;
}
// ----
return true;
}
// ----
return false;
}
// -------------------------------------------------------------------------------
bool PKClear::DeleteItem(LPOBJ lpUser, BYTE QuestItemID)
{
WORD ItemID = this->m_ItemData[QuestItemID].ID;
// ----
for( int i = INVETORY_WEAR_SIZE; i < MAIN_INVENTORY_SIZE; i++ )
{
if( !lpUser->pInventory[i].IsItem() || lpUser->pInventory[i].m_Type != ItemID )
{
continue;
}
// ----
if( lpUser->pInventory[i].m_Level < this->m_ItemData[QuestItemID].MinLevel
|| lpUser->pInventory[i].m_Level > this->m_ItemData[QuestItemID].MaxLevel )
{
continue;
}
// ----
if( lpUser->pInventory[i].m_Durability < (float)this->m_ItemData[QuestItemID].MinDur
|| lpUser->pInventory[i].m_Durability > (float)this->m_ItemData[QuestItemID].MaxDur )
{
continue;
}
// ----
gObjInventoryDeleteItem(lpUser->m_Index, i);
GCInventoryItemDeleteSend(lpUser->m_Index, i, 1);
// ----
return true;
}
// ----
return false;
}
// -------------------------------------------------------------------------------
bool PKClear::CheckReq(LPOBJ lpUser)
{
if( lpUser->m_PK_Level <= this->m_ReqPK )
{
GCServerMsgStringSend("Your PK Level is small to PK Clear", lpUser->m_Index, 1);
return false;
}
// ----
if( lpUser->Level < this->m_ReqLevel )
{
GCServerMsgStringSend("Your Level is small to PK Clear", lpUser->m_Index, 1);
return false;
}
// ----
if( lpUser->iResetCount < this->m_ReqReset )
{
GCServerMsgStringSend("Your Reset is small to PK Clear", lpUser->m_Index, 1);
return false;
}
// ----
if( lpUser->Money < (this->m_Cost[0]*lpUser->m_PK_Level)-(this->m_Cost[0]*3) )
{
GCServerMsgStringSend("You need more Zen to PK Clear", lpUser->m_Index, 1);
return false;
}
// ----
if( lpUser->m_wcCashPoint < this->m_Cost[1] )
{
GCServerMsgStringSend("You need more WCoinC to PK Clear", lpUser->m_Index, 1);
return false;
}
// ----
if( lpUser->m_wpCashPoint < this->m_Cost[2] )
{
GCServerMsgStringSend("You need more WCoinP to PK Clear", lpUser->m_Index, 1);
return false;
}
// ----
if( lpUser->m_wgCashPoint < this->m_Cost[3] )
{
GCServerMsgStringSend("You need more GoblinPoint to PK Clear", lpUser->m_Index, 1);
return false;
}
// ----
for( int i = 0; i < this->m_ItemLoaded; i++ )
{
if( !this->SearchItem(lpUser, i) )
{
GCServerMsgStringSend("You have not required items to PK Clear", lpUser->m_Index, 1);
return false;
}
}
// ----
return true;
}
// -------------------------------------------------------------------------------
bool PKClear::Dialog(LPOBJ lpUser, LPOBJ lpNpc)
{
if( lpNpc->Class != this->m_NpcID
|| lpNpc->MapNumber != this->m_NpcMap
|| lpNpc->X != this->m_NpcX
|| lpNpc->Y != this->m_NpcY )
{
return false;
}
// ----
if( !this->CheckReq(lpUser) )
{
return false;
}
// ----
for( int i = 0; i < this->m_ItemLoaded; i++ )
{
this->DeleteItem(lpUser, i);
}
// ----
lpUser->Money -= (this->m_Cost[0]*lpUser->m_PK_Level)-(this->m_Cost[0]*3);
lpUser->m_wcCashPoint -= this->m_Cost[1];
lpUser->m_wpCashPoint -= this->m_Cost[2];
lpUser->m_wgCashPoint -= this->m_Cost[3];
// ----
//gGameShop.GDSavePoint(lpUser->m_Index);
GCMoneySend(lpUser->m_Index, lpUser->Money);
// ----
lpUser->m_PK_Count = 0;
lpUser->m_PK_Level = 3;
lpUser->m_PK_Time = 0;
// ----
if( lpUser->PartyNumber >= 0 )
{
//gParty.UpdatePKUserInfo(lpUser->PartyNumber, lpUser->m_Index, lpUser->DBNumber, lpUser->m_PK_Level);
gParty.UpdatePKPartyPanalty(lpUser->PartyNumber);
}
// ----
GCPkLevelSend(lpUser->m_Index, lpUser->m_PK_Level);
GCServerMsgStringSend("Your PK status has been reseted", lpUser->m_Index, 1);
return true;
}
// -------------------------------------------------------------------------------
1.Find:
g_ResetSystem.Load(); in CustomManager.cpp
Add this below:
g_PKClear.Load();
2. Find:
if (g_ResetSystem.ProcDialog(lpObj, lpNpc)) {
return TRUE;
}
Add this below:
if( g_PKClear.Dialog(lpObj, lpNpc) )
{
return true;
}
Remember to Include PKReset.h on both
----
Put PKClear.txt in Custom folder
Make sure u add the NPC in monstersetbase just like Resetsystem.
----
Require Zen and Items are working. Just the Cash point C, P, Goblin doesnt work yet
Good luck ^^
https://forum.ragezone.com/cache.php...%2FUWTXy8n.jpg
can someone give me a tutorial on how exactly i can put this on the source because i tried to put it but error when compiling thank you!
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
jeffzkie69
can someone give me a tutorial on how exactly i can put this on the source because i tried to put it but error when compiling thank you!
If your using visual 2010 add me through Skype : Jack Bot (Red Lamborghini) ... I'll try to help u
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
ftewegw1
so did you figure out what evry numbers supposed to mean? where did you get info about 0 to 5 or 0 to 2 for example on questprogress.txt? Did you extraact it from client or something? thx
Took quite a while to figure out the chain, but if you check the client files, you'll figure it out too. It's a chain, goes from one to another.
Quote:
Originally Posted by
walter29
Friend's something wrong in these settings because it is not working to use the quests because I try to select the quest and will not
It won't work as I've said you need to add missing chain links.
Quote:
Originally Posted by
ianvalls90
@
Wortex : quests still not working for me....i added those lines at the txt files but still getting "no quest available" message (tried with lvl 100 & lvl 398 or 399, so not a lvl req issue.)....any clues?
They shouldn't work. What I gave was the hard work (figuring out what and where must go). If you still can't figure out what needs to be done, wait. Once I'm back from work, I'll finish the rest of it.
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
jackbot
If your using visual 2010 add me through Skype : Jack Bot (Red Lamborghini) ... I'll try to help u
i already add you buddy im using VS2008.,i already make PKReset.cpp & PKReset.h im just a bit of confused on what the TUT to add PKReset.h to inlude.,what i did is i add #include "PKReset.h" on CustomManager.cpp & NPCTalk.cpp but still error on compile
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
Onne
How disables the auto create account?
in /zMultiServer1/Settings.ini set AutoRegistration = 0
-
re: [Release] zTeam Season 8 Episode 2 (Source)
will now I am starting to use a google translator.. :glare:
http://i.imgur.com/yeHme3K.jpg
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
MaskARRA
will now I am starting to use a google translator.. :glare:
Did my VS links work for your compile? :)
-
re: [Release] zTeam Season 8 Episode 2 (Source)
so... anyone fixed the ancient+harmony yet?
-
re: [Release] zTeam Season 8 Episode 2 (Source)
Quote:
Originally Posted by
fallenfate
Did my VS links work for your compile? :)
Still downloading mate :)
my connection here so slow :) Ill give you a feedback after the installation :)
Thank you mate