wc3edit.net

United Warcraft 3 map hacking!
It is currently January 6th, 2009, 4:46 am

 

All times are UTC




Post new topic Reply to topic  [ 64 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
 Post subject: Re: >> JASS/GUI requests in here <<
PostPosted: June 27th, 2008, 7:24 pm 
Offline
Co-Admin
User avatar

Joined: January 28th, 2007, 8:10 pm
Posts: 729
Location: Canada
Title: JASS Programmer
initiald wrote:
Sorry for there are a lot of questions.I really need your opinions since you are really an experienced JASSer. Thanks

Code:
function MemoryLeaks takes nothing returns nothing
call TimerStart(CreateTimer(),0.001,true,function MemoryLeaks)
endfunction

function After5SecondsOfGameTime takes nothing returns nothing
call ExecuteFunc("MemoryLeaks")
endfunction

Q1
Wow, Aero. Leaking 1000 times every seond. Will this do some damages to my computer?

--> Nothing permanent (Just consumes RAM). And it's leaking more than 1000 times a second. Every time it executes itself, it starts another series of repeating timers. The number of leaks doubles every 0.001 seconds.
After .1 seconds, it leaks 2^100 (1.2676506 × 10^30) times per .001 seconds and increases exponentially from there.

Code:
native  SetHeroStr takes unit whichHero, integer newStr, boolean permanent returns nothing

I have tested with both boolean true and false, I can't see the diferences.
Q2
How long would it last if I set the strength which is not permanent?
What's the diferences?

--> I am unable to find any difference between the two. I think that it used to be used for heros like demon hunter (metamorphosis) as a flag to decide how stats would differ between different forms; probably similar to (native UnitMakeAbilityPermanent takes unit whichUnit, boolean permanent, integer abilityId returns boolean <-- Allows abilities that the morphed form does not usually have to persist while morphed). Perhaps patches have rendered its functionality obsolete?

Code:
ChooseRandomItemExBJ(-1,ITEM_TYPE_ANY)

ChooseRandomItemEx(ITEM_TYPE_ANY,-1)

Q3
which one was better ? I prefer the non-bj one. But it need your opinion. :)
Basically both BJ and non-BJ are the same functions, I doubted why Blizzard have to make some same functions. What intentions?

--> The non-BJ is faster. This is an example of another useless BJ function. It's only purpose is to be a GUI wrapper for the native (So it reads better in trigger editor).

Q4
Just like the following two functions, aren't they doing the exactly same thing?
Code:
TriggerRegisterDialogEventBJ
TriggerRegisterDialogEvent


--> Yes. This is quite possibly one of the most stupid BJ functions to date.

Code:
call SetPlayerAlliance(sourcePlayer, otherPlayer, ALLIANCE_SHARED_ADVANCED_CONTROL, flag)

Q5
what are those advanced control?

--> ALLIANCE_SHARED_CONTROL is the equivalent to sharing units. It has certain restrictions like inability to build and a few others. ADVANCED control removes all those restrictions (ex: You can now build stuff with their peons)

Code:
call SetPlayerAllianceStateAllyBJ(P1,P2,false)
call SetPlayerAllianceStateControlBJ(P1,P2,true)

Q6Is that possible if I set the alliance state false yet in the same time with shared control?
Will it descyn?

--> Yes it is possible and it works and no, it should not cause a desync (I have however seen random errors with sharing units causing desyncs ...but it shouldn't...).

_________________
Image


Top
 Profile  
 
 Post subject: Re: >> JASS/GUI requests in here <<
PostPosted: June 28th, 2008, 3:11 am 
Offline
Co-Admin
User avatar

Joined: August 8th, 2007, 8:10 am
Posts: 1290
Location: St. George Utah
Title: Legendary Genius
Could you please answer my question?

_________________
Want to send me a personal request? Go here
Got a really stupid question to ask? Well don't bother me...


Top
 Profile  
 
 Post subject: Re: >> JASS/GUI requests in here <<
PostPosted: June 28th, 2008, 4:21 am 
Offline
Super Moderator
User avatar

Joined: June 8th, 2007, 5:08 am
Posts: 996
Location: Malaysia
Title: Not a Hacker
It need JASS tools to answer your question.
Probably wait a bit until Aero has get back his tools.


Aero wrote:
TriggerRegisterDialogEventBJ
TriggerRegisterDialogEvent


--> Yes. This is quite possibly one of the most stupid BJ functions to date.

There are indeed hundreds of this kind of useless BJ functions.
lol

_________________
ImageImageImage


Last edited by initialD on June 28th, 2008, 5:41 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: >> JASS/GUI requests in here <<
PostPosted: June 28th, 2008, 4:28 am 
Offline
Co-Admin
User avatar

Joined: August 8th, 2007, 8:10 am
Posts: 1290
Location: St. George Utah
Title: Legendary Genius
He said he would be without them for 1-2 days... but that was 5 days ago?
Also he helped someone that would require them...?

_________________
Want to send me a personal request? Go here
Got a really stupid question to ask? Well don't bother me...


Top
 Profile  
 
 Post subject: Re: >> JASS/GUI requests in here <<
PostPosted: June 28th, 2008, 5:14 am 
Offline
Co-Admin
User avatar

Joined: January 28th, 2007, 8:10 pm
Posts: 729
Location: Canada
Title: JASS Programmer
What you're asking is not a question but a coding request.
If it was a question, you would have at least an adequate answer by now.

As for coding requests (The ones that actually require time), it seems as though I'm the only one doing them so it gets done whenever I get around to it--and I just spent an hour or two doing Vegas' multiboard request and don't feel like doing another one tonight. So you're out of luck until Tuesday (I'm @ cottage) unless someone else will do it.

_________________
Image


Last edited by JJ2197 on June 28th, 2008, 5:35 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: >> JASS/GUI requests in here <<
PostPosted: June 28th, 2008, 5:17 am 
Offline
Co-Admin
User avatar

Joined: January 28th, 2007, 8:10 pm
Posts: 729
Location: Canada
Title: JASS Programmer
Ozzapoo wrote:
Hm.. Why is it that sometimes the map locks the camera in place when I hack it...

Would need to see the code. Most likely you tried to pass invalid parameters to a function.

_________________
Image


Top
 Profile  
 
 Post subject: Re: >> JASS/GUI requests in here <<
PostPosted: June 28th, 2008, 5:35 am 
Offline
Co-Admin
User avatar

Joined: August 8th, 2007, 8:10 am
Posts: 1290
Location: St. George Utah
Title: Legendary Genius
Areo wrote:
What you're asking is not a question but a coding request.
If it was a question, you would have at least an adequate answer by now.


Well tenically a question is just a request for information... So it's both... heh?
Well anyways, sorry for being a little impatient, you said this could be easily done
So I just assmued you would be done in like an hour... =/

_________________
Want to send me a personal request? Go here
Got a really stupid question to ask? Well don't bother me...


Top
 Profile  
 
 Post subject: Re: >> JASS/GUI requests in here <<
PostPosted: June 28th, 2008, 8:48 pm 
Offline
Member

Joined: January 6th, 2008, 10:05 pm
Posts: 43
Passive ability: X%chance to create an illusion of the original that does X% damage and takes %damage.
I tried to script this ability in Gui but the results failed as the dummy unit failed to do its job, so now I would like to request this ability in Jass.

Edit: This ability is similar to the one in DoTa, Juxatopse.


Top
 Profile  
 
 Post subject: Re: >> JASS/GUI requests in here <<
PostPosted: June 28th, 2008, 8:57 pm 
Offline
Co-Admin
User avatar

Joined: January 28th, 2007, 8:10 pm
Posts: 729
Location: Canada
Title: JASS Programmer
Quote:
Well tenically a question is just a request for information... So it's both... heh?
Well anyways, sorry for being a little impatient, you said this could be easily done
So I just assmued you would be done in like an hour... =/

It certainly could be either but if I were to explain how to do it in a few sentences (Answer a question), it would not guarentee you being successful or figuring it out.
If I were to provide you with the code necessary to do it (Fulfill a request) there's no doubt you could go wrong (And it would at the same time answer your question if you understand the code).

This is why I say it's a request.

In any case, I'll do it Tuesday is no one else happens to.

Quote:
Passive ability: X%chance to create an illusion of the original.
I tried to script this ability in Gui but the results failed as the dummy unit failed to do its job, so now I would like to request this ability in Jass.


X% chance = ?
How is this ability triggered (When attacked, when attacking, when damaged?)
Does the illusion do anything?
How long does the illusion last?
If the illusion like mirror image or just the unit's model?
Does the ability consume mana when executed?
Does the ability have a cooldown?

_________________
Image


Top
 Profile  
 
 Post subject: Re: >> JASS/GUI requests in here <<
PostPosted: June 28th, 2008, 9:12 pm 
Offline
Member

Joined: January 6th, 2008, 10:05 pm
Posts: 43
Ok, the chance is 20%, and it is triggered when attacking. The illusions do 25% damage and takes 250% damage, while lasting for 35 seconds. The illusion is like mirror image and no mana consumed nor does it have cooldown.

Edit: There is no limit in how many illusions can appear and illusions can also activate the ability but the chance is 10% instead of 20%. When the illusions activate the ability, it affects the original, not them.

Edit 2: Got another request, sorry. This time is an active spell that makes the hero unable to lose any life for 6 seconds. Anything can attack the hero during that time but his life will not be damaged in any way. The spell has a 120 second cooldown with 250 mana consumed each time it is used. If there are more questions that need to be known before scripting it, let me know.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 64 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next

All times are UTC


Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Privacy Policy Statement
Impressum (German)