Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: possibility to persist NPC on map with /n talkaction #2682

Merged
merged 3 commits into from
Jul 2, 2024

Conversation

lamonato29
Copy link
Contributor

@lamonato29 lamonato29 commented Jun 6, 2024

Description

Sometimes, we need to add a NPC to the map, and we can do this in two ways:
We can add it via RME or we can add it in the XML directly.

This PR will give the possibility to persist the recently spawned NPC on the map, just using a command with GOD character.
It will be placed in GOD's position.

USAGE:
Add the param true after the NPC Name.

/n NpcName,true

This will add the NPC tag to the npcs xml file.

Behaviour

Actual

Use /n npcName, the NPC will be spawned and removed after the server closes.

Expected

Use /n npcName when you want to add a temporary NPC to the map.
Use /n npcName,true when you want to add a persistent NPC to the map.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested

Join the game with GOD, spawn a npc with the following command:
/n npcName,true

Close and reopen the server. The NPC will spawn in the same position.

@elsongabriel elsongabriel merged commit 926a5f3 into opentibiabr:main Jul 2, 2024
17 checks passed
s2leandro155 pushed a commit to s2leandro155/rzyns that referenced this pull request Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants