Register for your free account! | Forgot your password?

You last visited: Today at 00:03

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Bukkit] Vault

Discussion on [Bukkit] Vault within the Minecraft forum part of the Other Online Games category.

Reply
 
Old   #1
 
elite*gold: 10
Join Date: Apr 2012
Posts: 23
Received Thanks: 2
[Bukkit] Vault

Hallo,

wie kann man mit Vault die Prefixe, bzw. die Farbcodes aus dem Prefix auslesen? Hab mir mal die Dev Seite auf Bukkit.org angschaut, nur werde darauß nicht sonderlich schlau...
President741 is offline  
Old 05/19/2013, 19:24   #2
Moderator


 
elite*gold: 558
Join Date: Feb 2010
Posts: 6,546
Received Thanks: 1,418
Dann überleg mal ...
... wo die Prefixe festgelegt werden.
... wie man etwas in einem String findet.
ComputerBaer is offline  
Old 05/19/2013, 20:03   #3
Moderator


 
elite*gold: 558
Join Date: Feb 2010
Posts: 6,546
Received Thanks: 1,418
Ok, ich glaube damit ich versuchen kann dir da weiter zu helfen, müssen wir erstmal klären was du vor hast.

Ich verstehe das richtig, du möchtest den Farbcode aus dem Prefix haben, damit du deinen eigenen (zustätzlichen) Prefix entsprechend einfärben kannst?

Man könnte es so machen, dass man sich die Position des &-Zeichens holt und dann noch das nächste Zeichen aus dem String holt.
Könnte ungefähr so aussehen:
Code:
tag_besucher = "&" + besucher[besucher.indexOf("&") + 1] + tag_besucher;
Jetzt aber ein Problem dabei:
Was machst du wenn im Prefix mehrere Farben drin sind? z.B. "&f[&4Admin&f]"
Dann wäre dein Admin weiß, obwohl seine eigentlich Farbe Rot ist.
ComputerBaer is offline  
Old 05/19/2013, 20:26   #4
Moderator


 
elite*gold: 558
Join Date: Feb 2010
Posts: 6,546
Received Thanks: 1,418
Das sollte auch gehen, ungefähr so:
Code:
tag_besucher = "&" + besucher[besucher.indexOf("&", besucher.indexOf("&") + 1) + 1] + tag_besucher;
()
ComputerBaer is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
prize vault
03/18/2013 - Main - 3 Replies
hey guys does anyone know if this site is legit or not? a friend said everytime someone clicks on it you gain one point which can be exchanged for prizes. its called ultimate prize vault
vault cubic
09/17/2012 - Rappelz Private Server - 2 Replies
Give vent please a fix on from a vault cubic
high DH dmg with vault + ss
08/29/2012 - Diablo 3 Guides & Strategies - 1 Replies
First of all: not my idea, i just repost this. It´s no big secret, that with the recent Patch (1.04) Vault (Trail of Cinders) has been buffed to 1500% weapondamage over 3seconds. If you got now stacked Sharpshooter, u'll have about the double amount of weapondamage. Vault (Trail of Cinders) does not consume the stacked Sharpshooter. As long you dont autoattack any mob, your damage will stay high. If you are able to combine with a decent gear of resistance, this should also work...
HAT IG-VAULT ICQ?
10/13/2010 - Metin2 Trading - 4 Replies
SUCHE DIE NUMMER VON DEN YANGVERKÄUFER IG-VAULT
Ig Vault?!?!
03/04/2010 - Metin2 - 15 Replies
hey leutz, wisst ihr was mit ig vault los ist?? es kommt 404 error -.- gibts die nimmer oder was, hehe gerichtliche troubles?? xD mfg



All times are GMT +1. The time now is 00:03.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.