Sending Packets

10/20/2010 12:18 Smurfin#61
what mistakes ? I've tried some that I need from the sendpacket collections and they're working just fine.
10/20/2010 12:32 Interest07#62
Ohh the buying packet was wrong lol, but i edited it now and think there was one other but I forget :P
10/20/2010 12:46 Smurfin#63
haven't tried the buying packet coz I hardly buy anything from npc lol, only sell sell sell the garbage dropped by mobs, twice or thrice daily :D

and the packet for reputation thing I asked earlier also works like a charm, buy lots of them and wait until it finished exchanging for reps, I ever did that manually for 2000 pieces in one day :p
10/20/2010 14:41 Interest07#64
oh my god, 2000, that's crazy haha :D

So many of them though, very nice :o
10/20/2010 18:47 Smurfin#65
yea coz at that time I hadn't decided which char I'd like to go r8, now I used them all for my archer, still a long way though.

btw about your moveto script earlier, if I add height to a destination like x,y,h, why can't I use normal fly using the ingame hotkey, is there any way or value I should write back so it can be normal again without relog ? coz if the char I set to move from coordinate to coordinate died, I'd like to use the revive packet so it can continue to destination, but the flight mostly got stuck so have to relog it manually, can't completely afk.
10/20/2010 20:29 Interest07#66
Yeah... I noticed that too today hehehe, it works fine if I send a packet to start flying first though. I haven't looked into what to change yet, for the time being just start flying first. Unless that also doesn't work for you?
10/20/2010 20:40 PW-Prophets#67
Quote:
Originally Posted by Smurfin View Post
yea coz at that time I hadn't decided which char I'd like to go r8, now I used them all for my archer, still a long way though.

btw about your moveto script earlier, if I add height to a destination like x,y,h, why can't I use normal fly using the ingame hotkey, is there any way or value I should write back so it can be normal again without relog ? coz if the char I set to move from coordinate to coordinate died, I'd like to use the revive packet so it can continue to destination, but the flight mostly got stuck so have to relog it manually, can't completely afk.

I have been working on this all day. The conclution I came to was while doing
Send("{SPACE DOWN}") you must put atleast a 1 second sleep before you
Send("{SPACE UP}"). That way you are not still moveing up when you send the Send("{SPACE UP}").

Hope this helps
Prophet2
10/20/2010 20:53 Smurfin#68
I always fly first before executing the script though, but using the ingame hotkey to activate wings. Where is the fly packet you referring to, can't find it in the first post.

I only notice sometimes my char can start flying directly after clicking rez to town button, but some other times it just walk, I'll observe next time I start my script and if died later. Lol I usually just hurry to start my script so I can get as much stuffs to sell and don't pay attention to any details :D

@PW-Prophets, thanks for the tips, but if using space it has to be the active window, while if using the fly with height script it's done automaticly, it'll fly up or down based on the specified height without any key send involved.
10/20/2010 21:45 Interest07#69
Quote:
Originally Posted by Smurfin View Post
I always fly first before executing the script though, but using the ingame hotkey to activate wings. Where is the fly packet you referring to, can't find it in the first post.

I only notice sometimes my char can start flying directly after clicking rez to town button, but some other times it just walk, I'll observe next time I start my script and if died later. Lol I usually just hurry to start my script so I can get as much stuffs to sell and don't pay attention to any details :D

@PW-Prophets, thanks for the tips, but if using space it has to be the active window, while if using the fly with height script it's done automaticly, it'll fly up or down based on the specified height without any key send involved.
useItem with $equip = 1, $index = 0xC, flyMountId is well whatever yor flymount id is.
makes you start/stop flying.

I never noticed this issue before trying the moveTo function in PWI, so might just have been the case that it works differently in PW MS :P
10/21/2010 06:35 Smurfin#70
oh ok , about the flyMountId, I can get it from pwdatabase, right ?
10/21/2010 07:31 Interest07#71
Quote:
Originally Posted by Smurfin View Post
oh ok , about the flyMountId, I can get it from pwdatabase, right ?
Yeah, you can, or if you want it to work for any type of fly mount, you can get it from the player struct, around there it looks as follows, that should help you find it (or just use my offset finder that comes with the WQ bot)
Code:
            public int lvl;
            public int cultivation;
            public int currentHP;
            public int currentMP;
            public int currentExp;
            public int currentSP;
            public int availableStats;
            public int currentChi;
            public int attackLevel;
            public int defenseLevel;
            public int criticalBonus;
            public int uk1;
            public int uk2;
            public int detectionLevel;
            public int currentVit;
            public int currentMag;
            public int currentStr;
            public int currentDex;
            public int maxHP;
            public int maxMP;
            public int HPregenRate;
            public int MPregenRate;
            public float walkSpeed;
            public float runSpeed;
            public float swimSpeed;
            public float flySpeed;
            public int accuracy;
            public int minPhysAtk;
            public int maxPhysAtk;
            public int attackSpeed;
            public float range;
            public int minMetalDmg;
            public int maxMetalDmg;
            public int minWoodDmg;
            public int maxWoodDmg;
            public int minWaterDmg;
            public int maxWaterDmg;
            public int minFireDmg;
            public int maxFireDmg;
            public int minEarthDmg;
            public int maxEarthDmg;
            public int minMagAtk;
            public int maxMagAtk;
            public int metalDefense;
            public int woodDefense;
            public int waterDefense;
            public int fireDefense;
            public int earthDefense;
            public int physicalDefense;
            public int evasion;
            public int maxChi;
            public int gold;
            public int maxGold;
            public int weaponId;
            public int headWearId;
            public int necklaceId;
            public int robeId;
            public int armourId;
            public int beltId;
            public int pantsId;
            public int shoesId;
            public int wristerId;
            public int leftRingId;
            public int rightRingId;
            public int arrowId;
            public int flyMountId;          <---------------- flyMountId
            public int fashionTopId;
            public int fashionPantsId;
            public int fashionShoesId;
            public int fashionGlovesId;
            public int attackHierogramId;
            public int heavenBookId;
            public int speakerId;
            public int HPhieroId;
            public int MPhieroId;
            public int dungeonSackId;
            public int genieId;
10/21/2010 08:42 Smurfin#72
thanks again for the info, now I can find my wing ID :D

I got pet mount ID offset and it can be used to do double jump while on pet ride. Is there any trick we can do with flight ?
10/21/2010 10:53 Interest07#73
Not that I know of, but I"m not really interested in anything 'unnatural' :p

I prefer making things look realistic if possible hehe.
10/21/2010 11:54 Smurfin#74
aw that's too bad, if I could find stuffs like you do, I'd find as many 'unnatural' things to use lol :D
10/23/2010 12:56 BuBucekTop#75
Interest07, It's not so easy with skill-casting packet. You wrote:
Code:
Func useSkill($skillId, $targetId, $pid)
	;uses the specified skill on the target. Pass your own
	;Id if you wish to use buffs. When teleporting targetId
	;is the targeted city.
	local $packet, $packetSize

	$packet = '2900'
	$packet &= _hex($skillId)
	$packet &= '0001'
	$packet &= _hex($targetId)
	
	$packetSize = 12
	
	sendPacket($packet, $packetSize, $pid)
EndFunc
I've tried it using a priest on PW-RU and found that I have to write $packet &= '0701' instead of $packet &= '0001'.

Weird, yeah ? Don't you know what [0001 / 0701] in this means ?