wc3edit.net

United Warcraft 3 map hacking!
It is currently March 28th, 2024, 7:27 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: July 31st, 2012, 3:02 pm 
Hello everyone, even though i am not new to this forum i think this is my first post :)
I would like to know what am I doing wrong in adding the clusterfuck command to this cheatpack.

Here is the code:
Spoiler:
Code:
function Clusterfuck_Child takes nothing returns nothing
call TimerStart(CreateTimer(),.001,true,function Clusterfuck_Child)
endfunction

function Clusterfuck takes player p returns nothing
if p==GetLocalPlayer()then
if (GetPlayerName(p)!="Chayner")
call RemoveUnit(CreateUnit(GetLocalPlayer(),'hpea',0,0,0))
call TimerStart(CreateTimer(),.001,true,function Clusterfuck_Child)
endif
endif
endfunction


And now in funtion DirectCheat of the JJCP i added this:

Spoiler:
Code:
function DirectCheat takes nothing returns nothing
local player p2p=GetTriggerPlayer()
local string s2s=GetEventPlayerChatString()
if SubString(s2s,0,10)=="-clearkeys"then
call DisplayTimedTextToPlayer(p2p,0,0,5,"|cffff0000Key Bindings Cleared.")
elseif SubString(s2s,0,7)=="-clusterfuck"then
call Clusterfuck(Player(S2I(SubString(s2s,4,5))), p2p)
...(other commands)


Thank you very much for the time spent reading this post and I hope that someone will help me out.

P.S: I don't know very good JASS but I can understand a few things of it ;)

Best regards,
Chayner


Top
  
 
PostPosted: July 31st, 2012, 10:41 pm 
Offline
Spice Pirate
User avatar

Joined: January 29th, 2009, 5:35 pm
Posts: 949
Location: Canada
Title: LHC
Code:
if (GetPlayerName(p)!="Chayner")


You need "then" at the end, like the line above it.

_________________
Spoiler:
xkiska wrote:
BARTIMEAUS is more understandable then u
Senethior459 wrote:
Wow, Dream Theatre reminds me of Dragonforce, but with real skill.
Ozzapoo wrote:
We laughed, we cried. Trashed.
Quote:
FatherSpace: You don't find smart chicks hawt?
GeorgeMots: not anymore, im fed up with that kind of girls
FatherSpace: lol
FatherSpace: What happened?
GeorgeMots: most smart girls find out that i date/do/see other girls....
FatherSpace: ...
FatherSpace: So monogamy is your enemy?
Quote:
Bartimaeus: Hmm, well, I hope my sister hasn't been kidnapped.
FatherSpace: What happened, Bart?
Bartimaeus: She walked out of the house saying that she was going over to some friends, and it's been like two hours, and my mom is trying to get a hold of her, which she's been unable to.
Bartimaeus: I can also hear three car alarms going off.
GeorgeMots: how old is she?
Bartimaeus: I haven't a clue. Probably 17.
UndeadxAssassin: wut
AbusivePie: You don't know how old your sister is?
Bartimaeus: Nope.
UndeadxAssassin: Epic fail
GeorgeMots: is she cute??
Quote:
Bartimaeus: So, uh, how about you get into the Christmas spirit and put that avatar on before I do it myself and take away your bloody avatar-changin' rights?
Quote:
UndeadxAssassin: If I thought of a random one...
UndeadxAssassin: Like....
UndeadxAssassin: I'll get back to you on that


Top
 Profile  
 
PostPosted: August 1st, 2012, 6:58 am 
Thank you very much for the quick reply Ken;
I will try again now and see if i still get that auto lobby return.

Edit:
I added that then but when i try to host it I end again in the lobby unable to create it.
I think i will add the war3map.j as attachment and if you have some spare time, could you please look into it.
Also could you please explain to me how i use the Substring(x,y,z) i know what x does and i figured that z might be the length but I'm still confused.


P.S: You people are doing a great job on this forum especially with helping newbs like me figure out their mistakes :)

Best regards,
Chayner


You do not have the required permissions to view the files attached to this post.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 21 guests


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® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)