Abyssea - Altepa

User avatar
demolish
Developer
Posts: 262
Joined: Thu Jul 26, 2012 7:12 am

Abyssea - Altepa

Post by demolish » Mon Aug 19, 2013 12:10 pm

Added dialogue to all NPCs in Abyssea - Altepa.

EDIT: Will re-upload once it's working 100%
Last edited by demolish on Tue Aug 20, 2013 7:22 am, edited 1 time in total.
<Giblet[NewBrain]> kj with this first step would be fine on my shit
Click here for a guide on scripting missions.

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: Abyssea - Altepa

Post by whasf » Mon Aug 19, 2013 6:43 pm

Aren't the conflux's supposed to cost points or something to use?
-- Whasf

Zerahn
Posts: 18
Joined: Wed Aug 07, 2013 5:52 pm

Re: Abyssea - Altepa

Post by Zerahn » Mon Aug 19, 2013 7:30 pm

they totally are, unless you're warping to conflux 0, or i think 8 in the zones that have a bastion outpost.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Abyssea - Altepa

Post by kjLotus » Mon Aug 19, 2013 7:51 pm

Zerahn wrote:they totally are, unless you're warping to conflux 0, or i think 8 in the zones that have a bastion outpost.
01 is entrance, 00 is outpost

it costs cruor to teleport to entrance from anything other than 00

User avatar
demolish
Developer
Posts: 262
Joined: Thu Jul 26, 2012 7:12 am

Re: Abyssea - Altepa

Post by demolish » Tue Aug 20, 2013 6:06 am

Yeah just added basic dialog and @pos to their scripts so someone can work on getting it working properly.
EDIT: Veridical Conflux's had a lot of params in their events, im working on them now.
<Giblet[NewBrain]> kj with this first step would be fine on my shit
Click here for a guide on scripting missions.

Troak
Posts: 27
Joined: Thu Jan 31, 2013 12:57 am

Re: Abyssea - Altepa

Post by Troak » Tue Aug 20, 2013 9:21 pm

Here's some initial onTrigger work I got done for one of the confluxes after talking to you on IRC.

Code: Select all

function onTrigger(player,npc)
	
	local mask = player:getVar('ConfluxMask[Altepa]');
	local activated = player:getMaskBit(mask,0);
	local cruor = player:getVar('Cruor');
	local cost = 1
	if(player:hasKeyItem(IVORY_ABYSSITE_OF_CONFLUENCE) then
		cost = cost - 0.2
	end
	if(player:hasKeyItem(CRIMSON_ABYSSITE_OF_CONFLUENCE) then
		cost = cost - 0.2
	end
	if(player:hasKeyItem(INDIGO_ABYSSITE_OF_CONFLUENCE) then
		cost = cost - 0.2
	end
	if(activated) then
		player:startEvent(0x0854, (600 + 800 * 65536) * cost, (1000 + 1200 * 65536) * cost, (1400 + 1600 * 65536) * cost, (1800 + 2000 * 65536) * cost, mask, 9, 1, cruor);
	else
		player:startEvent(0x0854, 50 * cost, 0, 0, 0, 0, 0, 2, cruor);
	end
	
end; 
Haven't coded any of the onEventFinish stuff. Obviously, depending on the options selected, various things need to happen. If activated, need to add a bit to the mask variable 'ConfluxMask[Altepa]'. If a teleport is taken, then the proper amount of cruor needs to be subtracted from the player's cruor (which for now I just left in the player variable 'Cruor' and the player needs to be teleported to the correct position. The csid and parameters correlate specifically to Veridical Conflux #01 in Abyssea-Altep. Finally, the cruor values to teleport to each conflux are technically wrong since those are supposed to be based on the distance between the confluxes I guess. Accurate values would have to be taken from retail.

Troak
Posts: 27
Joined: Thu Jan 31, 2013 12:57 am

Re: Abyssea - Altepa

Post by Troak » Tue Aug 20, 2013 9:22 pm

Also I didn't actually test the script itself (only tested with @cs) so there could be typos or bad scripting in there...
Requires keyitems.lua as well.

User avatar
demolish
Developer
Posts: 262
Joined: Thu Jul 26, 2012 7:12 am

Re: Abyssea - Altepa

Post by demolish » Wed Aug 21, 2013 7:23 am

Seems like client and server interpreting "(600 + 800 * 65536) * cost" differently.
Client is seeing it as 600 where server is seeing it as 52429400 so it wont allow you to teleport
<Giblet[NewBrain]> kj with this first step would be fine on my shit
Click here for a guide on scripting missions.

Troak
Posts: 27
Joined: Thu Jan 31, 2013 12:57 am

Re: Abyssea - Altepa

Post by Troak » Wed Aug 21, 2013 8:34 am

Do you mean when you are trying to pass on the cruor cost in onEventFinish()?
If that's what you mean, you'll probably have to redefine the costs for each conflux within onEventFinish().

User avatar
demolish
Developer
Posts: 262
Joined: Thu Jul 26, 2012 7:12 am

Re: Abyssea - Altepa

Post by demolish » Wed Aug 21, 2013 8:45 am

Change the first param after the csid to 600 or something and set your chars cruor to 1234.
Try to teleport and it'll display the teleport animation but if you use (600 + 800 * 65536) instead of 600 in the event params it seems like the server reads that as 52429400 and expects the player to have 52429400 cruor cause it wont let you teleport/show the animation

EDIT: Well i take that back. Looks like it wont show the tele animation unless the param after csid is set to 1
Last edited by demolish on Wed Aug 21, 2013 9:33 am, edited 1 time in total.
<Giblet[NewBrain]> kj with this first step would be fine on my shit
Click here for a guide on scripting missions.

Post Reply