wc3edit.net

United Warcraft 3 map hacking!
It is currently April 6th, 2020, 2:50 am

All times are UTC




Post new topic Reply to topic  [ 56 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6
Author Message
PostPosted: January 29th, 2020, 7:28 pm 
Offline
Member

Joined: August 5th, 2009, 1:39 am
Posts: 89
ok thanks you. sorry another question. How do you insert this? Do I just put it into the maps or do i have to go into wa3map.j and put it under some kind of global? I know there was a tutorial but that was for like 3 different texts and putting it under main function and etc. But where do I insert your code?


Top
 Profile  
 
PostPosted: January 29th, 2020, 7:59 pm 
Offline
Also Not an Admin, but closer than devoltz
User avatar

Joined: February 14th, 2018, 5:35 am
Posts: 1264
Title: Just Another S.Mod
You will see there's a // which specifics where you should insert the code. The way to insert mine isn't different from the other cheatpacks.


Top
 Profile  
 
PostPosted: January 29th, 2020, 8:40 pm 
Offline
Member

Joined: August 5th, 2009, 1:39 am
Posts: 89
Ohh omg i didnt even notice that sorry x.x


Top
 Profile  
 
PostPosted: March 31st, 2020, 10:11 pm 
Offline
Junior Member
User avatar

Joined: June 25th, 2017, 6:32 pm
Posts: 38
Location: כדור הארץ
Title: {◕ ◡ ◕}
devoltz wrote:
Hoyl
Nuza with free time is scary


This is one of the best cheat packs that I have ever seen.
:thumbsup:

imba nuzamacux
The photos made to introduce cheat pack are great.
8)

You can also add key binds to the Cheat pack, to make it the most complete package.

Thank you for making this masterpiece


Top
 Profile  
 
PostPosted: April 4th, 2020, 7:41 pm 
Offline
Junior Member

Joined: October 10th, 2019, 6:32 am
Posts: 27
hello i want to ask something. how to add value with a lot?
Before
Code:
if Command == "token" then
   if Value != 0 and Payload != "" then
      call DisplayTimedTextToPlayer( Player( PID ), 0, 0, 10, "Object Has Spawned" )
      call CreateItem( 'I0F1', GetUnitX( LoadUnit( "nzUnitSys" ) ), GetUnitY( LoadUnit( "nzUnitSys" ) ) )
      call SaveUnit( "nzUnitSys", CreateUnit( Player( PID ), 'I0F1', GetUnitX( LoadUnit( "nzUnitSys" ) ), GetUnitY( LoadUnit( "nzUnitSys" ) ), 270 ) )
   endif

After
Code:
   if Value != 0 and Payload != "" then
      call DisplayTimedTextToPlayer( Player( PID ), 0, 0, 10, "Object Has Spawned" )
      call CreateItem( 'I0F1' 'I0F2' 'I0F3', GetUnitX( LoadUnit( "nzUnitSys" ) ), GetUnitY( LoadUnit( "nzUnitSys" ) ) )
      call SaveUnit( "nzUnitSys", CreateUnit( Player( PID ),'I0F1' 'I0F2' 'I0F3', GetUnitX( LoadUnit( "nzUnitSys" ) ), GetUnitY( LoadUnit( "nzUnitSys" ) ), 270 ) )
   endif


I changed 'Value' to 'itemid', if possible please give an example like the script above. thank you for NZCP.


Top
 Profile  
 
PostPosted: April 4th, 2020, 10:10 pm 
Offline
Forum Staff

Joined: February 3rd, 2009, 11:28 pm
Posts: 2232
Location: Wisconsin
I like the use of hashtable and the minimal globals/function main section here. Especially having no locals in the main section.

Some minor code feedback

Code:
if Command == "str" or Command == "agi" or Command == "int" then
   if Command == "str" then
      call SetHeroStr( LoadUnit( "nzUnitSys" ), Value, true )
   elseif Command == "agi" then
      call SetHeroAgi( LoadUnit( "nzUnitSys" ), Value, true )
   elseif Command == "int" then
      call SetHeroInt( LoadUnit( "nzUnitSys" ), Value, true )
   endif
endif

The top-level condition here seems pointless to me, there's no common code between the str/agi/int sections. Also could probably be simplified to SetHeroStat if desired

Code:
set pcolor[0]="|cFFff0303"
set pcolor[1]="|cFF0041ff"
set pcolor[2]="|cFF1ce6b9"
set pcolor[3]="|cFF540081"
set pcolor[4]="|cFFfffc00"
set pcolor[5]="|cFFfe8a0e"
set pcolor[6]="|cFF20c000"
set pcolor[7]="|cFFde5bb0"
set pcolor[8]="|cFF959697"
set pcolor[9]="|cFF7ebff1"
set pcolor[10]="|cFF106246"
set pcolor[11]="|cFF4e2a04"
   if (bj_MAX_PLAYER_SLOTS > 12) then
      set pcolor[12]="|cFF9b0000"
      set pcolor[13]="|cFF0000c3"
      set pcolor[14]="|cFF00eaff"
      set pcolor[15]="|cFFbe00fe"
      set pcolor[16]="|cFFebcd87"
      set pcolor[17]="|cFFf8a48b"
      set pcolor[18]="|cFFdcb9eb"
      set pcolor[19]="|cFFbfff80"
      set pcolor[20]="|cFF282828"
      set pcolor[21]="|cFFebf0ff"
      set pcolor[22]="|cFF00781e"
      set pcolor[23]="|cFFa46f33"
   endif

It seems like this could be set up in the hashtable in order to not remake this array every time this method is used

Code:
pcolor[ GetHandleId( GetPlayerColor( p ) ) ]

This is a cool way of ensuring the cheatpack works properly even when the players colors are changed

Code:
function New_Item_ID takes string Item_ID returns string
local integer i = 0
local integer Pos_1 = 0
local integer Pos_2 = 0
local integer Pos_3 = 0
local integer Pos_4 = 0
...

This method can probably be shorter if there's a local integer array pos[0]-pos[3] instead


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

All times are UTC


Who is online

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