wc3edit.net

United Warcraft 3 map hacking!
It is currently April 19th, 2024, 5:31 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: July 22nd, 2010, 2:25 pm 
Offline
Forum Staff
User avatar

Joined: June 8th, 2008, 3:05 am
Posts: 370
Location: Australia
Code:
Globals

trigger gg_trg_xptrigger=null

Endglobals

function InitGlobals takes nothing returns nothing
local integer i = 0
set i = 0
loop
exitwhen (i > 1)
set integers038[i] = 0
set i = i + 1
endloop
endfunction
function Trig_xptrigger_Actions takes nothing returns nothing
set integers038[GetConvertedPlayerId(GetTriggerPlayer())] = S2I(SubStringBJ(GetEventPlayerChatString(), 7, 20))
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cff8B0000Hacked")
endfunction
function InitTrig_xptrigger takes nothing returns nothing
set gg_trg_xptrigger = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_xptrigger, Player(0), "-xp ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_xptrigger, Player(1), "-xp ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_xptrigger, Player(2), "-xp ", false )
call TriggerRegisterPlayerChatEvent( gg_trg_xptrigger, Player(3), "-xp ", false )
call TriggerAddAction( gg_trg_xptrigger, function Trig_xptrigger_Actions )
endfunction
function InitCustomTriggers takes nothing returns nothing
call InitTrig_xptrigger( )
endfunction

Functionmain

call InitGlobals()
call InitCustomTriggers()


I want this to active only for the cheat player. I've tried implementing it with no luck.

_________________
www.missingninja.com


Top
 Profile  
 
PostPosted: July 23rd, 2010, 12:22 pm 
Offline
Forum Spammer

Joined: March 30th, 2009, 9:02 pm
Posts: 682
um dude...
what r u trying to do...
there's alrdy a xp cheat in JJCP
plus....i think u left some stuffs out o.o....assuming u didnt...
theres no point in calling a function to call another function (call initcustomtriggers calls inttrig_xptrigger)
u didnt make the integers038 array
and....theres no actual thing that sets xp...
all this does is....call initglobals (once) to reset integers038[0] and integers038[1] to 0....which it alrdy is...since u didnt do anything....and main runs first....
then if u type -xp blah
it sets integers038[playerid of triggeringplayer] to 7 chars past o.o dont no y...should be 4?
then shows to all players "hacked"

im pretty new to this stuff...but i worked with another programming language so i think i no enuf to say that there's tons of errors....


Top
 Profile  
 
PostPosted: July 27th, 2010, 2:04 pm 
Offline
Forum Staff
User avatar

Joined: June 8th, 2008, 3:05 am
Posts: 370
Location: Australia
....sigh its obviously for a map the script works, but anyone can use it. It sets a xp on the leaderboard. eg; save and load map. I want it so it only works for the user who activated jjcp

_________________
www.missingninja.com


Top
 Profile  
 
PostPosted: July 27th, 2010, 4:51 pm 
Offline
Forum Fanatic
User avatar

Joined: October 26th, 2009, 10:22 pm
Posts: 344
Title: mib^
Well first advice change the command cause JJ's Cheatpack has -xp command so placing another -xp command will make map most likely unplayable. or something anyway.

_________________
Spoiler:
(06:05:25) UndeadxAssassin: SLANDER
(06:05:32) Bartimaeus: See you later, Undead. I miss talking to you. Message me once in a while, :<
(06:05:37) UndeadxAssassin: /quit Bartimaeus!
(06:05:40) ChatBot: Madara logs into the Chat.
(06:05:49) ChatBot: Madara has been logged out (Kicked).
(06:05:54) Bartimaeus: >>
(06:06:02) Bartimaeus: He doesn't deserve to see my good bye to you, :D
(06:06:23) UndeadxAssassin: I'm still here because I wanna see his response
(06:06:29) UndeadxAssassin: :D
(06:06:31) ChatBot: Madara logs into the Chat.
(06:06:31) Bartimaeus: Oh.
(06:06:35) Bartimaeus: lol
(06:06:43) Madara: So should i say something dramatic
(06:06:48) Madara: or what satisfies u ?
(06:06:48) Bartimaeus: Nope.
(06:06:50) Bartimaeus: Because nobody cares.
(06:06:52) Bartimaeus: :3
(06:06:57) UndeadxAssassin: What a let down
(06:06:58) UndeadxAssassin: I'm leaving.


Top
 Profile  
 
PostPosted: July 27th, 2010, 5:32 pm 
Offline
Forum Spammer

Joined: March 30th, 2009, 9:02 pm
Posts: 682
theres nothing about a ldrboard in that script o.o
unless integer038[id] is the xp number on the ldrboard
and if u want it to only work for the user with JJCP Activated, add it as part of JJCP, not as an entirely new trigger

from this code, players 1-4 (red, blue, teal, purple) can do -xp and change it o.o
and madara, this might be useful if he wants to change a units' xp and change the number on the ldrboard at the same time
but if ur doing that, i suggest adding the Trig_xptrigger_Actions under the -xp command in JJCP


Top
 Profile  
 
PostPosted: August 1st, 2010, 3:26 am 
Offline
Some Honorary Title

Joined: June 8th, 2007, 5:08 am
Posts: 1781
Title: Angry Bird
naturesfury wrote:
theres no point in calling a function to call another function (call initcustomtriggers calls inttrig_xptrigger)

hmm, sometimes it works better. Eg. I called my mo to call my dad. It's faster then I called my dad myself.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 20 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)