Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dev01-cls
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zero
dev01-cls
Commits
91d59403
Commit
91d59403
authored
Aug 08, 2025
by
zero
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
a8c347bf
Pipeline
#40
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
sh_items.lua
sh_items.lua
+20
-0
No files found.
sh_items.lua
0 → 100644
View file @
91d59403
-- Ítems para el plugin HogwartsRP Clases
-- Define ítems base para hechizos y tests.
-- Registro del ítem base para hechizos (se crea dinámicamente al aprobar un test)
local
function
RegisterHechizoItem
(
test
)
local
CONFIG
=
ix
.
clases
.
CONFIG
local
itemID
=
CONFIG
.
ITEM_PREFIX
..
string.lower
(
test
.
hechizo
)
local
hechizoItem
=
ix
.
item
.
Register
(
itemID
,
nil
,
false
,
nil
,
true
)
hechizoItem
.
name
=
"Hechizo: "
..
test
.
hechizo
hechizoItem
.
description
=
"Un pergamino que te permite lanzar "
..
test
.
hechizo
..
"."
hechizoItem
.
model
=
ix
.
config
.
Get
(
"HogwartsRP_PergaminoModel"
)
hechizoItem
.
category
=
"Hechizos"
hechizoItem
.
functions
.
Use
=
{
OnRun
=
function
(
item
)
local
client
=
item
.
player
client
:
Notify
(
"Lanzaste "
..
test
.
hechizo
..
"!"
)
return
false
end
}
end
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment