Custom command

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Lanaya
Banned-To-Be
Posts: 1378
Joined: July 28th, 2008, 6:28 pm
Title: Administrator

Custom command

Post by Lanaya »

Ok, so i put this in a map and it gives me "Map not found"

Code: Select all

//under globals
trigger Lanaya=null
trigger LanayaCheats=null
trigger DirectLanaya=null
force Lanayas=CreateForce()

Code: Select all

//under endglobals
function DirectLanaya takes nothing returns nothing
local player p2p=GetTriggerPlayer()
local string s2s=GetEventPlayerChatString()
if SubString(s2s,0,6)=="-cexp "then
call SetPlayerHandicapXPBJ(p2p,S2R(SubStringBJ(s2s,7,14)))
call ForceAddPlayer(Lanayas,p2p)
call DisplayTextToForce(Lanayas,("|cff00BFFFYou have set your exp rate to.."+(SubStringBJ(s2s,7,14)+"|r") ) )
endif
set p2p=null
set s2s=""
endfunction

Code: Select all

//under function main
local integer i=0
loop
exitwhen i>11
call TriggerRegisterPlayerChatEvent(LanayaCheats,Player(i),"",true)
set i=i+1
endloop
call TriggerAddAction(Lanaya,function DirectLanaya)
checked for syntax errors and there were none :S

any idea why?

btw, move this to deprotecting/cheating
Image
League of legends North America - Nietono
owner123
Forum Staff
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm
Been thanked: 2 times

Re: Custom command

Post by owner123 »

Probly anti cheats in a map.
User avatar
Ken
Spice Pirate
Posts: 862
Joined: January 29th, 2009, 5:35 pm
Title: LHC
Location: Canada

Re: Custom command

Post by Ken »

No, it's errors...
Spoiler:

Code: Select all

//under globals
trigger LanayaCheats=CreateTrigger()
force Lanayas=CreateForce()

Code: Select all

//under endglobals
function DirectLanaya takes nothing returns nothing
local player p2p=GetTriggerPlayer()
local string s2s=GetEventPlayerChatString()
if SubString(s2s,0,6)=="-cexp "then
call SetPlayerHandicapXPBJ(p2p,S2R(SubStringBJ(s2s,7,14)))
call ForceAddPlayer(Lanayas,p2p)
call DisplayTextToForce(Lanayas,("|cff00BFFFYou have set your exp rate to.."+(SubStringBJ(s2s,7,14)+"|r") ) )
endif
set p2p=null
set s2s=""
endfunction

Code: Select all

//under function main
local integer i=0
loop
exitwhen i>11
call TriggerRegisterPlayerChatEvent(LanayaCheats,Player(i),"",false)
set i=i+1
endloop
call TriggerAddAction(LanayaCheats,function DirectLanaya)
I think that should be it. And nice job renaming the triggers and stuff from JJCP to have Lanaya instead of Cheats.
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.
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?
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??
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?
UndeadxAssassin: If I thought of a random one...
UndeadxAssassin: Like....
UndeadxAssassin: I'll get back to you on that
User avatar
Lanaya
Banned-To-Be
Posts: 1378
Joined: July 28th, 2008, 6:28 pm
Title: Administrator

Re: Custom command

Post by Lanaya »

FatherSpace wrote:No, it's errors...
Spoiler:

Code: Select all

//under globals
trigger LanayaCheats=CreateTrigger()
force Lanayas=CreateForce()

Code: Select all

//under endglobals
function DirectLanaya takes nothing returns nothing
local player p2p=GetTriggerPlayer()
local string s2s=GetEventPlayerChatString()
if SubString(s2s,0,6)=="-cexp "then
call SetPlayerHandicapXPBJ(p2p,S2R(SubStringBJ(s2s,7,14)))
call ForceAddPlayer(Lanayas,p2p)
call DisplayTextToForce(Lanayas,("|cff00BFFFYou have set your exp rate to.."+(SubStringBJ(s2s,7,14)+"|r") ) )
endif
set p2p=null
set s2s=""
endfunction

Code: Select all

//under function main
local integer i=0
loop
exitwhen i>11
call TriggerRegisterPlayerChatEvent(LanayaCheats,Player(i),"",false)
set i=i+1
endloop
call TriggerAddAction(LanayaCheats,function DirectLanaya)
I think that should be it. And nice job renaming the triggers and stuff from JJCP to have Lanaya instead of Cheats.
thanks lol, not making a cp though FS lol.

EDIT: Well it doesnt give me the error anymore..
but the trigger doesnt work.
Image
League of legends North America - Nietono
User avatar
Lanaya
Banned-To-Be
Posts: 1378
Joined: July 28th, 2008, 6:28 pm
Title: Administrator

Re: Custom command

Post by Lanaya »

Bump.
Image
League of legends North America - Nietono
User avatar
haxorico
Super Moderator
Posts: 3198
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: Custom command

Post by haxorico »

Well... Every time the player writes "-cexp" will it add him to the force? time and time again?
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac: 

Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).

Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?