KOEM v2 SDK question

05/01/2012 18:12 tabs123#1
hi,
does anyone know how to create or make a duel in game by using koem sdk ?

ive tried:
Code:
		Player *player= playerBase->Find(576);
		player ->SetDuelID(999);
		player ->SetDuelTimer(5000);
		player ->SetDuelAdversary(577);

		player = playerBase->Find(577);
		player ->SetDuelID(999);
		player ->SetDuelTimer(5000);
		player ->SetDuelAdversary(576);
but it dont work...
05/02/2012 19:24 tabs123#2
mmh i thought hackers are smarter than i xD
no one knows the answer ?
05/02/2012 19:40 Roronoa Z.#3
Player *player= playerBase->Find(576);
This Finds player by it's ingame Id i guess...576 is just wrong.
player ->SetDuelID(999); has to beunique
this player ->SetDuelAdversary(577);
first you have to find playerid 577...

any you also have to send the info that you're in a duel to the client..
05/02/2012 19:55 tabs123#4
anyone knows what packet i have to send to set a player in assa mode and back ? this function is i think a bit easier to handle...

or... little question .... when i create a tempitem set this tempitem to assa mask and set in the itemhandleobserver that the player have to put it on may solve the problem or ?
05/02/2012 20:04 Roronoa Z.#5
buff 104 is assa
gstate 256
05/02/2012 20:07 tabs123#6
ty

gstate xx ?? back to normal ?
or is there any list of the gstates ?
05/04/2012 08:08 tabs123#7
is there no list of the gstates ? i looked in the engine source but there stand duel state 80 but when i use this i start fishing ^^
i just need duel / pvp / castlewar gstates...
i hope anyone have it
05/04/2012 12:51 pamz12#8
just got these atm

Code:
-------------------------------buffs-----------------------------

1 - Bonus to Absorption and Strength
3 - OTP Increased by %
4 - Revival Sequela
5 - Physical Damage Increase
6 - Magic Damage Increase
7 - Stun
8 - Frozen
9 - OTP Increase
10 - Max Physical
11 - Poison
12 - Speed
15 - Silence
16 - Bless
17 - Providence
18 - Food
19 - Water
20 - Change of Attacking SPeed
21 - Change of OTP
22 - Additional Damage
23 - Rage
24 - Phoenix
25 - Golden Bird
26 - Hypnotism
27 - Defense Boost
28 - Call of Defense
29 - Pain
30 - EXP Stone
31 - Wealth Stone
32 - Fishing Stone
33 - Snow G1
34 - Snow G2
35 - Snow G3
36 - Refining Weapon
37 - Defense Improvement
38 - Call of Recovery
39 - Mysterious Arrow
40 - Continuous Damage Spiral
41 - Flag Buff 1
42 - Flag Buff 2
43 - Flag Buff 3
44 - Flag Buff 4
45 - Flag Buff 5
46 - Blessing Of Strength
47 - Blessing Of Health
48 - Blessing Of Agility
49 - Blessing Of Intelligence
50 - Blessing Of Critical Hit
51 - Power Improvement
52 - Damage Reduction Scroll
53 - Explosive Blow 3% Scroll
54 - Explosive Blow 5% Scroll
55 - Evasion/Accuracy Scroll
56 - Evasion/Accuracy Scroll
58 - Absorb Perfect Defense
59 - HP Absorption Scroll
60 - KalShop Potions 1
61 - KalShop Potions 2
62 - KalShop Potions 3
63 - KalShop Potions 4
64 - KalShop Potions 5
65 - Berserk
70 - Call of Lightning Defense
71 - Call of Ice Defense
72 - Call of Fire Defense
73 - Call of OTP
74 - Call of Physical Attack
75 - Elastic Shield
76 - Lightning Resistance
77 - Ice Resistance
78 - Fire Resistance
79 - Curse Resistance
80 - Non-Elemental Resistance
81 - Powerful Arrow of Silence
82 - Emergency Escape
96 - All Resistances
99 - Lucky Key
100 - Piece of Lucky Stone
101 - Lucky Stone
102 - Bird
104 - Assassin
105 - Hydrolic Acid
106 - Korean Food Event 1
107 - Korean Food Event 2
108 - Korean Food Event 3
109 - Korean Food Event 4
110 - Korean Food Event 5
111 - Artillery Flag
112 - Unknown
113 - Unknown
114 - Unknown
117 - Defense Increment

these are gstates?

knee = 0
dead = 1
rest = 2
revival = 3
onstall = 4
fish = 5
cooking = 6
onpvp = 7
onpk = 8
ontransform = 9
war ceva = 10
pk state open = 11
on portal = 12
invincible = 13
preascension = 14
openbox = 15
ascension = 16
lord declare = 17
pet falcon = 18
pet owl = 19
pet crow = 20
siege gun control = 21
siege gun die = 22
mix stone shadow = 23
mix stone holy = 24
mix stone flame = 25
mix stone ice = 26
mix stone lightning = 27
mix stone poison = 28
mix stone paralyze = 29
mix stone str = 30
mix stone skill = 31
mix stone mistery = 32
mix stone blood = 33
mix lvl 2 = 34
05/04/2012 15:18 tabs123#9
mmh ive got this list too but if i set gstate to 7 nothing happends,if i set 70 i start fishing if i set 50 i start fishing if i set 20 i start fishing too ^^

mmh or does i have it to set like binarys 00001011 for 11 and so on ?
05/04/2012 16:44 pamz12#10
except striker(roronoa) no1 can help you with this
05/13/2012 19:31 tabs123#11
Quote:
Originally Posted by Roronoa Z. View Post
Player *player= playerBase->Find(576);
This Finds player by it's ingame Id i guess...576 is just wrong.
player ->SetDuelID(999); has to beunique
this player ->SetDuelAdversary(577);
first you have to find playerid 577...

any you also have to send the info that you're in a duel to the client..
mmh i think its like this:

Code:
Player *player= playerBase->Find(576);
find first player (576)
Code:
player ->SetDuelID(999);
set duelid from player (576) to 999
Code:
player ->SetDuelTimer(5000);
set dueltimer from player (576) to 5000 (just for test)
Code:
player ->SetDuelAdversary(577);
set duel enemy to (577) the second player id to know who is the enemy
Code:
player ->SetGState(2);
get the first player in duel mode...

and the same for the second player...

correct me if im wrong
05/13/2012 19:43 pamz12#12
try it and you'll see
05/13/2012 20:54 tabs123#13
it dont work otherwise i havent write it xD