• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Help With God Script

  • Thread starter Deleted member 49793
  • Start date
D

Deleted member 49793

Guest
Hey guys so i had a paid scripter Damadger (Doggynub) who left me with a half working script that i dunno how to edit and even though i paid him he wont help me make it working... sooo im looking for someone to help me finish it and make it 100% work since he didnt.

Basicly the script is suppose to after saying "Join" Promote you from your current voc (1,2,3,4, or 31) + 10 vocation id,s
So from 1 to 11, 31 to 41 etc.
But when you say join all it does is make you have 0 voc, (I search /info playername) shows Voc -----
nothing there...

Heres my vocations.xml Also
Code:
<?xml version="1.0" encoding="UTF-8"?> 
<vocations>
	<vocation id="0" name="None" description="none" needpremium="0" gaincap="5" 
gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" 
manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" 
attackable="no">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="1" name="Wizard" description="a wizard" needpremium="0" gaincap="10" 
gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" 
gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="1">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="1.3" sword="2.0" axe="2.0" distance="2.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="2" name="Paladin" description="a paladin" needpremium="0" gaincap="25" 
gainhp="15" gainmana="10" gainhpticks="6" gainhpamount="5" gainmanaticks="3" 
gainmanaamount="10" manamultiplier="1.4" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="2">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="1.3" sword="1.4" axe="1.2" distance="1.8" 
shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="3" name="Voodoomaster" description="a voodoomaster" needpremium="0" 
gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" 
gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="3">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="1.3" sword="2.0" axe="2.0" distance="2.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="4" name="Barbarian" description="a barbarian" needpremium="0" 
gaincap="25" gainhp="10" gainmana="5" gainhpticks="3" gainhpamount="5" gainmanaticks="6" 
gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="4">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.1" club="1.3" sword="1.1" axe="1.1" distance="1.4" 
shielding="1.4" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="5" name="Rangerr" description="a ranger" needpremium="0" gaincap="15" 
gainhp="5" gainmana="5" gainhpticks="4" gainhpamount="5" gainmanaticks="5" 
gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="5">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="1.3" sword="2.0" axe="2.0" distance="1.8" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="6" name="Wizard of Zeus" description="a wizard of zeus" needpremium="0" 
gaincap="10" gainhp="6" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" 
gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="1">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="7" name="Paladin of Zeus" description="a paladin of zeus" needpremium="0" 
gaincap="25" gainhp="18" gainmana="10" gainhpticks="6" gainhpamount="5" gainmanaticks="3" 
gainmanaamount="10" manamultiplier="1.4" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="2">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="1.2" sword="1.2" axe="1.2" distance="1.8" 
shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="8" name="Voodoomaster of Zeus" description="a voodoomaster of zeus" 
needpremium="0" gaincap="12" gainhp="6" gainmana="30" gainhpticks="6" gainhpamount="5" 
gainmanaticks="3" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" 
gainsoulticks="120" fromvoc="3">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="9" name="Barbarian of Zeus" description="a barbarian of zeus" needpremium="0" 
gaincap="25" gainhp="12" gainmana="5" gainhpticks="3" gainhpamount="5" gainmanaticks="6" 
gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="4">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" 
shielding="1.4" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="10" name="Ranger of Zeuss" description="a ranger" needpremium="0" 
gaincap="15" gainhp="6" gainmana="5" gainhpticks="4" gainhpamount="5" gainmanaticks="5" 
gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="31">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="1.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="11" name="Wizard of Apollo" description="a wizard of apollo" needpremium="0" 
gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" 
gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="6">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="12" name="Paladin of Apollo" description="a paladin of apollo" needpremium="0" 
gaincap="25" gainhp="15" gainmana="10" gainhpticks="6" gainhpamount="5" gainmanaticks="3" 
gainmanaamount="10" manamultiplier="1.4" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="7">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="1.2" sword="1.2" axe="1.2" distance="1.8" 
shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="13" name="Voodoomaster of Apollo" description="a voodoomaster of apollo" 
needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" 
gainmanaticks="3" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" 
gainsoulticks="120" fromvoc="5">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="14" name="Barbarian of Apollo" description="a barbarian of apollo" 
needpremium="0" gaincap="25" gainhp="10" gainmana="5" gainhpticks="3" gainhpamount="5" 
gainmanaticks="6" gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" soulmax="100" 
gainsoulticks="120" fromvoc="9">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" 
shielding="1.4" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="15" name="Ranger of Apollos" description="a ranger" needpremium="0" 
gaincap="15" gainhp="5" gainmana="5" gainhpticks="4" gainhpamount="5" gainmanaticks="5" 
gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="10">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="1.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
		<vocation id="16" name="Wizard of Poseidon" description="a wizard of Poseidon" 
needpremium="0" gaincap="10" gainhp="5" gainmana="36" gainhpticks="6" gainhpamount="5" 
gainmanaticks="3" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" 
gainsoulticks="120" fromvoc="11">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="17" name="Paladin of Poseidon" description="a paladin of Poseidon" needpremium="0" 
gaincap="25" gainhp="15" gainmana="12" gainhpticks="6" gainhpamount="5" gainmanaticks="3" 
gainmanaamount="10" manamultiplier="1.4" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="12">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="1.2" sword="1.2" axe="1.2" distance="1.8" 
shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="18" name="Voodoomaster of Poseidon" description="a voodoomaster of Poseidon" 
needpremium="0" gaincap="10" gainhp="5" gainmana="36" gainhpticks="6" gainhpamount="5" 
gainmanaticks="3" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" 
gainsoulticks="120" fromvoc="13">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="19" name="Barbarian of Poseidon" description="a barbarian of Poseidon" 
needpremium="0" gaincap="25" gainhp="10" gainmana="6" gainhpticks="3" gainhpamount="5" 
gainmanaticks="6" gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" soulmax="100" 
gainsoulticks="120" fromvoc="14">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" 
shielding="1.4" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="20" name="Ranger of Poseidonn" description="a ranger" needpremium="0" 
gaincap="15" gainhp="5" gainmana="6" gainhpticks="4" gainhpamount="5" gainmanaticks="5" 
gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="15">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="1.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
		<vocation id="21" name="Wizard of Chronos" description="a wizard of Chronos" 
needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" 
gainmanaticks="3" gainmanaamount="10" manamultiplier="1.1" attackspeed="1800" soulmax="100" 
gainsoulticks="120" fromvoc="16">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="22" name="Paladin of Chronos" description="a paladin of Chronos" needpremium="0" 
gaincap="25" gainhp="15" gainmana="10" gainhpticks="6" gainhpamount="5" gainmanaticks="3" 
gainmanaamount="10" manamultiplier="1.4" attackspeed="1800" soulmax="100" gainsoulticks="120" 
fromvoc="17">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="1.2" sword="1.2" axe="1.2" distance="1.8" 
shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="23" name="Voodoomaster of Chronos" description="a voodoomaster of Chronos" 
needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" 
gainmanaticks="3" gainmanaamount="10" manamultiplier="1.1" attackspeed="1800" soulmax="100" 
gainsoulticks="120" fromvoc="18">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="24" name="Barbarian of Chronos" description="a barbarian of Chronos" 
needpremium="0" gaincap="25" gainhp="10" gainmana="5" gainhpticks="3" gainhpamount="5" 
gainmanaticks="6" gainmanaamount="10" manamultiplier="3.0" attackspeed="1800" soulmax="100" 
gainsoulticks="120" fromvoc="19">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" 
shielding="1.4" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="25" name="Ranger of Chronoss" description="a ranger" needpremium="0" 
gaincap="15" gainhp="5" gainmana="5" gainhpticks="4" gainhpamount="5" gainmanaticks="5" 
gainmanaamount="10" manamultiplier="1.1" attackspeed="1800" soulmax="100" gainsoulticks="120" 
fromvoc="20">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="1.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="26" name="Wizard of Hades" description="a wizard of Hades" needpremium="0" 
gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" gainmanaticks="3" 
gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="21">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="27" name="Paladin of Hades" description="a paladin of Hades" needpremium="0" 
gaincap="25" gainhp="15" gainmana="10" gainhpticks="6" gainhpamount="5" gainmanaticks="3" 
gainmanaamount="10" manamultiplier="1.4" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="22">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="1.2" sword="1.2" axe="1.2" distance="1.8" 
shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="28" name="Voodoomaster of Hades" description="a voodoomaster of Hades" 
needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="5" 
gainmanaticks="3" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" 
gainsoulticks="120" fromvoc="23">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="29" name="Barbarian of Hades" description="a barbarian of Hades" needpremium="0" 
gaincap="25" gainhp="10" gainmana="5" gainhpticks="3" gainhpamount="5" gainmanaticks="6" 
gainmanaamount="10" manamultiplier="3.0" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="24">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" 
shielding="1.4" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="30" name="Rangerr of Hades" description="a ranger" needpremium="0" 
gaincap="15" gainhp="5" gainmana="5" gainhpticks="4" gainhpamount="5" gainmanaticks="5" 
gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="25">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="1.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
		<vocation id="31" name="Ranger" description="a ranger" needpremium="0" gaincap="15" 
gainhp="5" gainmana="5" gainhpticks="4" gainhpamount="5" gainmanaticks="5" 
gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="31">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="1.3" sword="2.0" axe="2.0" distance="1.1" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
<vocation id="56" name="Ranger of Hades" description="a ranger of Hades" needpremium="0" 
gaincap="15" gainhp="5" gainmana="5" gainhpticks="4" gainhpamount="5" gainmanaticks="5" 
gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="51">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="1.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="51" name="Ranger of Chronos" description="a ranger of Chronos" needpremium="0" 
gaincap="15" gainhp="5" gainmana="5" gainhpticks="4" gainhpamount="5" gainmanaticks="5" 
gainmanaamount="10" manamultiplier="1.1" attackspeed="1800" soulmax="100" gainsoulticks="120" 
fromvoc="46">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="1.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
<vocation id="46" name="Ranger of Poseidon" description="a ranger of Poseidon" needpremium="0" 
gaincap="15" gainhp="5" gainmana="6" gainhpticks="4" gainhpamount="5" gainmanaticks="5" 
gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="41">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="1.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
<vocation id="41" name="Ranger of Apollo" description="a ranger of Apollo" needpremium="0" 
gaincap="15" gainhp="5" gainmana="5" gainhpticks="4" gainhpamount="5" gainmanaticks="5" 
gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="36">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="1.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
<vocation id="36" name="Ranger of Zeus" description="a ranger of Zeus" needpremium="0" 
gaincap="15" gainhp="6" gainmana="5" gainhpticks="4" gainhpamount="5" gainmanaticks="5" 
gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" 
fromvoc="31">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" 
magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="1.0" 
shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
</vocations>

Heres the script

Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid)				npcHandler:onCreatureAppear(cid)				end
function onCreatureDisappear(cid)				npcHandler:onCreatureDisappear(cid)				end
function onCreatureSay(cid, type, msg)				npcHandler:onCreatureSay(cid, type, msg)				end
function onThink()					npcHandler:onThink()					end

local voc_msg = "You already worship another God."    --- the msg he will get if he have joined other relegion.

local msg_info = "you will get 20% more health per level if you follow me immortal"  -- the msg they get if they want to know info about the powers and relegion they are going to join and have

local msg_join = "You have succefully chosen to follow me, here is some of my power."  -- msg he will get on joining team , better to have some info about what powers he get = generation of mana and max mana etc :)

local promo = 2    -- [1] will be equal + 5 for each voc , [2] will be equal + 10 for each voc etc...  like normal promotion


local voc = {1,2,3,4,31}    

function creatureSayCallback(cid, type, msg)
	if not npcHandler:isFocused(cid) then
		return false
	end
	
	local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid
	
	if not isInArray(voc,getPlayerVocation(cid)) then
		return selfSay(voc_msg,cid)
	end
	if msgcontains(msg, 'join')  then
		npcHandler:say('So do you want to worship me? you will get 20% more health per level if you follow me immortal', cid)
		talkState[talkUser] = 1
	elseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 then
		tid = getPlayerName(cid)
		npcHandler:say(msg_join, cid)
		talkState[talkUser] = 0
		setPlayerPromotionLevel(cid,promo)
	elseif msgcontains(msg, 'no') and talkState[talkUser] == 1 then
		npcHandler:say('Seems you dont have a strong beleif in me.', cid)
		talkState[talkUser] = 0
	elseif msgcontains(msg, 'info') then
		npcHandler:say(msg_info, cid)
	end
	return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
 
Then he's a dumbass, not a scripter. Next time msg me.

Simply change
Lua:
setPlayerPromotionLevel(cid,promo)
to
Lua:
doPlayerSetVocation(cid,getPlayerVocation(cid)+10);

This script is a mess but... should works.

//QuaS
 
I was about to remake the whole thing for you, but I guess you can try Quas's solution.

:mad:
 
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

[COLOR="red"][B]local before_voc = {1, 2, 3, 4}
local storage = 44111[/B][/COLOR]
local Topic = {}

function onCreatureAppear(cid)			npcHandler:onCreatureAppear(cid)			end
function onCreatureDisappear(cid)		npcHandler:onCreatureDisappear(cid)			end
function onCreatureSay(cid, type, msg)	npcHandler:onCreatureSay(cid, type, msg)	end
function onThink()						npcHandler:onThink()						end

function creatureSayCallback(cid, type, msg)
	if (msgcontains(msg, "hello") or msgcontains(msg, "hi")) and (not npcHandler:isFocused(cid)) then
		if isInArray(before_voc, getPlayerVocation(cid)) then
			npcHandler:say("Hello " .. getCreatureName(cid) .. ". How can I help you today?", cid)
			Topic[cid] = 1
		else
			npcHandler:say("Hmm, a " .. getVocationInfo(getPlayerVocation(cid)).name .. "... Don't think I can help you, is there something else?", cid)
			Topic[cid] = 0
		end
		npcHandler:addFocus(cid)
	elseif(not npcHandler:isFocused(cid)) then
		return false
	elseif Topic[cid] == 1 then
		if msgcontains(msg, "join") then
			if getPlayerStorageValue(cid, storage) < 0 then
				npcHandler:say("Would you like to join the faction?", cid)
				Topic[cid] = 2
			else
				npcHandler:say("It seems you are already a member.", cid)
				Topic[cid] = 0
			end
		end
	elseif Topic[cid] == 2 then
		if msgcontains(msg, "yes") then
			npcHandler:say("Great! You are now the new member.", cid)
			doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
			setPlayerStorageValue(cid, storage, 1)
			Topic[cid] = 3
		elseif msgcontains(msg, "no") then
			npcHandler:say("Please leave me alone.", cid)
			Topic[cid] = 0
		end
	elseif Topic[cid] == 3 then
		if msgcontains(msg, "promote") then
			if getPlayerStorageValue(cid, storage) > 0 then
				npcHandler:say("Would you like to be promoted?", cid)
				Topic[cid] = 4
			else
				npcHandler:say("Nothing can be done, sorry.", cid)
				Topic[cid] = 0
			end
		end
	elseif Topic[cid] == 4 then
		if msgcontains(msg, "yes") then
			if isInArray(before_voc, getPlayerVocation(cid)) then
				npcHandler:say("It has been done! Enjoy your new abilities.", cid)
				doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED)
				doPlayerSetPromotionLevel(cid, getPlayerPromotionLevel(cid) + 1)
				Topic[cid] = 0
			else
				npcHandler:say("You have already been promoted.", cid)
				Topic[cid] = 0
			end
		elseif msgcontains(msg, "no") then
			npcHandler:say("Then stop wasting my time.", cid)
			Topic[cid] = 0
		end
	elseif msgcontains(msg, "bye") or msgcontains(msg, "farewell") then
		npcHandler:say("Good bye.", cid, TRUE)
		Topic[cid] = nil
		npcHandler:releaseFocus(cid)
	elseif msgcontains(msg, "job") then
		npcHandler:say("My job is to {promote} players.", cid)
		Topic[cid] = 0
	elseif msgcontains(msg, "help") then
		npcHandler:say("Help? Help you with what?", cid)
		Topic[cid] = 0
	end
	
	return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:setMessage(MESSAGE_WALKAWAY, getPlayerStorageValue(cid, storage) > 0 and "Have a good day fello member!" or "How rude can a person be?")
 
Back
Top