Setting Kills?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
illidan1000
Junior Member
Posts: 25
Joined: May 3rd, 2007, 5:44 pm

Setting Kills?

Post by illidan1000 »

Is there a way to set kills in a leaderboard?
Illidan1000
User avatar
Senethior459
Forum Staff
Posts: 2618
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Setting Kills?

Post by Senethior459 »

Get more kills?
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
User avatar
illidan1000
Junior Member
Posts: 25
Joined: May 3rd, 2007, 5:44 pm

Re: Setting Kills?

Post by illidan1000 »

I mean't like editing the kills from 0-100
Illidan1000
User avatar
Senethior459
Forum Staff
Posts: 2618
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Setting Kills?

Post by Senethior459 »

In what map?
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
User avatar
illidan1000
Junior Member
Posts: 25
Joined: May 3rd, 2007, 5:44 pm

Re: Setting Kills?

Post by illidan1000 »

Well, I want to change the score boards on some maps like archer wars, warlock, archer stronghold etc.
Illidan1000
User avatar
Senethior459
Forum Staff
Posts: 2618
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Setting Kills?

Post by Senethior459 »

Open the war3map.j in Jasscraft, and search for whatever it displays above the Kills column (probably Kills). When you find it, it should have a variable near it. Insert JJ's cheatpack, and find function Cheatz. Add the red part in exactly where it is, and change X to whatever variable is displayed on the leaderboard for kills.
Spoiler:
function Cheatz takes player p2p,string s2s returns nothing
local sound Music=CreateSound("cool.mp3",false,false,false,10,10,"DefaultEAXON")
local integer Sethp=S2I(SubString(s2s,7,12))/50
local integer i2i=S2I(SubString(s2s,5,20))
local integer z2z=S2I(SubString(s2s,4,19))
local integer jj2j=S2I(SubString(s2s,6,9))
local integer c2c=S2I(SubString(s2s,9,11))
local real j2j=S2R(SubString(s2s,6,20))
local string id2d=I2S(GetPlayerId(p2p))
local group g2g=CreateGroup()
local group h2g=CreateGroup()
local integer Nowhp=0
local integer temp=0
local integer JJ2J=0
local unit u2u
local unit h2u
if SubString(s2s,0,6)=="-gold "then
call SetPlayerState(p2p,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(p2p,PLAYER_STATE_RESOURCE_GOLD)+S2I(SubString(s2s,6,13)))
elseif SubString(s2s,0,10)=="-setkills "then
set X=(S2I(SubString(s2s,10,15)))

elseif SubString(s2s,0,7)=="-lumber"then
call SetPlayerState(p2p,PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(p2p,PLAYER_STATE_RESOURCE_LUMBER)+S2I(SubString(s2s,8,15))
That should work. If it doesn't, post back, and tell us what map you're trying to do this to. It's hard, without the map.
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
User avatar
illidan1000
Junior Member
Posts: 25
Joined: May 3rd, 2007, 5:44 pm

Re: Setting Kills?

Post by illidan1000 »

Okay, so I followed all your instruction and now I have trouble starting the map. This is one of the maps I'm working on http://epicwar.com/maps/82163/.
Illidan1000