Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » Need help with StrategicEventHandler.lua
Need help with StrategicEventHandler.lua[message #363450] Fri, 02 July 2021 19:15 Go to previous message
No-Nothing is currently offline No-Nothing

 
Messages:81
Registered:March 2013
Hello! I need help for my struggle with lua!
I want to understand is it possible for non-coder to at least insert any NPC/RPC on any sector at wish with some simplest script.
I hoped Flugente's Max Payne method would be it, but I failed to exploit it for Eskimo (<uiIndex>65</uiIndex>)
I thought this code were enough
Profil = 
{                   
    FATHER = 100,
    HAMOUS = 63,
    PROF_ICECREAM = 162,
ESK = 65,
    RAT   = 81,
	VINCE = 69,
	STEVE = 80,
	JENNY = 132,
	DARREN = 87,
	TONY = 91,
	DEVIN = 61,
	CARMEN = 78,
	SAL = 99,
	PABLO = 98,
	SPIKE = 93,
	ROBOT = 62,
	JOEY = 90,	
	MADLAB = 146,
	CONRAD = 70,
	KINGPIN = 86,
	MADAME = 107,
	JOHN = 118,
	MARY = 119,
}
	-- Set ESK Payne's location
	if  (not ( ( gWorldSectorX == 2) and ( gWorldSectorY == 2) ) and not MercIsDead(Profil.ESK) ) then
	
--		if ( CheckMiscFlags1(Profil.ESK, Flags1.PROFILE_MISC_FLAG_SAID_HOSTILE_QUOTE) == 0 ) then
		
			AddNPCtoSector (Profil.ESK,2,2,0) 
			SetProfileStrategicInsertionData(Profil.ESK, 12089)
			
		end
		
	end
	-- Set ESK Payne's location

But it seems something else needed
May be this number (SetProfileStrategicInsertionData(Profil.ESK, 12089))?
First I thought it be grid#...
https://freeimage.host/i/oo8OUF
https://freeimage.host/i/oo8Nl1

Report message to a moderator

Corporal 1st Class
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Turn NPC or merc into cow..
Next Topic: Civilians behaviour during fights.
Goto Forum:
  


Current Time: Sat Nov 30 17:19:23 GMT+2 2024

Total time taken to generate the page: 0.00764 seconds