Ghost Item ?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

CziSKY

Member
Feb 22, 2017
25
0
0
20
China
www.15imc.com
skript version: 2.2-Dev20 (Bensku's Fork)
server version: Spigot 1.8.8
addons: Skquery SkMorkaz SkStuff Tuske SkRayfall SharpSk Skript-yaml

code_language.skript:
function aries_equip(p: player, t: text):
    set {_p}'s helmet to 1 of {kit::%{_t}%::helmet}
    play "Horse_armor" to {_p} at volume 0.3
    wait 3 ticks
    set {_p}'s chestplate to 1 of {kit::%{_t}%::chestplate}
    play "Horse_armor" to {_p} at volume 0.3
    wait 3 ticks
    set {_p}'s legging to 1 of {kit::%{_t}%::legging}
    play "Horse_armor" to {_p} at volume 0.3
    wait 3 ticks
    set {_p}'s boots to 1 of {kit::%{_t}%::boots}
    play "Horse_armor" to {_p} at volume 0.3
    set {_num} to -1
    loop {kit::%{_t}%::items::*}:
        add 1 to {_num}
        set slot {_num} of {_p}'s inventory to loop-value
#This is a cut of another function  (it's different function)
  sharpsk paste schematic "Arenas1" at {_loc} exclude air true
    set {_loc.p1} to location({_num} + 44.5, 60, {_num} + 1.5, world("world"))
    set {_loc.p2} to location({_num} + 1.5, 60, {_num} + 46.5, world("world"))
    aries_equip({_p}, {_mode})
    teleport {_p} to {_loc.p1}
    teleport {_p.2} to {_loc.p2}
#save kit
command /savekit [<text>]:
    permission: admin
    permission message: &fNo Permision.
    trigger:
        set {kit::%arg 1%::helmet} to player's helmet
        set {kit::%arg 1%::chestplate} to player's chestplate
        set {kit::%arg 1%::legging} to player's legging
        set {kit::%arg 1%::boots} to player's boots
        set {kit::%arg 1%::items::*} to all items of player
        send "success !"

so here is my code
it's looks like no errors but have a weird bug
s

item like lagging and inventory click event can't listen player

code_language.skript:
#this is test code
on mor.inventory click:
    broadcast "1"
on inventory click:
    broadcast "2"
update inventory is not fix it too (unbaska and Skellett)

I tried two kinds of give kit (set slot of player's inventory / give item to player)
but not working too

how to fix it ??? This is very important to me
[doublepost=1519171583,1519171075][/doublepost]someone help me pls !
[doublepost=1519184238][/doublepost]help pls !!!!!!!!
[doublepost=1519224825][/doublepost]pls !!!
[doublepost=1519237366][/doublepost]pls !!
[doublepost=1519242722][/doublepost]pls !!!!!!!!!!!!
 
skript version: 2.2-Dev20 (Bensku's Fork)
server version: Spigot 1.8.8
addons: Skquery SkMorkaz SkStuff Tuske SkRayfall SharpSk Skript-yaml

code_language.skript:
function aries_equip(p: player, t: text):
    set {_p}'s helmet to 1 of {kit::%{_t}%::helmet}
    play "Horse_armor" to {_p} at volume 0.3
    wait 3 ticks
    set {_p}'s chestplate to 1 of {kit::%{_t}%::chestplate}
    play "Horse_armor" to {_p} at volume 0.3
    wait 3 ticks
    set {_p}'s legging to 1 of {kit::%{_t}%::legging}
    play "Horse_armor" to {_p} at volume 0.3
    wait 3 ticks
    set {_p}'s boots to 1 of {kit::%{_t}%::boots}
    play "Horse_armor" to {_p} at volume 0.3
    set {_num} to -1
    loop {kit::%{_t}%::items::*}:
        add 1 to {_num}
        set slot {_num} of {_p}'s inventory to loop-value
#This is a cut of another function  (it's different function)
  sharpsk paste schematic "Arenas1" at {_loc} exclude air true
    set {_loc.p1} to location({_num} + 44.5, 60, {_num} + 1.5, world("world"))
    set {_loc.p2} to location({_num} + 1.5, 60, {_num} + 46.5, world("world"))
    aries_equip({_p}, {_mode})
    teleport {_p} to {_loc.p1}
    teleport {_p.2} to {_loc.p2}
#save kit
command /savekit [<text>]:
    permission: admin
    permission message: &fNo Permision.
    trigger:
        set {kit::%arg 1%::helmet} to player's helmet
        set {kit::%arg 1%::chestplate} to player's chestplate
        set {kit::%arg 1%::legging} to player's legging
        set {kit::%arg 1%::boots} to player's boots
        set {kit::%arg 1%::items::*} to all items of player
        send "success !"

so here is my code
it's looks like no errors but have a weird bug
s

item like lagging and inventory click event can't listen player

code_language.skript:
#this is test code
on mor.inventory click:
    broadcast "1"
on inventory click:
    broadcast "2"
update inventory is not fix it too (unbaska and Skellett)

I tried two kinds of give kit (set slot of player's inventory / give item to player)
but not working too

how to fix it ??? This is very important to me
[doublepost=1519171583,1519171075][/doublepost]someone help me pls !
[doublepost=1519184238][/doublepost]help pls !!!!!!!!
[doublepost=1519224825][/doublepost]pls !!!
[doublepost=1519237366][/doublepost]pls !!
[doublepost=1519242722][/doublepost]pls !!!!!!!!!!!!
how to not get help 101
 
Status
Not open for further replies.