#(razorbl8de) Spawning an npc with Citizens2

32 messages · Page 1 of 1 (latest)

stark oak
#

I am using skript-reflect to set the npc's variable, but I do not know if the part that is returning an error is skript-reflect related or citizens related, so I need someone to check if the other half of the code works or if I made a mistake.

set {_zealot} to npc.getNPCRegistry().createNPC(EntityType.PLAYER, ChatColor.DARK_RED + "Zealot", {_loc1});

Sorry for another post, I legitimately checked the (citizens) documentation and couldn't find it.

tepid talonBOT
#

(razorbl8de) Spawning an npc with Citizens2

tepid talonBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

radiant grotto
#

I can't check skript reflect code

#

This is not a skript reflect help discord

#

You may as well just use Java at this point

cold zephyrBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@stark oak

stark oak
#

I said that already

#

npc.getNPCRegistry().createNPC(EntityType.PLAYER, ChatColor.DARK_RED + "Zealot", {_loc1}); this bit only

stark oak
#

cant you just say if that code I sent looks like it would work?

radiant grotto
#

it is obviously wrong

#

CitizensAPI.getNPCRegistry() is the correct method

#

but I am not a code checking service

stark oak
radiant grotto
#

you should fix your code yourself

stark oak
#

The whole point of asking is that I did attempt to but I didn't figure it out.

And someone like you replying isnt mandatory, you could have just let someone else check it out

#

So idk why you bother doing something you say you dont do, and then flaming me for your desision to intervene.

cold zephyrBOT
#
Resolved

Thread closed as resolved.

radiant grotto
#

there is nobody else to check it out

cold zephyrBOT
#
Thread Reopened

Thread was manually reopened by @radiant grotto.

radiant grotto
#

next time you open a thread I will just point you to the javadocs then

stark oak
radiant grotto
#

I am the higher up...

stark oak
#

Dont you guys have like junior staff or something?

radiant grotto
#

we don't have junior developers on citizens, not for lack of trying

#

you are asking a development question

stark oak
#

whatever thanks for the help I guess