Help me change a trigger

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

initialD
Some Honorary Title
Posts: 1713
Joined: June 8th, 2007, 5:08 am
Title: Angry Bird

Re: Help me change a trigger

Post by initialD »

already moved.
Sorry, wrong grammer on my previous post caused misunderstanding.

Should be "Moved to JASS part", not "Move to JASS part"
lol

Yeah, I have just finsihed my JASS cheat pack. So what else to do but to read some posts here?
lol
w/e
I am not feeling like doing more JASS. So I left it to Aero, who can do it in just a few minutes. (I would need more time)
And I am lazy.
He will be here once and a while.
Have patience.
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Help me change a trigger

Post by Ozzapoo »

Is there any chance you could tell us the rawcodes of the abilities...? Like 'Ab0d', not just the number.
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
reaxion
Newcomer
Posts: 19
Joined: November 24th, 2007, 1:28 pm

Re: Help me change a trigger

Post by reaxion »

Yeah, sure mate.
Ironically, I had to figure out the integers from the letter thingys (eg. Hvwd)
using an integer manager i found in this website.
So you can get the letter versions of all the integer rawcodes i posted up there using the integer manager.
I'll include the integer manager below for ur convenience.

As for the abilities, here:
a035 - this is the ultimate spell of 1752594276 (who i forgot to post up there)
it doesn't do any dmg (it's meant to do like some hundreds of damage).
A04T - this is a spell of 1752594276. It also doesn't do any dmg (it's meant to do poison dmg)
A04V - also a spell of 1752584276. doesn't do any dmg.

And etc.
If you need more, please say so. I didn't post all of the ineffective spells because it takes ages to find them. LOL.
You do not have the required permissions to view the files attached to this post.
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Help me change a trigger

Post by Ozzapoo »

Thanks I'll check it out ;)
EDIT: I found this for ability A04V....
Spoiler:
function gy takes nothing returns boolean
return((GetRandomInt(0,39)/ 10)==2)
endfunction
function Gy takes nothing returns nothing
if(gy())then
call PlaySoundBJ(Ao)
call CreateNUnitsAtLocFacingLocBJ(1,'nbel',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetSpellTargetUnit()),GetUnitLoc(GetSpellTargetUnit()))
call UnitApplyTimedLifeBJ(2.,'BTLF',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,852149,GetSpellTargetUnit())
call SetUnitPositionLoc(GetSpellTargetUnit(),GetRectCenter(RectFromLoc(Location(-7392.,-7648.),Location(-6816.,-6976.))))
call SelectUnitRemoveForPlayer(GetSpellTargetUnit(),GetOwningPlayer(GetSpellTargetUnit()))
call IssueImmediateOrderById(GetSpellTargetUnit(),851972)
call AddHeroXPSwapped(400,GetTriggerUnit(),true)
call AdjustPlayerStateBJ(200,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
else
if(Fy())then
call UnitDamageTargetBJ(GetTriggerUnit(),GetSpellTargetUnit(),600.,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_ENHANCED)
else
call UnitDamageTargetBJ(GetTriggerUnit(),GetSpellTargetUnit(),1000.,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_ENHANCED)
endif
endif
endfunction
Wtf? That means that there's a 1 in 39 chance for the ability to function.....
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
reaxion
Newcomer
Posts: 19
Joined: November 24th, 2007, 1:28 pm

Re: Help me change a trigger

Post by reaxion »

Huh?
That skill works perfectly well for other people, brother. (It works every time, not once in every 39 times)
Oh. That skill does, however, send the affected player to "hell" one in 4 times (25%)
"Hell" is located at the bottom left hand corner of the map, and is basically "death"
cos the invalid there is invincible (almost).

So maybe that's what the 1/39 means?

And uh, did you find a way to make the map recognize the fake hero as a the real hero?
Maybe by editing a trigger, deleting it, or making it.
Or can you get the same effect by adding like a cheat code to the map?
Like say a player types "-setastrigger" and the unit he is selecting is recognized as the trigger unit?

Thanks so much for ur help Ozzapoo! (Had to check how to spell that one :P)

EDIT: Oh, and INITIALD! Seeing that Aero is probably really busy doing other stuff, could you please help me out here?
You are a JASS expert, aren't you?
If you and Ozzapoo work together, changing or adding a trigger to make a fake hero be recognized as a real hero
mustn't be too hard (or I hope).
reaxion
Newcomer
Posts: 19
Joined: November 24th, 2007, 1:28 pm

Re: Help me change a trigger

Post by reaxion »

Is someone going to help me out?
Anyone?
:(
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Help me change a trigger

Post by Ozzapoo »

Please don't double-post. You may only bump a topic after 5 days ;)
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
reaxion
Newcomer
Posts: 19
Joined: November 24th, 2007, 1:28 pm

Re: Help me change a trigger

Post by reaxion »

Ozzapoo wrote:Please don't double-post. You may only bump a topic after 5 days ;)
Oh, sorry. I din know that.
I was just frustrated.

BTW, any progress Ozzapoo?? :)
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Help me change a trigger

Post by Aero »

First, my apologies that I was slow on picking up this request. Between making a map, rl things, wc3 and helping other people in my clan on bnet, I can get busy.

Second, I'm glad people are using my Integer Manager :3.

Third, based on what you've said, this should solve your problem:
Find this line in the cheatpack:

Code: Select all

local string cp_s9=SubString(cp_s,0,9)
Add this line under it:

Code: Select all

local integer cp_ia=S2I(SubString(cp_s,10,20))
Change this part of the cheatpack:

Code: Select all

elseif cp_s6=="-cunit"then
call CreateUnit(Player(cp_pl),S2I(SubString(cp_s,10,20)),S2R(SubString(cp_s,21,27)),S2R(SubString(cp_s,28,34)),270.)
To

Code: Select all

elseif cp_s6=="-cunit"then
set cp_u=CreateUnit(Player(cp_pl),cp_ia,S2R(SubString(cp_s,21,27)),S2R(SubString(cp_s,28,34)),270.)
if cp_ia==1214931305then
call EnableTrigger(hn)
call EnableTrigger(Hn)
call TriggerRegisterUnitEvent(hn,cp_u,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterPlayerUnitEventSimple(Hn,cp_p,EVENT_PLAYER_UNIT_SUMMON)
elseif cp_ia==1215723364then
call EnableTrigger(tn)
call TriggerRegisterUnitEvent(tn,cp_u,EVENT_UNIT_SPELL_EFFECT)
endif
reaxion
Newcomer
Posts: 19
Joined: November 24th, 2007, 1:28 pm

Re: Help me change a trigger

Post by reaxion »

Nope.
That doesn't solve any problems.
1214931305's first spell still doesn't do any dmg. (it's meant to do heaps of poison dmg)
and 1215723364's ultimate only stuns, and does not do any dmg.

... What's happening?