Page 1 of 2

VoidWatch

Posted: Wed Sep 16, 2015 11:22 pm
by shadowuz
what did i do wrong


Code: Select all

-----------------------------------
-- Zone: KRT
--  NPC: ??? (Planar Rift)
-- Spawns  Hahava (???)
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrigger Action
-----------------------------------

function onTrigger(player,npc)
    if (GetMobAction(17555903) == ACTION_NONE) then
        -- NM not already spawned from this, so checking KI
        if (player:hasKeyItem(CRIMSON_STRATUM_ABYSSITE_IV) and player:hasKeyItem(VOIDSTONE_TEMP)) then
            -- Ask if player wants to use KIs
            player:startEvent(6000, CRIMSON_STRATUM_ABYSSITE_IV, VOIDSTONE_TEMP);
        else
            -- Do not ask, because player is missing at least 1.
            player:startEvent(6001, CRIMSON_STRATUM_ABYSSITE_IV, VOIDSTONE_TEMP);
        end
    end
end;

-----------------------------------
-- onEventUpdate
-----------------------------------

function onEventUpdate(player,csid,option)
    -- printf("CSID2: %u",csid);
    -- printf("RESULT2: %u",option);
end;

-----------------------------------
-- onEventFinish
-----------------------------------

function onEventFinish(player,csid,option)
    -- printf("CSID: %u",csid);
    -- printf("RESULT: %u",option);
    if (csid == 6000 and option == 1) then
        -- Spawn NM, Despawn after inactive for 3 minutes (pt has to reclaim within 3 mins of a wipe)
        SpawnMob(17555903, 180):updateEnmity(player);
        player:delKeyItem(VOIDSTONE_TEMP);
         
		end 
	end;	
	
	
	

errori get is :

[16/Sep] [23:16:53][1;36m[Debug][0m [1;36mparse: SmallPacket is not implemented Type<112>
[0m[16/Sep] [23:16:53][1;37m[Info][0m parse: 05A | 0003 0002 02 from user: Shadow
[16/Sep] [23:17:02][1;37m[Info][0m parse: 01A | 0015 0014 0E from user: Shadow

Re: VoidWatch

Posted: Thu Sep 17, 2015 7:36 pm
by whasf
That's not an error, it's just a debug message about a packet type not being implemented

Re: VoidWatch

Posted: Thu Sep 17, 2015 8:04 pm
by kjLotus
what is the issue? your mob is not spawning?

Re: VoidWatch

Posted: Thu Sep 17, 2015 11:12 pm
by shadowuz
nah it crashes server
heres the map log

[0m[17/Sep] [23:52:55][1;37m[Info][0m parse: 053 | 0004 0001 44 from user: Shadow
[17/Sep] [23:52:55][1;37m[Info][0m parse: 01A | 0004 0001 0E from user: Shadow
[17/Sep] [23:52:55][1;36m[Debug][0m [1;36mCLIENT Shadow PERFORMING ACTION 14
[0m[17/Sep] [23:52:55][1;37m[Info][0m parse: 04B | 0004 0001 0C from user: Shadow
[17/Sep] [23:52:55][1;37m[Info][0m parse: 0E0 | 0004 0001 4C from user: Shadow
[17/Sep] [23:52:55][1;37m[Info][0m parse: 00F | 0004 0001 12 from user: Shadow
[17/Sep] [23:52:55][1;37m[Info][0m parse: 0DB | 0004 0001 14 from user: Shadow
[17/Sep] [23:52:55][1;37m[Info][0m parse: 112 | 0004 0001 04 from user: Shadow
[17/Sep] [23:52:55][1;36m[Debug][0m [1;36mparse: SmallPacket is not implemented Type<112>
[0m[17/Sep] [23:52:55][1;37m[Info][0m parse: 05A | 0004 0001 02 from user: Shadow
[17/Sep] [23:52:57][1;37m[Info][0m parse: 04B | 0005 0002 0C from user: Shadow
[17/Sep] [23:53:27][1;37m[Info][0m parse: 01A | 003D 003A 0E from user: Shadow
[17/Sep] [23:57:07][1;36m[Debug][0m [1;36mCLIENT Shadow PERFORMING ACTION 00
[0m[17/Sep] [23:57:08][1;36m[Debug][0m [1;36mmap_cleanup: Shadow timed out, closing session

Re: VoidWatch

Posted: Fri Sep 18, 2015 12:55 am
by kjLotus
you'll have to run it from visual studio to figure out why it's crashing

Re: VoidWatch

Posted: Fri Sep 18, 2015 3:50 pm
by TeoTwawki
I know why it crashed. Null keyitem. You can't just make those up.

Valid ones are listed in scripts/globals/keyitems.lua which I see you already required. It has no entry for "VOIDSTIONE_TEMP" because no keyitem has that name in retail. If you try and make up one in the global it'll wind up being some other KI in game so don't try that.
the keyitems.lua file wrote:VOIDSTONE1 = 1539;
VOIDSTONE2 = 1540;
VOIDSTONE3 = 1541;
VOIDSTONE4 = 1542;
VOIDSTONE5 = 1543;
VOIDSTONE6 = 1544;

Re: VoidWatch

Posted: Fri Sep 18, 2015 9:56 pm
by shadowuz
thx, i got voidstone_temp from the ki page on dspwiki

Re: VoidWatch

Posted: Fri Sep 18, 2015 10:02 pm
by TeoTwawki
shadowuz wrote:thx teo, i got voidstone_temp from the ki page on dspwiki
Bad wiki, thats a paddlin!

Its kinda poorly maintained, I guess from the lack of people getting signed up because they have to ask whasf to hook them up because signup was disabled to stop armies of spam bots abusing it. I have an idea or 3 to solve this, have to talk to him about it later.

Re: VoidWatch

Posted: Fri Sep 18, 2015 10:25 pm
by shadowuz
so now it'll start event but i think i'm forgetting something,as it only gives 2 choices

[imgImage][/img]

Re: VoidWatch

Posted: Fri Sep 18, 2015 10:27 pm
by kjLotus

Code: Select all

player:startEvent(6000, CRIMSON_STRATUM_ABYSSITE_IV, VOIDSTONE_TEMP);
probably one of the other 6 params