• 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!

Chris77's Scripting Services

Type of Script: Action?

Priority: Mid-Hight

Reason of Request: To stop the free exp in my war OT

Description: When a player from the same IP kills someone else, he will not gain any EXP or FRAG

Public/Private : Public :p
 
[UP]

Lua:
local config = {
    bossname = "Tormented Soul",
    globalStorage = 1000,
    setTo = 0
}

function onDeath(cid, corpse, killer)
    if config.bossname == getCreatureName(cid) then
        if getGlobalStorageValue(config.globalStorage) >= 1 then 
            setGlobalStorageValue(config.globalStorage, 0)
        end	
    end
    return TRUE
end

kill_tormented_soul.lua:

Lua:
local config = {
    bossname = "Tormented Soul",
    globalStorage = 1000,
    setTo = 0
}

function onDeath(cid, corpse, killer)
    if config.bossname == getCreatureName(cid) then
        if getGlobalStorageValue(config.globalStorage) >= 1 then 
            setGlobalStorageValue(config.globalStorage, 0)
        end	
    end
    return TRUE
end
(Yes, the global value is 1 when i trigger this script)

creaturescripts.xml:
XML:
	<event type="death" name="kill_tormented_soul" event="script" value="kill_tormented_soul.lua"/>

login.lua, added this line above return TRUE:
Lua:
registerCreatureEvent(cid, "kill_tormented_soul")


Problem: When i kill the tormented soul, nothing happens. Could it have to do with that i do it on a god character? Also, there's no errors.

Thanks in advance,
//Kokokoko
 
lol (:)

go to monsters/Tormented Soul.xml

and add after </flags>

PHP:
<script>
<event name="kill_tormented_soul"/>
</script>
 
Last edited:
lol (:)

go to monsters/Tormented Soul.xml

and add after </flags>

PHP:
<script>
<event name="kill_tormented_soul"/>
</script

OH! Lol.. So easy?! Why didn't Slawkens tell me that.. I've been spamming him for help the whole day xD

Btw, you forgot a closing bracket thingie >

<script>
<event name="kill_tormented_soul"/>
</script>

Thanks again :D
 
Moveevent Error

-- Hello friend can you help me to fix this script??? i made this script to change max health player gain after EQUIP a armor, but this send this message when i put on armor slot, and dont add this to armor slot:

-- Message error on GAME after equip item:
Code:
you cannot dress this objecte there

-- See the MOVEMENTS:
Lua:
<movevent type="Equip" itemid="2508" slot="armor" event="script" value="kina_arm.lua" />
<movevent type="DeEquip" itemid="2508" slot="armor" event="script" value="kina_arm.lua" />

-- This my script:
Lua:
local config = {
        item1 = 2508 -- ID of armor
}

function onEquip(cid, item, slot)
        if getPlayerSlotItem(cid, CONST_SLOT_ARMOR).itemid == config.item then
                doPlayerSendTextMessage(cid, 25, "Health changed...")
                setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + 500)
                setCreatureMaxMana(cid, getCreatureMaxMana(cid) + 300)
        end
end

function onDeEquip(cid, item, slot)
        if getPlayerSlotItem(cid, CONST_SLOT_ARMOR).itemid == config.item then
                doPlayerSendTextMessage(cid, 25, "Health changed...")
                setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) - 500)
                setCreatureMaxMana(cid, getCreatureMaxMana(cid) - 300)
        end
end

-- This my item.xml
Lua:
<item id="2508" article="a" name="native armor">
		<attribute key="weight" value="5000"/>
		<attribute key="armor" value="1"/>
		<attribute key="slotType" value="body"/>
</item>

-- Can you solve this for me??? I need this for urgence... many thx for you, i'm will greatfull...
 
I tryed to do a script idk what is the script type but i think after u see this post u will know.
A ring that add's mana.
When a player wield/wear the ring his mana will be increased by 25%.
Like if the player mana is 1000 when he wield/wear it his mana is 1250.

I realy need help =/ so i'm posting this 2 times.
 
I tryed to do a script idk what is the script type but i think after u see this post u will know.
A ring that add's mana.
When a player wield/wear the ring his mana will be increased by 25%.
Like if the player mana is 1000 when he wield/wear it his mana is 1250.

Thats why i'm posting it 3 times =/.
 
@GMBear if you used correct request format we may have listened faster, and all of the threads that request for their script to get fixed isnt helping either. I have to work today so I will be inactive in helping today.
 
Type of Script: Creaturescript

Priority: I have no idea. :D

Reason of Request: I'm going crazy.. I gotta know why it isn't working :(

Description: When the creature Tormented Soul is killed, teleport all players in the area specified to the coordinates specified.

Public/Private: Doesn't matter. Public i guess ^_^

Errors: None

Problem: The player(s) standing in that area does not get teleported.

Lua:
  local config = {
    bossname = "Tormented Soul",
    globalStorage = 1000,
    setTo = 0
}

function onDeath(cid, corpse, killer)
    if config.bossname == getCreatureName(cid) then
        if getGlobalStorageValue(config.globalStorage) >= 1 then
            setGlobalStorageValue(config.globalStorage, 0)
        end    
    end
for x = 1010, 1013 do
	for y = 1173, 1177 do
		getPos = getThingfromPos({x=x, y=y, z=7})
		if isPlayer(getPos.uid) then
	doTeleportThing(getPos.uid, {x=1017, y=1175, z=8})
		end
	end
end
return TRUE
end

Thanks in advance,
//Kokokoko
 
(doPlayerAddMaxMana(uid, getPlayerMaxMana(uid) * 0.25))

kokokoko u sure? it dont work -.- it aint adding any mana to the players =/

U sure (doPlayerAddMaxMana(uid, getPlayerMaxMana(uid) * 0.25))
its a script?
 
Edit:
My script starts in the fluid_of_blood.LUA:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
-- Script by BomBa
 local ITEM_ = getThingfromPos({x=102, y=148, z=8, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE})
  local ITEM__ = getThingfromPos({x=105, y=150, z=8, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE})
   local ITEM___ = getThingfromPos({x=102, y=153, z=8, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE})
    if itemEx.uid == 36150 then
     if ((ITEM_.itemid == 2047) and (ITEM__.itemid == 2320) and (ITEM___.itemid == 2041)) then
      doRemoveItem(ITEM__.uid, 1)
       doTransformItem(ITEM_.uid, 2048, 1)
        doTransformItem(ITEM___.uid, 2042, 1)
       doTeleportThing(cid, {x=96, y=152, z=8}, TRUE)
      setPlayerStorageValue(cid, 126610, 1)
     else
    doPlayerSendCancel(cid, "Put the items in the correct places.")
   end
  end
 return TRUE
-- Script by BomBa
end
Code:
<action uniqueid="39410" event="script" value="other/fluid_of_blood.lua"/>

Now the player needs to kill the monster undead_man__box.LUA:
Code:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
 if getCreatureName(cid) == "Undead Man" then
  doCreatureSay(cid, "Ahhh! do not open the boxes!!!", TALKTYPE_ORANGE_1)
   local target = getPlayerByNameWildcard(getCreatureName(mostDamageKiller))
   setPlayerStorageValue(target, 226610, 1)
  end
 return TRUE
end
Code:
registerCreatureEvent(cid, "UndeadManBox")
Code:
<event type="death" name="UndeadManBox" event="script" value="undead_man__box.lua"/>
Code:
<script>
  <event name="UndeadManBox"/>
 </script>

After killing the monster, the player can open the box rookgaard_scarf.LUA:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
 if getPlayerStorageValue(cid, 226610) == 1 then
  if getPlayerStorageValue(cid, 326610) == -1 then
   doPlayerAddItem(cid, 2661, 1)
    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a Scarf.")
     setPlayerStorageValue(cid, 326610, 1)
      else
      doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
     end
    else
   doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You must kill the monster to open the box.")
  end
 return TRUE
end
Code:
<action uniqueid="26610" event="script" value="quests/rookgaard_scarf.lua"/>

but I don't receive the item... shows the msg:
You must kill the monster to open the box.


Where are the error? storages? please re-make the scripts...

paste after </frags>

PHP:
 <script>
<event name="UndeadManBox"/>
</script>
 
Please don't spam this thread, it takes awhile to find all the requests if you do, and that hurts your request as well. Here is your script:

Lua:
local addmana = getCreatureMaxMana(cid)*2.5
local submana = getCreatureMaxMana(cid)/2.5

function onEquip(cid, item, slot)
setCreatureMaxMana(cid, addmana)
return TRUE
end
function onDeEquip(cid, item, slot)
setCreatureMaxMana(cid, submana)
return TRUE
end

If you need help installing ask another person, I must go.
 
Last edited:
<movevent event="Equip" itemid="2123" slot="ring" level="8" function="onEquipItem" script="cidade/mana ring.lua" />
<movevent event="DeEquip" itemid="2123" slot="ring" function="onDeEquipItem" script="cidade/mana ring.lua" />

local addmana = getCreatureMaxMana(cid)*2.5
local submana = getCreatureMaxMana(cid)/2.5

function onEquip(cid, item, slot)
setCreatureMaxMana(cid, addmana)
end
function onDeEquip(cid, item, slot)
setCreatureMaxMana(cid, submana)
end

When i try to put the ring on ring slot it says:

You cannot dress this object here.
 
Back
Top